mirror of
https://github.com/discourse/discourse.git
synced 2025-02-09 21:04:48 +00:00
DEV: Fix flaky site text spec (#28565)
Followup a16faa27cd0088361c1a486a68c98e731ab57878 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…
x
Reference in New Issue
Block a user