Bump cockpit test API to 239

Replace the deprecated wait_present().
This commit is contained in:
Martin Pitt 2021-02-25 10:34:16 +01:00 committed by Matej Marusak
parent 6b40f35e04
commit d4c81c9152
2 changed files with 2 additions and 2 deletions

View file

@ -143,7 +143,7 @@ bots:
# when you start a new project, use the latest release, and update it from time to time # when you start a new project, use the latest release, and update it from time to time
test/common: test/common:
flock Makefile sh -ec '\ 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 checkout --force FETCH_HEAD -- test/common; \
git reset test/common' git reset test/common'

View file

@ -47,7 +47,7 @@ class TestApplication(testlib.MachineCase):
b.expect_load() b.expect_load()
# HACK: work around language switching in Chrome not working in current session (Cockpit issue #8160) # HACK: work around language switching in Chrome not working in current session (Cockpit issue #8160)
b.reload(ignore_cache=True) b.reload(ignore_cache=True)
b.wait_present("#content") b.wait_visible("#content")
# menu label (from manifest) should be translated # menu label (from manifest) should be translated
b.wait_text("#host-apps a[href='/starter-kit']", "Bausatz") b.wait_text("#host-apps a[href='/starter-kit']", "Bausatz")