Skip to content

Commit

Permalink
fixed public channel name typo
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSchoeler committed Oct 24, 2016
1 parent dcca681 commit d1a0d2b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions tests/steps/3-basic-usage.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import sideNav from '../pageobjects/side-nav.page';

//test data imports
import {username, email, password} from '../test-data/user.js';
import {PublicChannelName, privateChannelName} from '../test-data/channel.js';
import {publicChannelName, privateChannelName} from '../test-data/channel.js';
import {targetUser} from '../test-data/interactions.js';

//Test data
Expand Down Expand Up @@ -725,11 +725,11 @@ describe('Basic usage', function() {

describe('public channel', () => {
it('create a public channel', () => {
sideNav.createChannel(PublicChannelName, false, false);
sideNav.createChannel(publicChannelName, false, false);
});

it('open the public channel', () => {
sideNav.openChannel(PublicChannelName);
sideNav.openChannel(publicChannelName);
browser.pause(5000);
});

Expand Down
10 changes: 5 additions & 5 deletions tests/steps/6-channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import mainContent from '../pageobjects/main-content.page';
import sideNav from '../pageobjects/side-nav.page';

import {username} from '../test-data/user.js';
import {PublicChannelName} from '../test-data/channel.js';
import {publicChannelName} from '../test-data/channel.js';
import {targetUser} from '../test-data/interactions.js';

describe('channel settings', ()=> {

describe('channel info tab', ()=> {
it('open the channel', ()=> {
sideNav.openChannel(PublicChannelName);
sideNav.openChannel(publicChannelName);
});

it('open the channel info tab', ()=> {
Expand All @@ -23,7 +23,7 @@ describe('channel settings', ()=> {

it('should show the old name', ()=> {
flexTab.firstSetting.waitForVisible();
flexTab.firstSetting.getText().should.equal(PublicChannelName);
flexTab.firstSetting.getText().should.equal(publicChannelName);
});

it('click the edit name', ()=> {
Expand All @@ -33,7 +33,7 @@ describe('channel settings', ()=> {

it('edit the name input', ()=> {
flexTab.editNameTextInput.waitForVisible();
flexTab.editNameTextInput.setValue('NAME-EDITED-'+PublicChannelName);
flexTab.editNameTextInput.setValue('NAME-EDITED-'+publicChannelName);
});

it('save the name', ()=> {
Expand All @@ -43,7 +43,7 @@ describe('channel settings', ()=> {

it.skip('should show the new name', ()=> {
//gives timeout errors
flexTab.firstSetting.getText().should.equal('NAME-EDITED-'+PublicChannelName);
flexTab.firstSetting.getText().should.equal('NAME-EDITED-'+publicChannelName);
});

it('click the edit topic', ()=> {
Expand Down
2 changes: 1 addition & 1 deletion tests/test-data/channel.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const PublicChannelName = 'channel-test-'+Date.now();
export const publicChannelName = 'channel-test-'+Date.now();
export const privateChannelName = 'private-channel-test-'+Date.now();

0 comments on commit d1a0d2b

Please sign in to comment.