Commit 970996fa authored by Anastasia McDonald's avatar Anastasia McDonald

Add coverage for keyboard shortcut to open Web IDE

See https://gitlab.com/gitlab-org/quality/testcases/-/issues/2250
parent b3ff21a1
......@@ -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
......
......@@ -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')
......
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