From e5045a52c96e79644e70a7335a62b03b0445f23d Mon Sep 17 00:00:00 2001 From: VincentD06 Date: Thu, 19 Sep 2024 21:15:45 +0200 Subject: [PATCH] FIX end-to-end tests --- validation/end_to_end/test_end_to_end.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/validation/end_to_end/test_end_to_end.py b/validation/end_to_end/test_end_to_end.py index 715ecbc..45ff477 100644 --- a/validation/end_to_end/test_end_to_end.py +++ b/validation/end_to_end/test_end_to_end.py @@ -22,15 +22,12 @@ def before_each_after_each(page: Page): def _go_to_plugin_configuration(page: Page): page.get_by_role('button', name='System').click() page.get_by_role('menuitem', name='Configurations').click() - page.get_by_role('button', name='Plugins').click() - page.get_by_role('button', name='Logging').click() + page.get_by_title('Plugins').click() + page.get_by_title('Logging Alert').click() def test_plugin_logging_alert_should_be_registered_issue_50(page: Page): _go_to_plugin_configuration(page) - - # note: could also be: await expect(page.getByText('Logging Alert')).toBeVisible(); - # TODO should really by Logging Alert, but this will only be possible once this fix https://github.com/Graylog2/graylog2-server/issues/15939 is released - expect(page.get_by_role('button', name='Logging')).to_have_text('com.airbus_cyber_security.graylog.events.config.LoggingAlertConfig') + expect(page.get_by_title('Logging Alert')).to_be_visible() def test_plugin_logging_alert_configuration_save_button_should_close_popup_issue_50(page: Page): _go_to_plugin_configuration(page)