DEV: Fix flaky site text spec (#28565)

Followup a16faa27cd

I18n and translation overrides were not reset
between specs which led to the wrong text being
searched for in assertions
This commit is contained in:
Martin Brennan 2024-08-27 11:47:34 +10:00 committed by GitHub
parent 1ed90c4d6b
commit 193dcc48fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,6 +7,11 @@ describe "Admin Site Texts Page", type: :system do
before { sign_in(admin) }
after do
TranslationOverride.delete_all
I18n.reload!
end
it "can search for client text using the default locale" do
site_texts_page.visit
site_texts_page.search("skip to main content")