Fix flaky runkit spec (#19131)
This commit is contained in:
parent
1374ab98e6
commit
c3e3574e09
1 changed files with 2 additions and 2 deletions
|
|
@ -44,19 +44,19 @@ RSpec.describe "Creating an article with the editor", type: :system do
|
|||
context "with Runkit tag", js: true do
|
||||
it "creates a new article with a Runkit tag" do
|
||||
visit new_path
|
||||
fill_in "article_body_markdown", with: ""
|
||||
fill_in "article_body_markdown", with: template_with_runkit_tag
|
||||
click_button "Save changes"
|
||||
|
||||
expect(page).not_to have_current_path(new_path)
|
||||
expect_runkit_tag_to_be_active
|
||||
end
|
||||
|
||||
it "creates a new article with a Runkit tag with complex preamble" do
|
||||
visit new_path
|
||||
fill_in "article_body_markdown", with: ""
|
||||
fill_in "article_body_markdown", with: template_with_runkit_tag_with_preamble
|
||||
click_button "Save changes"
|
||||
|
||||
expect(page).not_to have_current_path(new_path)
|
||||
expect_runkit_tag_to_be_active(count: 2)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue