Skip to content

Commit

Permalink
Updated CI to work with patternfly update
Browse files Browse the repository at this point in the history
* added multiple log artifacting
* fixed component ids and classes to match patternfly
  • Loading branch information
benwilliamgraham authored and justin-stephenson committed Jul 24, 2020
1 parent aa63c38 commit cf61895
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@ blocks:
epilogue:
on_fail:
commands:
- artifact push job .
- mkdir testfails
- cp TestApplication* testfails
- artifact push job testfails
7 changes: 4 additions & 3 deletions test/check-application
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -291,15 +291,16 @@ 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()
for occ in occ_dict:
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):
Expand Down

0 comments on commit cf61895

Please sign in to comment.