Commit b5f31606 authored by Sanad Liaquat's avatar Sanad Liaquat

Merge branch 'qa-e2e-web-ide-shortcut-spec' into 'master'

Add E2E coverage for using shortcut to open Web IDE from repo

See merge request gitlab-org/gitlab!73126
parents 034b2b92 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
......
......@@ -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