Skip to content
Snippets Groups Projects
Commit cb953381 authored by Gabriel Engel's avatar Gabriel Engel Committed by GitHub
Browse files

Merge pull request #4761 from RocketChat/channel-test-fix

fixed the timeout in the channel name test
parents cb41f1b5 a2d25041
No related merge requests found
...@@ -45,6 +45,10 @@ class SideNav extends Page { ...@@ -45,6 +45,10 @@ class SideNav extends Page {
this.messageInput.waitForExist(); this.messageInput.waitForExist();
} }
getChannelFromList(channelName) {
return browser.element('.rooms-list > .wrapper > ul [title="'+channelName+'"]');
}
createChannel(channelName, isPrivate, isReadOnly) { createChannel(channelName, isPrivate, isReadOnly) {
this.newChannelBtn.click(); this.newChannelBtn.click();
this.channelType.waitForVisible(10000); this.channelType.waitForVisible(10000);
......
...@@ -41,9 +41,10 @@ describe('channel settings', ()=> { ...@@ -41,9 +41,10 @@ describe('channel settings', ()=> {
}); });
it.skip('should show the new name', ()=> { it('should show the new name', ()=> {
//gives timeout errors //gives timeout errors
flexTab.firstSetting.getText().should.equal('NAME-EDITED-'+publicChannelName); var channelName = sideNav.getChannelFromList('NAME-EDITED-'+publicChannelName);
channelName.getText().should.equal('NAME-EDITED-'+publicChannelName);
}); });
it('click the edit topic', ()=> { it('click the edit topic', ()=> {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment