From 1d8b9037a6967a59f807166cdaabb2702e82c378 Mon Sep 17 00:00:00 2001 From: campersau Date: Sat, 12 Sep 2020 15:03:32 +0200 Subject: [PATCH] Use page.waitForTimeout API in tests (#1422) * use waitForTimeout https://github.com/puppeteer/puppeteer/pull/6268 * update changelog --- CHANGELOG.md | 4 ++++ clicktests/environment.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c173aae0..c9eb28724 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ We are following the [Keep a Changelog](https://keepachangelog.com/) format. ## [Unreleased](https://github.com/FredrikNoren/ungit/compare/v1.5.10...master) +### Changed +- Use page.waitForTimeout API in tests [#1422](https://github.com/FredrikNoren/ungit/pull/1422) +- Bump Dependencies [#1417](https://github.com/FredrikNoren/ungit/pull/1417) + ## [1.5.10](https://github.com/FredrikNoren/ungit/compare/v1.5.9...v1.5.10) ### Fixed diff --git a/clicktests/environment.js b/clicktests/environment.js index 2b7328258..e341f6d93 100644 --- a/clicktests/environment.js +++ b/clicktests/environment.js @@ -249,7 +249,7 @@ class Environment { return this.page.waitForSelector(selector, { hidden: true }); } wait(duration) { - return this.page.waitFor(duration); + return this.page.waitForTimeout(duration); } type(text) {