mirror of https://github.com/zulip/zulip.git
casper_tests: Adjust for the addition of Desdemona.
Commit 9b78a73e36
(#15005) made some of
our poorly written Casper tests fail. Now they’re just as poorly
written but passing again.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
4680d504de
commit
3c7c163d7f
|
@ -532,9 +532,10 @@ casper.then(function () {
|
|||
{keepFocus: true});
|
||||
}
|
||||
|
||||
// go down 2, up 3 (which is really 2), then down 2
|
||||
// go down 2, up 3 (which is really 2), then down 3
|
||||
// Iago
|
||||
// Cordelia
|
||||
// Desdemona
|
||||
// Hamlet
|
||||
arrow('Down');
|
||||
arrow('Down');
|
||||
|
@ -543,6 +544,7 @@ casper.then(function () {
|
|||
arrow('Up'); // does nothing
|
||||
arrow('Down');
|
||||
arrow('Down');
|
||||
arrow('Down');
|
||||
});
|
||||
|
||||
casper.waitForSelector('#user_presences li.highlighted_user [data-name="King Hamlet"]', function () {
|
||||
|
|
|
@ -151,8 +151,9 @@ casper.then(function () {
|
|||
casper.test.assertSelectorHasText('.description', 'Oimeesaw');
|
||||
// Based on the selected checkboxes while creating stream,
|
||||
// 4 users from Scotland are added.
|
||||
// 1 user, Cordelia, is added. Othello (subscribed to Scotland) is not added twice.
|
||||
casper.test.assertSelectorHasText('.subscriber-count-text', '5');
|
||||
// 1 user, Cordelia, is added. Othello (subscribed to Scotland) is removed.
|
||||
// FIXME: This assertion may pick up the count from a random other stream.
|
||||
casper.test.assertSelectorHasText('.subscriber-count-text', '4');
|
||||
casper.fill('form#stream_creation_form', {stream_name: ' '});
|
||||
casper.click('form#stream_creation_form button.button.sea-green');
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue