Skip to content

Commit 1f48c9d

Browse files
committed
Wait for at least one row to be present in the table
1 parent 87134cc commit 1f48c9d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sde_collections/tests/frontend/test_pattern_application.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,12 @@ def test_create_title_pattern(self):
141141
assert "3" in row_text
142142

143143
self.driver.get(f"{self.live_server_url}/{self.collection.id}/delta-urls")
144+
145+
# Wait for at least one row to be present in the table
146+
self.wait.until(
147+
EC.presence_of_element_located((By.CSS_SELECTOR, "#delta_urls_table tbody tr td:not(.dt-empty)"))
148+
)
149+
144150
table_html = self.driver.find_element(By.ID, "delta_urls_table").get_attribute("outerHTML")
145151

146152
# Verify that previous curated_url now appear in delta_urls page after pattern application

0 commit comments

Comments
 (0)