﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
37169	Screenshot test is failing because the language has been translated.	Antoliny	Antoliny	"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.

[[Image(rtl-select.png)]]

{{{#!diff
--git a/tests/admin_views/tests.py b/tests/admin_views/tests.py
index b6c4e88a43..7f6283a1e5 100644
--- a/tests/admin_views/tests.py
+++ b/tests/admin_views/tests.py
@@ -7489,7 +7489,7 @@ class SeleniumTests(AdminSeleniumTestCase):
                 Select(self.selenium.find_element(By.NAME, ""action"")).select_by_value(
                     f""message_{level}""
                 )
-                self.selenium.find_element(By.XPATH, '//button[text()=""Run""]').click()
+                self.selenium.find_element(By.CSS_SELECTOR, 'button[name=""index""]').click()
                 message = self.selenium.find_element(
                     By.CSS_SELECTOR, ""ul.messagelist li""
                 )
}}}"	Bug	assigned	contrib.admin	6.0	Normal				Unreviewed	1	0	0	0	0	0
