Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Flaky Spec #207

Merged
merged 1 commit into from Sep 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 3 additions & 5 deletions spec/system/ai_helper/ai_composer_helper_spec.rb
Expand Up @@ -342,8 +342,6 @@ def trigger_context_menu(content)
before { SiteSetting.ai_embeddings_enabled = true }

it "updates the category with the suggested category" do
skip("broken on CI") if ENV["CI"]

response =
Category
.take(3)
Expand All @@ -357,11 +355,11 @@ def trigger_context_menu(content)
ai_suggestion_dropdown.click_suggest_category_button
wait_for { ai_suggestion_dropdown.has_dropdown? }

suggestion = "amazing-category-1"
ai_suggestion_dropdown.select_suggestion_by_name("amazing-category-1")
suggestion = category_2.name
ai_suggestion_dropdown.select_suggestion_by_name(category_2.slug)
category_selector = page.find(".category-chooser summary")

expect(category_selector["data-name"].downcase.gsub(" ", "-")).to eq(suggestion)
expect(category_selector["data-name"]).to eq(suggestion)
end
end

Expand Down