Skip to content

Commit

Permalink
✅ Remove duplicated test in generic
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltomasik authored and slaweet committed May 22, 2018
1 parent 5444705 commit acefb30
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions test/e2e/step_definitions/generic.step.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,5 @@ defineSupportCode(({ Given, When, Then, setDefaultTimeout }) => {
.catch(error => console.error(`${error}`)); // eslint-disable-line no-console
optionElem.click().then(callback).catch(callback);
});

Then('I click on "{className}" element no. {index}', (className, index, callback) => {
browser.sleep(500);
const optionElem = element.all(by.css(className)).get(index - 1);
browser.wait(EC.presenceOf(optionElem), waitTime)
.catch(error => console.error(`${error}`)); // eslint-disable-line no-console
optionElem.click().then(callback).catch(callback);
});
});

0 comments on commit acefb30

Please sign in to comment.