Skip to content

Commit d72f1b7

Browse files
Lenajava1claude
andcommitted
fix(e2e): stabilize search history multi-item test
Re-navigate to the home page before each search in test_e2e_search_bar_user_search_history_multiple_items so the header search bar picks up a fresh v-model binding between searches. Without this, consecutive searches from the /search results page left the input in a stale state and the URL never transitioned to the next query. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 2e211a4 commit d72f1b7

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests_e2e/tests/test_e2e_search_bar.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,19 @@ def test_e2e_search_bar_user_search_history_multiple_items(config: Config, page:
4242
expect(page).to_have_url(f"{config['FRONTEND_BASE_URL']}/search?q=acer")
4343
page.wait_for_load_state("networkidle")
4444

45+
home_page.navigate()
4546
home_page.search_bar.search_input.fill("asus")
4647
home_page.search_bar.search_button.click()
48+
page.wait_for_load_state("networkidle")
4749

4850
expect(page).to_have_url(f"{config['FRONTEND_BASE_URL']}/search?q=asus")
49-
page.wait_for_load_state("networkidle")
5051

52+
home_page.navigate()
5153
home_page.search_bar.search_input.fill("lenovo")
5254
home_page.search_bar.search_button.click()
55+
page.wait_for_load_state("networkidle")
5356

5457
expect(page).to_have_url(f"{config['FRONTEND_BASE_URL']}/search?q=lenovo")
55-
page.wait_for_load_state("networkidle")
5658

5759
home_page.navigate()
5860

0 commit comments

Comments
 (0)