A platform for community discussion. Free, open, simple.
DEV: Fix a flaky signup system test (#34715)
Alan Guo Xiang Tan21eb6cec2ab4
diff --git a/spec/system/signup_spec.rb b/spec/system/signup_spec.rbindex 71bd94fc549..7ad838be0b2 100644--- a/spec/system/signup_spec.rb+++ b/spec/system/signup_spec.rb@@ -5,6 +5,7 @@ shared_examples "signup scenarios" dolet(:login_page) { PageObjects::Pages::Login.new }let(:invite_form) { PageObjects::Pages::InviteForm.new }let(:activate_account) { PageObjects::Pages::ActivateAccount.new }+ let(:composer) { PageObjects::Components::Composer.new }let(:invite) { Fabricate(:invite) }let(:topic) { Fabricate(:topic, title: "Super cool topic") }@@ -103,7 +104,7 @@ shared_examples "signup scenarios" doit "redirects to a new-topic after signin and keeps the query" docategory = Fabricate(:category)- SiteSetting.default_trust_level = 4+ SiteSetting.create_topic_allowed_groups = "0"visit "/new-topic?category_id=#{category.id}"signup_page@@ -125,7 +126,8 @@ shared_examples "signup scenarios" doactivate_account.click_activate_account- expect(page).to have_current_path("/new-topic?category_id=#{category.id}")+ expect(page).to have_current_path("/c/#{category.id}")+ expect(composer).to be_openedendit "cannot signup with a common password" do