test: Remove redundant wait_present() calls (#159)

These are obsolete since
b1722f5b5d

Bump cockpit test API accordingly.

Closes #159
This commit is contained in:
Martin Pitt 2019-04-03 16:59:13 +02:00 committed by Matej Marušák
parent d3c41370c9
commit fa7a430847
2 changed files with 1 additions and 3 deletions

View file

@ -143,7 +143,7 @@ bots:
# checkout Cockpit's test API; this has no API stability guarantee, so check out a stable tag # checkout Cockpit's test API; this has no API stability guarantee, so check out a stable tag
# when you start a new project, use the latest relese, and update it from time to time # when you start a new project, use the latest relese, and update it from time to time
test/common: test/common:
git fetch --depth=1 https://github.com/cockpit-project/cockpit.git 190 git fetch --depth=1 https://github.com/cockpit-project/cockpit.git 191
git checkout --force FETCH_HEAD -- test/common git checkout --force FETCH_HEAD -- test/common
git reset test/common git reset test/common

View file

@ -20,12 +20,10 @@ class TestApplication(testlib.MachineCase):
self.login_and_go("/starter-kit") self.login_and_go("/starter-kit")
# verify expected heading # verify expected heading
b.wait_present(".container-fluid h2")
b.wait_text(".container-fluid h2", "Starter Kit") b.wait_text(".container-fluid h2", "Starter Kit")
# verify expected host name # verify expected host name
hostname = m.execute("hostname").strip() hostname = m.execute("hostname").strip()
b.wait_present(".container-fluid p")
b.wait_text(".container-fluid p", "Running on " + hostname) b.wait_text(".container-fluid p", "Running on " + hostname)
# change current hostname # change current hostname