Add missing expectations after refreshing the page

This way we know for sure the page has finished refreshing.

Note that, for now, we aren't adding a check after every call to the
`refresh` method because sometimes the page remains identical after
refreshing. Not sure what we should do in these cases.
This commit is contained in:
Javi Martín
2025-03-24 16:49:32 +01:00
parent f63be041c1
commit 1dcfc38e41
7 changed files with 23 additions and 2 deletions

View File

@@ -75,6 +75,9 @@ describe "Admin custom information texts", :admin do
expect(page).to have_content "Translation updated successfully"
refresh
expect(page).not_to have_content "Translation updated successfully"
select "Français", from: "Current language"
expect(page).to have_content "Aide personalise sur les débats"