summaryrefslogtreecommitdiff
path: root/qa/qa/specs/features/browser_ui/1_manage/project/create_project_spec.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-10-17 18:08:20 +0000
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-10-17 18:08:20 +0000
commitb6f2f738c73b1dfe66be61e1b37ca21fa698cf1c (patch)
treeb6b520d12c2051a6a1cdaa5741f48f6583e0cce8 /qa/qa/specs/features/browser_ui/1_manage/project/create_project_spec.rb
parentab9cf561c230f1b6ec630215a9a9def53e14d764 (diff)
downloadgitlab-ce-b6f2f738c73b1dfe66be61e1b37ca21fa698cf1c.tar.gz
First iteration to allow creating QA resources using the API
Diffstat (limited to 'qa/qa/specs/features/browser_ui/1_manage/project/create_project_spec.rb')
-rw-r--r--qa/qa/specs/features/browser_ui/1_manage/project/create_project_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/qa/qa/specs/features/browser_ui/1_manage/project/create_project_spec.rb b/qa/qa/specs/features/browser_ui/1_manage/project/create_project_spec.rb
index bb1f3ab26d1..c8ea558aed6 100644
--- a/qa/qa/specs/features/browser_ui/1_manage/project/create_project_spec.rb
+++ b/qa/qa/specs/features/browser_ui/1_manage/project/create_project_spec.rb
@@ -7,17 +7,15 @@ module QA
Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.act { sign_in_using_credentials }
- created_project = Factory::Resource::Project.fabricate! do |project|
+ created_project = Factory::Resource::Project.fabricate_via_browser_ui! do |project|
project.name = 'awesome-project'
project.description = 'create awesome project test'
end
- expect(created_project.name).to match /^awesome-project-\h{16}$/
-
+ expect(page).to have_content(created_project.name)
expect(page).to have_content(
/Project \S?awesome-project\S+ was successfully created/
)
-
expect(page).to have_content('create awesome project test')
expect(page).to have_content('The repository for this project is empty')
end