mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 11:11:13 +08:00
Rename "User Expansion" to the much clearer "User Card"
This commit is contained in:
13
test/javascripts/integration/user-card-test.js.es6
Normal file
13
test/javascripts/integration/user-card-test.js.es6
Normal file
@ -0,0 +1,13 @@
|
||||
integration("User Card");
|
||||
|
||||
test("card", function() {
|
||||
visit('/');
|
||||
|
||||
ok(find('#user-card:visible').length === 0, 'user card is invisible by default');
|
||||
click('a[data-user-card=eviltrout]:first');
|
||||
|
||||
andThen(function() {
|
||||
ok(find('#user-card:visible').length === 1, 'card should appear');
|
||||
});
|
||||
|
||||
});
|
@ -1,13 +0,0 @@
|
||||
integration("User Expansion");
|
||||
|
||||
test("expansion", function() {
|
||||
visit('/');
|
||||
|
||||
ok(find('#user-expansion:visible').length === 0, 'user expansion is invisible by default');
|
||||
click('a[data-user-expand=eviltrout]:first');
|
||||
|
||||
andThen(function() {
|
||||
ok(find('#user-expansion:visible').length === 1, 'expansion should appear');
|
||||
});
|
||||
|
||||
});
|
Reference in New Issue
Block a user