DEV: Skip flaky system tests on CI (#undefined)

This commit is contained in:
Alan Guo Xiang Tan 2023-05-29 16:03:49 +09:00 committed by GitHub
parent 7fdede9f0f
commit 8a9d3b3eed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -10,6 +10,10 @@ describe "Admin Customize Form Templates", type: :system, js: true do
end end
before do before do
skip(<<~TEXT) if ENV["CI"]
The specs here are extremely flaky on CI for some reason.
TEXT
SiteSetting.experimental_form_templates = true SiteSetting.experimental_form_templates = true
sign_in(admin) sign_in(admin)
end end

View File

@ -9,6 +9,15 @@ describe "User preferences for Interface", type: :system, js: true do
describe "Bookmarks" do describe "Bookmarks" do
it "changes the bookmark after notification preference" do it "changes the bookmark after notification preference" do
skip(<<~TEXT) if ENV["CI"]
This is currently failing on CI with the following:
```
Failure/Error: expect(page).to have_content(I18n.t("js.saved"))
expected `#<Capybara::Session>.has_content?("Saved!")` to be truthy, got false
```
TEXT
user_preferences_page.visit(user).click_interface_tab user_preferences_page.visit(user).click_interface_tab
# preselects the default user_option.bookmark_auto_delete_preference value of 3 (clear_reminder) # preselects the default user_option.bookmark_auto_delete_preference value of 3 (clear_reminder)