From 83cce2b4e9852d34c4e96d567dc61ba8ab65b42d Mon Sep 17 00:00:00 2001 From: Martin Schoeler Date: Mon, 12 Dec 2016 11:32:48 -0200 Subject: [PATCH] fixes channel creation test failing (#5181) * fixes channel creation test failing * forgot to remove .only from test --- tests/steps/05-channel-creation.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/tests/steps/05-channel-creation.js b/tests/steps/05-channel-creation.js index 9e2b3153a14..98ec4475427 100644 --- a/tests/steps/05-channel-creation.js +++ b/tests/steps/05-channel-creation.js @@ -17,13 +17,14 @@ describe('Channel creation', function() { }); beforeEach(()=>{ + browser.pause(300); sideNav.getChannelFromList('general').waitForVisible(5000); sideNav.openChannel('general'); - browser.pause(1000); + browser.pause(300); }); afterEach(function() { - if (this.currentTest.state !== 'passed') { + if (this.currentTest.state !== 'passed' && this.currentTest.title !== 'should close the channel creation tab') { setPublicChannelCreated(false); switch (this.currentTest.title) { case 'create a public channel': @@ -47,6 +48,10 @@ describe('Channel creation', function() { sideNav.createChannel(publicChannelName, false, false); setPublicChannelCreated(true); }); + + it('should close the channel creation tab', function() { + sideNav.channelType.isVisible().should.be.false; + }); }); describe('create a private channel', function() { @@ -54,6 +59,10 @@ describe('Channel creation', function() { sideNav.createChannel(privateChannelName, true, false); setPrivateChannelCreated(true); }); + + it('should close the channel creation tab', function() { + sideNav.channelType.isVisible().should.be.false; + }); }); describe('direct channel', function() { @@ -61,5 +70,9 @@ describe('Channel creation', function() { sideNav.startDirectMessage(targetUser); setDirectMessageCreated(true); }); + + it('should close the channel creation tab', function() { + sideNav.channelType.isVisible().should.be.false; + }); }); });