Add Applications Menu test
testAppMenu navigates to the Applications menu before connecting to the Session Recording page. Update to semaphone job config to add cockpit-packagekit for Fedora 32 and Centos 8
This commit is contained in:
parent
e504489ab0
commit
74bc71b190
2 changed files with 13 additions and 5 deletions
|
|
@ -24,7 +24,7 @@ blocks:
|
||||||
- name: Check fedora-32
|
- name: Check fedora-32
|
||||||
commands:
|
commands:
|
||||||
- export TEST_OS=fedora-32
|
- export TEST_OS=fedora-32
|
||||||
- bots/image-customize -v -i cockpit-ws -i `pwd`/cockpit-session-recording*.noarch.rpm -s `pwd`/test/vm.install $TEST_OS
|
- bots/image-customize -v -i cockpit-ws -i cockpit-packagekit -i `pwd`/cockpit-session-recording*.noarch.rpm -s `pwd`/test/vm.install $TEST_OS
|
||||||
- bots/image-customize -v -r "usermod -u 981 tlog || true" $TEST_OS
|
- bots/image-customize -v -r "usermod -u 981 tlog || true" $TEST_OS
|
||||||
- bots/image-customize -v -u ./test/files/1.journal:/var/log/journal/1.journal $TEST_OS
|
- bots/image-customize -v -u ./test/files/1.journal:/var/log/journal/1.journal $TEST_OS
|
||||||
- bots/image-customize -v -u ./test/files/binary-rec.journal:/var/log/journal/binary-rec.journal $TEST_OS
|
- bots/image-customize -v -u ./test/files/binary-rec.journal:/var/log/journal/binary-rec.journal $TEST_OS
|
||||||
|
|
@ -32,7 +32,7 @@ blocks:
|
||||||
- name: Check centos-8
|
- name: Check centos-8
|
||||||
commands:
|
commands:
|
||||||
- export TEST_OS=centos-8-stream
|
- export TEST_OS=centos-8-stream
|
||||||
- bots/image-customize -v -i cockpit-ws -i `pwd`/cockpit-session-recording*.noarch.rpm -s `pwd`/test/vm.install $TEST_OS
|
- bots/image-customize -v -i cockpit-ws -i cockpit-packagekit -i `pwd`/cockpit-session-recording*.noarch.rpm -s `pwd`/test/vm.install $TEST_OS
|
||||||
- bots/image-customize -v -r "usermod -u 981 tlog || true" $TEST_OS
|
- bots/image-customize -v -r "usermod -u 981 tlog || true" $TEST_OS
|
||||||
- bots/image-customize -v -u ./test/files/1.journal:/var/log/journal/1.journal $TEST_OS
|
- bots/image-customize -v -u ./test/files/1.journal:/var/log/journal/1.journal $TEST_OS
|
||||||
- bots/image-customize -v -u ./test/files/binary-rec.journal:/var/log/journal/binary-rec.journal $TEST_OS
|
- bots/image-customize -v -u ./test/files/binary-rec.journal:/var/log/journal/binary-rec.journal $TEST_OS
|
||||||
|
|
|
||||||
|
|
@ -17,11 +17,11 @@ from testlib import *
|
||||||
|
|
||||||
# Test with pre-recorded journal with tlog UID 981
|
# Test with pre-recorded journal with tlog UID 981
|
||||||
class TestApplication(MachineCase):
|
class TestApplication(MachineCase):
|
||||||
def _login(self):
|
def _login(self, loc="/session-recording", wait="#app"):
|
||||||
self.login_and_go("/session-recording")
|
self.login_and_go(loc)
|
||||||
b = self.browser
|
b = self.browser
|
||||||
m = self.machine
|
m = self.machine
|
||||||
b.wait_present("#app")
|
b.wait_present(wait)
|
||||||
return b, m
|
return b, m
|
||||||
|
|
||||||
def _sel_rec(self, recording):
|
def _sel_rec(self, recording):
|
||||||
|
|
@ -383,6 +383,14 @@ class TestApplication(MachineCase):
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def testAppMenu(self):
|
||||||
|
srrow = ".app-list .pf-c-data-list__item-row:" \
|
||||||
|
"contains('Session Recording')"
|
||||||
|
srbut = "{} button:contains('Session Recording')" \
|
||||||
|
"".format(srrow)
|
||||||
|
b, _ = self._login("/apps", srrow)
|
||||||
|
b.click(srbut)
|
||||||
|
b.wait_present("#app")
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
test_main()
|
test_main()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue