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:
Scott Poore 2020-11-18 09:09:06 -06:00 committed by Justin Stephenson
parent e504489ab0
commit 74bc71b190
2 changed files with 13 additions and 5 deletions

View file

@ -24,7 +24,7 @@ blocks:
- name: Check fedora-32
commands:
- 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 -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
@ -32,7 +32,7 @@ blocks:
- name: Check centos-8
commands:
- 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 -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

View file

@ -17,11 +17,11 @@ from testlib import *
# Test with pre-recorded journal with tlog UID 981
class TestApplication(MachineCase):
def _login(self):
self.login_and_go("/session-recording")
def _login(self, loc="/session-recording", wait="#app"):
self.login_and_go(loc)
b = self.browser
m = self.machine
b.wait_present("#app")
b.wait_present(wait)
return b, m
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__":
test_main()