Skip to content

Commit

Permalink
Fixing nightwatch tests - tests are failing in scenarios when a butto…
Browse files Browse the repository at this point in the history
…n with the same name should be clicked consequently (f.e. the "Next" button)
  • Loading branch information
napernik committed Jan 25, 2018
1 parent b0dfa5c commit 50fd382
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Website/test/e2e/commands/clickDialogButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ util.inherits(ClickOnDialogButton, events.EventEmitter);

ClickOnDialogButton.prototype.command = function (button) {
this.client.api
.pause(this.api.globals.timeouts.smallest)
.selectFrame('clickbutton[label="' + button + '"]')
.waitForElementVisible('clickbutton[label="' + button + '"]', this.api.globals.timeouts.basic)
.click('clickbutton[label="'+button+'"]', () => this.emit('complete'))
Expand Down
1 change: 1 addition & 0 deletions Website/test/e2e/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ var timeouts = {
basic: 10000,
save: 120000,
little: 1000,
smallest: 250,
loading: 25000,
};

Expand Down

0 comments on commit 50fd382

Please sign in to comment.