From 74bc71b19053bc9332289ff555218b4b8f290adb Mon Sep 17 00:00:00 2001 From: Scott Poore Date: Wed, 18 Nov 2020 09:09:06 -0600 Subject: [PATCH] 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 --- .semaphore/semaphore.yml | 4 ++-- test/check-application | 14 +++++++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index 822c0ae..6148905 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -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 diff --git a/test/check-application b/test/check-application index 3de2d35..9b73d48 100755 --- a/test/check-application +++ b/test/check-application @@ -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()