From d4c81c9152ff26384f3ffc4f9eaf6d2d764e2ed7 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Thu, 25 Feb 2021 10:34:16 +0100 Subject: [PATCH] Bump cockpit test API to 239 Replace the deprecated wait_present(). --- Makefile | 2 +- test/check-application | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cf5324d..82f6260 100644 --- a/Makefile +++ b/Makefile @@ -143,7 +143,7 @@ bots: # when you start a new project, use the latest release, and update it from time to time test/common: flock Makefile sh -ec '\ - git fetch --depth=1 https://github.com/cockpit-project/cockpit.git 233; \ + git fetch --depth=1 https://github.com/cockpit-project/cockpit.git 239; \ git checkout --force FETCH_HEAD -- test/common; \ git reset test/common' diff --git a/test/check-application b/test/check-application index 58e8841..dac2039 100755 --- a/test/check-application +++ b/test/check-application @@ -47,7 +47,7 @@ class TestApplication(testlib.MachineCase): b.expect_load() # HACK: work around language switching in Chrome not working in current session (Cockpit issue #8160) b.reload(ignore_cache=True) - b.wait_present("#content") + b.wait_visible("#content") # menu label (from manifest) should be translated b.wait_text("#host-apps a[href='/starter-kit']", "Bausatz")