diff --git a/src/recordings.jsx b/src/recordings.jsx index acdba42..3f78206 100644 --- a/src/recordings.jsx +++ b/src/recordings.jsx @@ -475,7 +475,7 @@ class Recording extends React.Component {
- +
{this.state.logsEnabled === true && diff --git a/test/check-application b/test/check-application index 5689b64..37a7b9c 100755 --- a/test/check-application +++ b/test/check-application @@ -41,7 +41,7 @@ class TestApplication(MachineCase): self._sel_rec() # fast forward b.click("#player-fast-forward") - b.wait_in_text(self._term_line(26), "logout") + b.wait_in_text(self._term_line(12), "exit") b.wait_attr(slider, "style", "left: 100%;") # test restart playback b.click("#player-restart") @@ -250,6 +250,17 @@ class TestApplication(MachineCase): assert b.attr(".dragnpan", "scrollTop") != 0 assert b.attr(".dragnpan", "scrollLeft") != 0 + def testLogCorrelation(self): + b, _ = self._login() + # select the recording with the extra logs + self._sel_rec(":contains('01:07')") + b.click("#btn-logs-view") + # fast forward until the end + while "exit" not in b.text(self._term_line(22)): + b.click("#player-skip-frame") + # check for extra log entries + b.wait_present(".cockpit-log-message:contains('authentication failure')") + if __name__ == "__main__": test_main() diff --git a/test/files/1.journal b/test/files/1.journal index c14bedf..e9b3557 100644 Binary files a/test/files/1.journal and b/test/files/1.journal differ