#37169 closed Bug (fixed)
Screenshot test is failing because the language has been translated.
| Reported by: | Antoliny | Owned by: | Antoliny |
|---|---|---|---|
| Component: | contrib.admin | Version: | 6.0 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
It seems that a translation was added for the "Run" button in the admin select. The test was looking for the previous "Run" text and clicking it, but due to the translated text, it can only find the element in RTL mode, causing the failure.
-
tests/admin_views/tests.py
--git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index b6c4e88a43..7f6283a1e5 100644
a b class SeleniumTests(AdminSeleniumTestCase): 7489 7489 Select(self.selenium.find_element(By.NAME, "action")).select_by_value( 7490 7490 f"message_{level}" 7491 7491 ) 7492 self.selenium.find_element(By. XPATH, '//button[text()="Run"]').click()7492 self.selenium.find_element(By.CSS_SELECTOR, 'button[name="index"]').click() 7493 7493 message = self.selenium.find_element( 7494 7494 By.CSS_SELECTOR, "ul.messagelist li" 7495 7495 )
Attachments (1)
Change History (8)
by , 3 weeks ago
| Attachment: | rtl-select.png added |
|---|
comment:1 by , 3 weeks ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:2 by , 3 weeks ago
| Has patch: | set |
|---|
comment:3 by , 3 weeks ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:4 by , 3 weeks ago
| Triage Stage: | Accepted → Ready for checkin |
|---|
Note:
See TracTickets
for help on using tickets.

PR