Fix failing feature tests

This commit is contained in:
Aditya Toshniwal 2024-06-18 14:02:23 +05:30 committed by GitHub
parent 2b04f3ca1d
commit 007c4840c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -157,8 +157,8 @@ class CheckForXssFeatureTest(BaseFeatureTest):
self.page.click_tab("Dependents")
source_code = \
self.page.find_by_css_selector(
"#id-dependents div[role='row']:nth-child(1) "
"div[role='cell']:nth-child(2)"
"#id-dependents div.pgrt-row-content:nth-child(1) "
"div.pgrd-row-cell:nth-child(2)"
).get_attribute('innerHTML')
retry = 0
except WebDriverException as e:
@ -213,7 +213,7 @@ class CheckForXssFeatureTest(BaseFeatureTest):
# Check for history entry
history_ele = self.page\
.find_by_css_selector(
QueryToolLocators.query_history_specific_entry.format(1))
QueryToolLocators.query_history_specific_entry.format(2))
source_code = history_ele.get_attribute('innerHTML')

View File

@ -80,8 +80,8 @@ class CheckRoleMembershipControlFeatureTest(BaseFeatureTest):
# Fetch the source code for our custom control
source_code = self.page.find_by_xpath(
"//div[contains(@role, 'cell')]//span[contains(@class,'icon-')]"
"/following-sibling::span"
"//div[contains(@class, 'pgrd-row-cell')]"
"//span[contains(@class,'icon-')]/following-sibling::span"
).get_attribute('innerHTML')
self._check_escaped_characters(