Skip to content

Commit

Permalink
reduce stale element retry iterations to 50
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Jan 26, 2016
1 parent 56312bd commit 7f363a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/fixtures/specs/stale.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function isDisplayed (scope, sessionId, times = 1, value) {

describe('staleElementRetry', () => {
it('can run quick commands after each other', () => {
let iterations = 100
let iterations = 50
browser.url(conf.testPage.staleTest)
while (iterations--) {
let res = browser.isVisible('.staleElementContainer1 .stale-element-container-row')
Expand All @@ -37,7 +37,7 @@ describe('staleElementRetry', () => {
})

it('can run quick commands in custom commands', () => {
browser.addCommand('staleMe', (iterations = 100) => {
browser.addCommand('staleMe', (iterations = 50) => {
while (iterations--) {
let res = browser.isVisible('.staleElementContainer1 .stale-element-container-row')
console.log(`staleElementRetry loop cnt: ${iterations}, command result: ${res}`)
Expand All @@ -46,7 +46,7 @@ describe('staleElementRetry', () => {
})

browser.url(conf.testPage.staleTest)
browser.staleMe(100)
browser.staleMe(50)
})

it('catches errors if an inner command fails', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/spec/functional/staleElementRetry.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import conf from '../../conf/index.js'
*/
describe('staleElementRetry', () => {
it('should not throw stale element error in standalone mode', async function () {
let iterations = 100
let iterations = 50
await this.client.url(conf.testPage.staleTest)
while (iterations--) {
let res = await this.client.isVisible('.staleElementContainer1 .stale-element-container-row')
Expand Down

0 comments on commit 7f363a4

Please sign in to comment.