Commit 7ec96702 authored by Walmyr Lima's avatar Walmyr Lima

Improve performance of end-to-end test

By fabricating the issue resource via API call instead of via the
GUI.
parent b83a7ba8
...@@ -9,10 +9,12 @@ module QA ...@@ -9,10 +9,12 @@ module QA
Runtime::Browser.visit(:gitlab, Page::Main::Login) Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.perform(&:sign_in_using_credentials) Page::Main::Login.perform(&:sign_in_using_credentials)
Resource::Issue.fabricate_via_browser_ui! do |issue| issue = Resource::Issue.fabricate_via_api! do |issue|
issue.title = issue_title issue.title = issue_title
end end
issue.visit!
expect(page).to have_content(issue_title) expect(page).to have_content(issue_title)
Page::Project::Issue::Show.perform do |show_page| Page::Project::Issue::Show.perform do |show_page|
......
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