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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
970996fa
Commit
970996fa
authored
Oct 26, 2021
by
Anastasia McDonald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add coverage for keyboard shortcut to open Web IDE
See
https://gitlab.com/gitlab-org/quality/testcases/-/issues/2250
parent
b3ff21a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
qa/qa/page/project/show.rb
qa/qa/page/project/show.rb
+4
-0
qa/qa/specs/features/browser_ui/3_create/web_ide/link_to_line_in_web_ide_spec.rb
...owser_ui/3_create/web_ide/link_to_line_in_web_ide_spec.rb
+2
-1
No files found.
qa/qa/page/project/show.rb
View file @
970996fa
...
...
@@ -154,6 +154,10 @@ module QA
click_element
(
:web_ide_button
)
end
def
open_web_ide_via_shortcut
page
.
driver
.
send_keys
(
'.'
)
end
def
has_edit_fork_button?
has_element?
(
:web_ide_button
,
text:
'Edit fork in Web IDE'
)
end
...
...
qa/qa/specs/features/browser_ui/3_create/web_ide/link_to_line_in_web_ide_spec.rb
View file @
970996fa
...
...
@@ -21,7 +21,8 @@ module QA
it
'can link to a specific line of code in Web IDE'
,
testcase:
'https://gitlab.com/gitlab-org/quality/testcases/-/quality/test_cases/1844'
do
project
.
visit!
Page
::
Project
::
Show
.
perform
(
&
:open_web_ide!
)
# Open Web IDE by using a keyboard shortcut
Page
::
Project
::
Show
.
perform
(
&
:open_web_ide_via_shortcut
)
Page
::
Project
::
WebIDE
::
Edit
.
perform
do
|
ide
|
ide
.
select_file
(
'app.js'
)
...
...
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