Wait unselected team disappears in test
This commit is contained in:
@@ -86,17 +86,11 @@ describe('browser/index.html', function desc() {
|
|||||||
|
|
||||||
it('should show only the selected team', () => {
|
it('should show only the selected team', () => {
|
||||||
return this.app.client.waitUntilWindowLoaded().
|
return this.app.client.waitUntilWindowLoaded().
|
||||||
isVisible('#mattermostView0').then((visible) => {
|
waitForVisible('#mattermostView0', 2000).
|
||||||
visible.should.be.true;
|
waitForVisible('#mattermostView1', 2000, true).
|
||||||
}).
|
|
||||||
isVisible('#mattermostView1').then((visible) => {
|
|
||||||
visible.should.be.false;
|
|
||||||
}).
|
|
||||||
click('#teamTabItem1').
|
click('#teamTabItem1').
|
||||||
waitForVisible('#mattermostView1', 2000).
|
waitForVisible('#mattermostView1', 2000).
|
||||||
isVisible('#mattermostView0').then((visible) => {
|
waitForVisible('#mattermostView0', 2000, true);
|
||||||
visible.should.be.false;
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should show error when using incorrect URL', () => {
|
it('should show error when using incorrect URL', () => {
|
||||||
|
Reference in New Issue
Block a user