From 85fdd31de6c740efc3e924020e3f13d9dee912bf Mon Sep 17 00:00:00 2001 From: taghreed86 Date: Fri, 15 Dec 2023 07:14:11 +0200 Subject: [PATCH] fix fialed tests --- test_weave_gitops_enterprise/test_gitopssets.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test_weave_gitops_enterprise/test_gitopssets.py b/test_weave_gitops_enterprise/test_gitopssets.py index f45cff9..fed680d 100644 --- a/test_weave_gitops_enterprise/test_gitopssets.py +++ b/test_weave_gitops_enterprise/test_gitopssets.py @@ -22,7 +22,9 @@ def test_open_gitopssets_details_page(self): f"clusterName=management" f"&name=gitopsset-configmaps" f"&namespace=default") - expect(self.page.get_by_role("table")).not_to_be_empty() + expect(self.page.locator("tbody")).to_contain_text("dev-info-configmap") + expect(self.page.locator("tbody")).to_contain_text("staging-info-configmap") + expect(self.page.locator("tbody")).to_contain_text("production-info-configmap") def test_open_first_configmap_yaml(self): self.gitopssets_page.open_first_configmap_yaml() @@ -41,7 +43,7 @@ def test_open_third_configmap_yaml(self): def test_open_gitopssets_events_tab(self): self.gitopssets_page.open_gitopssets_events_tab() - expect(self.page).to_have_url(f"{self.URL}/object/events?" + expect(self.page).to_have_url(f"{self.URL}/gitopssets/object/events?" f"clusterName=management" f"&name=gitopsset-configmaps" f"&namespace=default") @@ -64,4 +66,4 @@ def test_open_gitopssets_yaml_tab(self): def test_back_to_gitopssets_list(self): self.gitopssets_page.back_to_gitopssets_list() expect(self.page).to_have_url(f"{self.URL}/gitopssets") - expect(self.page.get_by_role("table")).not_to_be_empty() + expect(self.page.locator("tbody")).to_contain_text("gitopsset-configmaps")