Skip to content

Commit 2eb6603

Browse files
test: Update RESET_BUTTON_SELECTOR in US07Tests for improved robustness
1 parent d49ba4b commit 2eb6603

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/us7.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class US07Tests(unittest.TestCase):
3737

3838
# Placeholder for reset button - User Story 07
3939
# The selenium-test-dev.md does not specify a selector. Common patterns: id="reset-button", text "Reiniciar", type="reset"
40-
RESET_BUTTON_SELECTOR = "button.home__reset-button" # Corrected selector
40+
RESET_BUTTON_SELECTOR = "button[aria-label='Reiniciar formulario de notas']" # Using aria-label for robustness
4141

4242
# Selectors needed for setting up scenarios (from US05, though not directly tested here)
4343
SETTINGS_NAV_BUTTON_XPATH = "//button[contains(@class, 'nav-bar__button') and .//span[contains(@class, 'settings-icon')]/svg[contains(@class, 'lucide-settings')]]"
@@ -210,9 +210,6 @@ def _add_grade_and_percentage(self, grade, percentage):
210210
# If no suitable empty last row, click add button to ensure a fresh row is available if necessary
211211
# The application's React logic might add a row automatically on input to the last row,
212212
# but clicking "Add Grade" button explicitly ensures a new row if the current last one is filled.
213-
# For this simplified helper, we rely on the app adding a new row if we type in the last filled one,
214-
# or we target the last empty one.
215-
# The main "Add Grade" button is for *confirming* the entered grade and adding another empty row.
216213
pass # We will target the last row's inputs directly.
217214

218215
# Re-fetch rows in case clicking "Add Grade" was done (though removed from this simplified version)

0 commit comments

Comments
 (0)