mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 02:22:46 +08:00
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:
parent
1ed90c4d6b
commit
193dcc48fb
|
@ -7,6 +7,11 @@ describe "Admin Site Texts Page", type: :system do
|
||||||
|
|
||||||
before { sign_in(admin) }
|
before { sign_in(admin) }
|
||||||
|
|
||||||
|
after do
|
||||||
|
TranslationOverride.delete_all
|
||||||
|
I18n.reload!
|
||||||
|
end
|
||||||
|
|
||||||
it "can search for client text using the default locale" do
|
it "can search for client text using the default locale" do
|
||||||
site_texts_page.visit
|
site_texts_page.visit
|
||||||
site_texts_page.search("skip to main content")
|
site_texts_page.search("skip to main content")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user