Skip to content

Commit

Permalink
fix fialed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
taghreed86 committed Dec 15, 2023
1 parent 49618ed commit 85fdd31
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test_weave_gitops_enterprise/test_gitopssets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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")
Expand All @@ -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")

0 comments on commit 85fdd31

Please sign in to comment.