mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +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) {
|
||||
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))));
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user