fixed the timeout in the channel name test

pull/4761/head
Martin Schoeler 9 years ago
parent 75ea4f49f9
commit a2d250412e
  1. 4
      tests/pageobjects/side-nav.page.js
  2. 5
      tests/steps/6-channel.js

@ -45,6 +45,10 @@ class SideNav extends Page {
this.messageInput.waitForExist();
}
getChannelFromList(channelName) {
return browser.element('.rooms-list > .wrapper > ul [title="'+channelName+'"]');
}
createChannel(channelName, isPrivate, isReadOnly) {
this.newChannelBtn.click();
this.channelType.waitForVisible(10000);

@ -41,9 +41,10 @@ describe('channel settings', ()=> {
});
it.skip('should show the new name', ()=> {
it('should show the new name', ()=> {
//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', ()=> {

Loading…
Cancel
Save