Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
e8e4821b
Commit
e8e4821b
authored
Jul 26, 2019
by
Tanya Pazitny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change qa-* class references to rspec-*
parent
2219b140
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/views/projects/wikis/_form.html.haml
app/views/projects/wikis/_form.html.haml
+1
-1
spec/features/projects/wiki/user_creates_wiki_page_spec.rb
spec/features/projects/wiki/user_creates_wiki_page_spec.rb
+1
-1
No files found.
app/views/projects/wikis/_form.html.haml
View file @
e8e4821b
...
...
@@ -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'
spec/features/projects/wiki/user_creates_wiki_page_spec.rb
View file @
e8e4821b
...
...
@@ -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"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment