Commit 8cc0c02d authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch 'tp-qtt182-3' into 'master'

Change qa-create-page-button to rspec-create-page-button

Closes gitlab-org/quality/team-tasks#182

See merge request gitlab-org/gitlab-ce!31204
parents ed80d3e9 e8e4821b
...@@ -51,6 +51,6 @@ ...@@ -51,6 +51,6 @@
.float-right .float-right
= link_to _("Cancel"), project_wiki_path(@project, @page), class: 'btn btn-cancel btn-grouped' = link_to _("Cancel"), project_wiki_path(@project, @page), class: 'btn btn-cancel btn-grouped'
- else - else
= f.submit s_("Wiki|Create page"), class: 'btn-success btn qa-create-page-button' = f.submit s_("Wiki|Create page"), class: 'btn-success btn qa-create-page-button rspec-create-page-button'
.float-right .float-right
= link_to _("Cancel"), project_wiki_path(@project, :home), class: 'btn btn-cancel' = link_to _("Cancel"), project_wiki_path(@project, :home), class: 'btn btn-cancel'
...@@ -142,7 +142,7 @@ describe "User creates wiki page" do ...@@ -142,7 +142,7 @@ describe "User creates wiki page" do
# blur. Just not `click`. But only when you manually insert \n or \r - if you manually insert any other sequence # blur. Just not `click`. But only when you manually insert \n or \r - if you manually insert any other sequence
# then `click` is fired normally. And it's only Capybara. Browsers and JSDOM don't have this issue. # then `click` is fired normally. And it's only Capybara. Browsers and JSDOM don't have this issue.
# So that's why the next line performs the click via JS. # So that's why the next line performs the click via JS.
page.execute_script("document.querySelector('.qa-create-page-button').click()") page.execute_script("document.querySelector('.rspec-create-page-button').click()")
page.within ".md" do page.within ".md" do
expect(page).to have_selector(".katex", count: 3).and have_content("2+2 is 4") expect(page).to have_selector(".katex", count: 3).and have_content("2+2 is 4")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment