summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanya Pazitny <tpazitny@gitlab.com>2019-07-26 14:48:11 -0700
committerTanya Pazitny <tpazitny@gitlab.com>2019-07-26 14:48:11 -0700
commite8e4821bce5a9796836fbf705bce1a73aef275c3 (patch)
treeb5eb1b47194cc3b6e3bdfa7b4490b23b41542fbb
parent2219b140b6873b893a3cac2cae195b929a20f5aa (diff)
downloadgitlab-ce-tp-qtt182-3.tar.gz
Change qa-* class references to rspec-*tp-qtt182-3
-rw-r--r--app/views/projects/wikis/_form.html.haml2
-rw-r--r--spec/features/projects/wiki/user_creates_wiki_page_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/wikis/_form.html.haml b/app/views/projects/wikis/_form.html.haml
index 5bb69563b51..66a614b0197 100644
--- a/app/views/projects/wikis/_form.html.haml
+++ b/app/views/projects/wikis/_form.html.haml
@@ -51,6 +51,6 @@
.float-right
= link_to _("Cancel"), project_wiki_path(@project, @page), class: 'btn btn-cancel btn-grouped'
- 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
= link_to _("Cancel"), project_wiki_path(@project, :home), class: 'btn btn-cancel'
diff --git a/spec/features/projects/wiki/user_creates_wiki_page_spec.rb b/spec/features/projects/wiki/user_creates_wiki_page_spec.rb
index 80741ace5d6..249bff4ab67 100644
--- a/spec/features/projects/wiki/user_creates_wiki_page_spec.rb
+++ b/spec/features/projects/wiki/user_creates_wiki_page_spec.rb
@@ -140,7 +140,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
# 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.
- page.execute_script("document.querySelector('.qa-create-page-button').click()")
+ page.execute_script("document.querySelector('.rspec-create-page-button').click()")
page.within ".md" do
expect(page).to have_selector(".katex", count: 3).and have_content("2+2 is 4")