From cf618957af5218119a87a2032b3552efbfa0d3a0 Mon Sep 17 00:00:00 2001 From: Benjamin Graham Date: Tue, 21 Jul 2020 11:30:31 -0400 Subject: [PATCH] Updated CI to work with patternfly update * added multiple log artifacting * fixed component ids and classes to match patternfly --- .semaphore/semaphore.yml | 4 +++- test/check-application | 7 ++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index 5e875a5..ff60547 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -38,4 +38,6 @@ blocks: epilogue: on_fail: commands: - - artifact push job . + - mkdir testfails + - cp TestApplication* testfails + - artifact push job testfails diff --git a/test/check-application b/test/check-application index ca32071..e688778 100755 --- a/test/check-application +++ b/test/check-application @@ -260,7 +260,7 @@ class TestApplication(MachineCase): b, _ = self._login() # select the recording with the extra logs self._sel_rec(1) - b.click("#btn-logs-view") + b.click("#btn-logs-view .pf-c-expandable-section__toggle") # fast forward until the end while "exit" not in b.text(self._term_line(22)): b.click("#player-skip-frame") @@ -291,7 +291,8 @@ class TestApplication(MachineCase): def _filter(self, inp, occ_dict): import time - # allow temporary timestamp failures + # ignore errors from half-entered timestamps due to searches occuring + # before `set_input_text` is complete self.allow_journal_messages(".*timestamp.*") # login and test inputs b, _ = self._login() @@ -299,7 +300,7 @@ class TestApplication(MachineCase): for term in occ_dict[occ]: # enter the search term and wait for the results to return b.set_input_text(inp, term) - time.sleep(2) + time.sleep(5) self.assertEqual(b.text(".pf-c-table").count("contractor"), occ) def testSearch(self):