mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
fix(e2e): expand timeout to compensate for snapshot
This commit is contained in:
@ -16,7 +16,7 @@ module.exports = class E2ETestPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async present(clickTarget, options) {
|
async present(clickTarget, options) {
|
||||||
await this.navigate();
|
await this.navigate(clickTarget);
|
||||||
this.driver.findElement(By.css(clickTarget)).click();
|
this.driver.findElement(By.css(clickTarget)).click();
|
||||||
await this.driver.wait(until.elementLocated(By.css(options.waitFor)));
|
await this.driver.wait(until.elementLocated(By.css(options.waitFor)));
|
||||||
return await this.driver.wait(until.elementIsVisible(this.driver.findElement(By.css(options.waitFor))));
|
return await this.driver.wait(until.elementIsVisible(this.driver.findElement(By.css(options.waitFor))));
|
||||||
|
@ -19,7 +19,7 @@ platforms.forEach(platform => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
register('subscribers should receive event on or shortly after button click', async (driver, testContext) => {
|
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);
|
const page = new E2ETestPage(driver, platform);
|
||||||
await wait(300);
|
await wait(300);
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ platforms.forEach(platform => {
|
|||||||
describe('item/groups', () => {
|
describe('item/groups', () => {
|
||||||
register('should init', driver => {
|
register('should init', driver => {
|
||||||
const page = new E2ETestPage(driver, platform);
|
const page = new E2ETestPage(driver, platform);
|
||||||
return page.navigate('#content');
|
return page.navigate('.item-group');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user