fix(e2e): expand timeout to compensate for snapshot

This commit is contained in:
Ken Sodemann
2018-02-02 13:19:45 -06:00
parent 909808161e
commit 58952d3c12
3 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ module.exports = class E2ETestPage {
}
async present(clickTarget, options) {
await this.navigate();
await this.navigate(clickTarget);
this.driver.findElement(By.css(clickTarget)).click();
await this.driver.wait(until.elementLocated(By.css(options.waitFor)));
return await this.driver.wait(until.elementIsVisible(this.driver.findElement(By.css(options.waitFor))));

View File

@ -19,7 +19,7 @@ platforms.forEach(platform => {
});
register('subscribers should receive event on or shortly after button click', async (driver, testContext) => {
testContext.timeout(1000);
testContext.timeout(2000);
const page = new E2ETestPage(driver, platform);
await wait(300);

View File

@ -13,7 +13,7 @@ platforms.forEach(platform => {
describe('item/groups', () => {
register('should init', driver => {
const page = new E2ETestPage(driver, platform);
return page.navigate('#content');
return page.navigate('.item-group');
});
});
});