starter-kit/test/check-application
Cristopfer Luis Viana da Silva 3dad43cb1a fix: tests
2024-02-06 13:03:15 +00:00

25 lines
908 B
Python
Executable file

#!/usr/bin/python3 -cimport os, sys; os.execv(os.path.dirname(sys.argv[1]) + "/common/pywrap", sys.argv)
# Run this with --help to see available options for tracing and debugging
# See https://github.com/cockpit-project/cockpit/blob/main/test/common/testlib.py
# "class Browser" and "class MachineCase" for the available API.
import testlib
# Nondestructive tests all run in the same running VM. This allows them to run in Packit, Fedora, and
# RHEL dist-git gating. They must not permanently change any file or configuration on the system in a
# way that influences other tests.
@testlib.nondestructive
class TestApplication(testlib.MachineCase):
def testBasic(self):
b = self.browser
m = self.machine
self.login_and_go("/sensors")
# verify expected heading
b.wait_text(".pf-v5-c-card__title", "Sensors")
if __name__ == '__main__':
testlib.test_main()