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
356645b7
Commit
356645b7
authored
Dec 02, 2019
by
Walmyr Lima
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor many tests to use login flow
This way we avoid lots of duplications.
parent
b3cd6fd5
Changes
45
Hide whitespace changes
Inline
Side-by-side
Showing
45 changed files
with
50 additions
and
103 deletions
+50
-103
qa/qa/specs/features/browser_ui/1_manage/group/create_group_with_mattermost_team_spec.rb
.../1_manage/group/create_group_with_mattermost_team_spec.rb
+1
-2
qa/qa/specs/features/browser_ui/1_manage/group/transfer_project_spec.rb
...atures/browser_ui/1_manage/group/transfer_project_spec.rb
+1
-2
qa/qa/specs/features/browser_ui/1_manage/login/log_in_spec.rb
...a/specs/features/browser_ui/1_manage/login/log_in_spec.rb
+1
-2
qa/qa/specs/features/browser_ui/1_manage/login/log_into_gitlab_via_ldap_spec.rb
...rowser_ui/1_manage/login/log_into_gitlab_via_ldap_spec.rb
+1
-2
qa/qa/specs/features/browser_ui/1_manage/login/log_into_mattermost_via_gitlab_spec.rb
..._ui/1_manage/login/log_into_mattermost_via_gitlab_spec.rb
+1
-2
qa/qa/specs/features/browser_ui/1_manage/project/add_project_member_spec.rb
...es/browser_ui/1_manage/project/add_project_member_spec.rb
+1
-2
qa/qa/specs/features/browser_ui/1_manage/project/create_project_spec.rb
...atures/browser_ui/1_manage/project/create_project_spec.rb
+1
-2
qa/qa/specs/features/browser_ui/1_manage/project/import_github_repo_spec.rb
...es/browser_ui/1_manage/project/import_github_repo_spec.rb
+1
-2
qa/qa/specs/features/browser_ui/1_manage/project/view_project_activity_spec.rb
...browser_ui/1_manage/project/view_project_activity_spec.rb
+1
-2
qa/qa/specs/features/browser_ui/3_create/merge_request/create_merge_request_spec.rb
...er_ui/3_create/merge_request/create_merge_request_spec.rb
+1
-2
qa/qa/specs/features/browser_ui/3_create/merge_request/merge_merge_request_from_fork_spec.rb
...reate/merge_request/merge_merge_request_from_fork_spec.rb
+1
-2
qa/qa/specs/features/browser_ui/3_create/merge_request/rebase_merge_request_spec.rb
...er_ui/3_create/merge_request/rebase_merge_request_spec.rb
+1
-2
qa/qa/specs/features/browser_ui/3_create/merge_request/squash_merge_request_spec.rb
...er_ui/3_create/merge_request/squash_merge_request_spec.rb
+1
-2
qa/qa/specs/features/browser_ui/3_create/repository/add_list_delete_branches_spec.rb
...r_ui/3_create/repository/add_list_delete_branches_spec.rb
+1
-2
qa/qa/specs/features/browser_ui/3_create/repository/add_ssh_key_spec.rb
...atures/browser_ui/3_create/repository/add_ssh_key_spec.rb
+1
-2
qa/qa/specs/features/browser_ui/3_create/repository/protocol_v2_push_http_spec.rb
...wser_ui/3_create/repository/protocol_v2_push_http_spec.rb
+1
-2
qa/qa/specs/features/browser_ui/3_create/repository/protocol_v2_push_ssh_spec.rb
...owser_ui/3_create/repository/protocol_v2_push_ssh_spec.rb
+2
-7
qa/qa/specs/features/browser_ui/3_create/repository/push_http_private_token_spec.rb
...er_ui/3_create/repository/push_http_private_token_spec.rb
+1
-2
qa/qa/specs/features/browser_ui/3_create/repository/push_over_http_spec.rb
...res/browser_ui/3_create/repository/push_over_http_spec.rb
+1
-2
qa/qa/specs/features/browser_ui/3_create/repository/use_ssh_key_spec.rb
...atures/browser_ui/3_create/repository/use_ssh_key_spec.rb
+1
-2
qa/qa/specs/features/browser_ui/3_create/snippet/create_snippet_spec.rb
...atures/browser_ui/3_create/snippet/create_snippet_spec.rb
+1
-2
qa/qa/specs/features/browser_ui/3_create/wiki/create_edit_clone_push_wiki_spec.rb
...wser_ui/3_create/wiki/create_edit_clone_push_wiki_spec.rb
+1
-2
qa/qa/specs/features/browser_ui/6_release/deploy_key/add_deploy_key_spec.rb
...es/browser_ui/6_release/deploy_key/add_deploy_key_spec.rb
+1
-2
qa/qa/specs/features/browser_ui/6_release/deploy_key/clone_using_deploy_key_spec.rb
...er_ui/6_release/deploy_key/clone_using_deploy_key_spec.rb
+1
-2
qa/qa/specs/features/browser_ui/6_release/deploy_token/add_deploy_token_spec.rb
...rowser_ui/6_release/deploy_token/add_deploy_token_spec.rb
+1
-2
qa/qa/specs/features/ee/browser_ui/1_manage/group/restrict_by_ip_address_spec.rb
.../browser_ui/1_manage/group/restrict_by_ip_address_spec.rb
+1
-2
qa/qa/specs/features/ee/browser_ui/1_manage/project/project_audit_logs_spec.rb
...ee/browser_ui/1_manage/project/project_audit_logs_spec.rb
+1
-2
qa/qa/specs/features/ee/browser_ui/1_manage/project/project_templates_spec.rb
.../ee/browser_ui/1_manage/project/project_templates_spec.rb
+3
-6
qa/qa/specs/features/ee/browser_ui/3_create/design_management_spec.rb
...features/ee/browser_ui/3_create/design_management_spec.rb
+1
-2
qa/qa/specs/features/ee/browser_ui/3_create/elasticsearch/elasticsearch_reindexing_spec.rb
...i/3_create/elasticsearch/elasticsearch_reindexing_spec.rb
+1
-2
qa/qa/specs/features/ee/browser_ui/3_create/jenkins/jenkins_build_status_spec.rb
.../browser_ui/3_create/jenkins/jenkins_build_status_spec.rb
+2
-4
qa/qa/specs/features/ee/browser_ui/3_create/merge_request/add_batch_comments_in_merge_request_spec.rb
...merge_request/add_batch_comments_in_merge_request_spec.rb
+1
-2
qa/qa/specs/features/ee/browser_ui/3_create/repository/assign_code_owners_spec.rb
...browser_ui/3_create/repository/assign_code_owners_spec.rb
+1
-2
qa/qa/specs/features/ee/browser_ui/3_create/repository/code_owners_spec.rb
...res/ee/browser_ui/3_create/repository/code_owners_spec.rb
+1
-2
qa/qa/specs/features/ee/browser_ui/3_create/repository/file_locking_spec.rb
...es/ee/browser_ui/3_create/repository/file_locking_spec.rb
+1
-2
qa/qa/specs/features/ee/browser_ui/3_create/repository/pull_mirroring_over_http_spec.rb
...r_ui/3_create/repository/pull_mirroring_over_http_spec.rb
+1
-2
qa/qa/specs/features/ee/browser_ui/3_create/repository/pull_mirroring_over_ssh_with_key_spec.rb
...reate/repository/pull_mirroring_over_ssh_with_key_spec.rb
+1
-2
qa/qa/specs/features/ee/browser_ui/3_create/repository/push_rules_spec.rb
...ures/ee/browser_ui/3_create/repository/push_rules_spec.rb
+1
-2
qa/qa/specs/features/ee/browser_ui/3_create/web_ide/web_terminal_spec.rb
...tures/ee/browser_ui/3_create/web_ide/web_terminal_spec.rb
+1
-2
qa/qa/specs/features/ee/browser_ui/5_package/maven_repository_spec.rb
...features/ee/browser_ui/5_package/maven_repository_spec.rb
+1
-2
qa/qa/specs/features/ee/browser_ui/5_package/npm_registry_spec.rb
...ecs/features/ee/browser_ui/5_package/npm_registry_spec.rb
+1
-2
qa/qa/specs/features/ee/browser_ui/6_release/multi-project_pipelines_spec.rb
...s/ee/browser_ui/6_release/multi-project_pipelines_spec.rb
+1
-2
qa/qa/specs/features/ee/browser_ui/6_release/pipelines_for_merged_results_and_merge_trains_spec.rb
...ase/pipelines_for_merged_results_and_merge_trains_spec.rb
+1
-2
qa/qa/specs/features/ee/browser_ui/secure/create_merge_request_with_secure_spec.rb
...rowser_ui/secure/create_merge_request_with_secure_spec.rb
+1
-2
qa/qa/specs/features/ee/browser_ui/secure/license_compliance_spec.rb
.../features/ee/browser_ui/secure/license_compliance_spec.rb
+2
-4
No files found.
qa/qa/specs/features/browser_ui/1_manage/group/create_group_with_mattermost_team_spec.rb
View file @
356645b7
...
...
@@ -4,8 +4,7 @@ module QA
context
'Configure'
,
:orchestrated
,
:mattermost
do
describe
'Mattermost support'
do
it
'user creates a group with a mattermost team'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
Page
::
Main
::
Menu
.
perform
(
&
:go_to_groups
)
Page
::
Dashboard
::
Groups
.
perform
do
|
groups
|
...
...
qa/qa/specs/features/browser_ui/1_manage/group/transfer_project_spec.rb
View file @
356645b7
...
...
@@ -4,8 +4,7 @@ module QA
context
'Manage'
do
describe
'Project transfer between groups'
do
it
'user transfers a project between groups'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
source_group
=
Resource
::
Group
.
fabricate_via_api!
do
|
group
|
group
.
path
=
'source-group'
...
...
qa/qa/specs/features/browser_ui/1_manage/login/log_in_spec.rb
View file @
356645b7
...
...
@@ -4,8 +4,7 @@ module QA
context
'Manage'
,
:smoke
do
describe
'basic user login'
do
it
'user logs in using basic credentials and logs out'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
Page
::
Main
::
Menu
.
perform
do
|
menu
|
expect
(
menu
).
to
have_personal_area
...
...
qa/qa/specs/features/browser_ui/1_manage/login/log_into_gitlab_via_ldap_spec.rb
View file @
356645b7
...
...
@@ -4,8 +4,7 @@ module QA
context
'Manage'
,
:orchestrated
,
:ldap_no_tls
,
:ldap_tls
do
describe
'LDAP login'
do
it
'user logs into GitLab using LDAP credentials'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
Page
::
Main
::
Menu
.
perform
do
|
menu
|
expect
(
menu
).
to
have_personal_area
...
...
qa/qa/specs/features/browser_ui/1_manage/login/log_into_mattermost_via_gitlab_spec.rb
View file @
356645b7
...
...
@@ -4,8 +4,7 @@ module QA
context
'Manage'
,
:orchestrated
,
:mattermost
do
describe
'Mattermost login'
do
it
'user logs into Mattermost using GitLab OAuth'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
Support
::
Retrier
.
retry_on_exception
do
Runtime
::
Browser
.
visit
(
:mattermost
,
Page
::
Mattermost
::
Login
)
...
...
qa/qa/specs/features/browser_ui/1_manage/project/add_project_member_spec.rb
View file @
356645b7
...
...
@@ -4,8 +4,7 @@ module QA
context
'Manage'
do
describe
'Add project member'
do
it
'user adds project member'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
user
=
Resource
::
User
.
fabricate_or_use
(
Runtime
::
Env
.
gitlab_qa_username_1
,
Runtime
::
Env
.
gitlab_qa_password_1
)
...
...
qa/qa/specs/features/browser_ui/1_manage/project/create_project_spec.rb
View file @
356645b7
...
...
@@ -4,8 +4,7 @@ module QA
context
'Manage'
,
:smoke
do
describe
'Project creation'
do
it
'user creates a new project'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
created_project
=
Resource
::
Project
.
fabricate_via_browser_ui!
do
|
project
|
project
.
name
=
'awesome-project'
...
...
qa/qa/specs/features/browser_ui/1_manage/project/import_github_repo_spec.rb
View file @
356645b7
...
...
@@ -23,8 +23,7 @@ module QA
end
it
'user imports a GitHub repo'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
imported_project
# import the project
...
...
qa/qa/specs/features/browser_ui/1_manage/project/view_project_activity_spec.rb
View file @
356645b7
...
...
@@ -4,8 +4,7 @@ module QA
context
'Manage'
do
describe
'Project activity'
do
it
'user creates an event in the activity page upon Git push'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
project_push
=
Resource
::
Repository
::
ProjectPush
.
fabricate!
do
|
push
|
push
.
file_name
=
'README.md'
...
...
qa/qa/specs/features/browser_ui/3_create/merge_request/create_merge_request_spec.rb
View file @
356645b7
...
...
@@ -4,8 +4,7 @@ module QA
context
'Create'
do
describe
'Create a new merge request'
do
before
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
@project
=
Resource
::
Project
.
fabricate_via_api!
do
|
project
|
project
.
name
=
'project'
...
...
qa/qa/specs/features/browser_ui/3_create/merge_request/merge_merge_request_from_fork_spec.rb
View file @
356645b7
...
...
@@ -4,8 +4,7 @@ module QA
context
'Create'
do
describe
'Merge request creation from fork'
do
it
'user forks a project, submits a merge request and maintainer merges it'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
merge_request
=
Resource
::
MergeRequestFromFork
.
fabricate!
do
|
merge_request
|
merge_request
.
fork_branch
=
'feature-branch'
...
...
qa/qa/specs/features/browser_ui/3_create/merge_request/rebase_merge_request_spec.rb
View file @
356645b7
...
...
@@ -5,8 +5,7 @@ module QA
context
'Create'
,
:quarantine
do
describe
'Merge request rebasing'
do
it
'user rebases source branch of merge request'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
project
=
Resource
::
Project
.
fabricate!
do
|
project
|
project
.
name
=
"only-fast-forward"
...
...
qa/qa/specs/features/browser_ui/3_create/merge_request/squash_merge_request_spec.rb
View file @
356645b7
...
...
@@ -4,8 +4,7 @@ module QA
context
'Create'
do
describe
'Merge request squashing'
do
it
'user squashes commits while merging'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
project
=
Resource
::
Project
.
fabricate!
do
|
project
|
project
.
name
=
"squash-before-merge"
...
...
qa/qa/specs/features/browser_ui/3_create/repository/add_list_delete_branches_spec.rb
View file @
356645b7
...
...
@@ -16,8 +16,7 @@ module QA
commit_message_of_third_branch
=
"Add
#{
file_third_branch
}
"
before
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
project
=
Resource
::
Project
.
fabricate!
do
|
proj
|
proj
.
name
=
'project-qa-test'
...
...
qa/qa/specs/features/browser_ui/3_create/repository/add_ssh_key_spec.rb
View file @
356645b7
...
...
@@ -6,8 +6,7 @@ module QA
let
(
:key_title
)
{
"key for ssh tests
#{
Time
.
now
.
to_f
}
"
}
it
'user adds and then removes an SSH key'
,
:smoke
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
key
=
Resource
::
SSHKey
.
fabricate!
do
|
resource
|
resource
.
title
=
key_title
...
...
qa/qa/specs/features/browser_ui/3_create/repository/protocol_v2_push_http_spec.rb
View file @
356645b7
...
...
@@ -6,8 +6,7 @@ module QA
context
'Create'
,
:quarantine
do
describe
'Push over HTTP using Git protocol version 2'
,
:requires_git_protocol_v2
do
it
'user pushes to the repository'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
# Create a project to push to
project
=
Resource
::
Project
.
fabricate!
do
|
project
|
...
...
qa/qa/specs/features/browser_ui/3_create/repository/protocol_v2_push_ssh_spec.rb
View file @
356645b7
...
...
@@ -17,20 +17,15 @@ module QA
end
end
def
login
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
end
around
do
|
example
|
# Create an SSH key to be used with Git
log
in
Flow
::
Login
.
sign_
in
ssh_key
example
.
run
# Remove the SSH key
log
in
Flow
::
Login
.
sign_
in
Page
::
Main
::
Menu
.
perform
(
&
:click_settings_link
)
Page
::
Profile
::
Menu
.
perform
(
&
:click_ssh_keys
)
Page
::
Profile
::
SSHKeys
.
perform
do
|
ssh_keys
|
...
...
qa/qa/specs/features/browser_ui/3_create/repository/push_http_private_token_spec.rb
View file @
356645b7
...
...
@@ -4,8 +4,7 @@ module QA
context
'Create'
do
describe
'Git push over HTTP'
,
:ldap_no_tls
do
it
'user using a personal access token pushes code to the repository'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
access_token
=
Resource
::
PersonalAccessToken
.
fabricate!
.
access_token
...
...
qa/qa/specs/features/browser_ui/3_create/repository/push_over_http_spec.rb
View file @
356645b7
...
...
@@ -4,8 +4,7 @@ module QA
context
'Create'
do
describe
'Git push over HTTP'
,
:ldap_no_tls
do
it
'user pushes code to the repository'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
project_push
=
Resource
::
Repository
::
ProjectPush
.
fabricate!
do
|
push
|
push
.
file_name
=
'README.md'
...
...
qa/qa/specs/features/browser_ui/3_create/repository/use_ssh_key_spec.rb
View file @
356645b7
...
...
@@ -9,8 +9,7 @@ module QA
let
(
:key_title
)
{
"key for ssh tests
#{
Time
.
now
.
to_f
}
"
}
it
'user adds an ssh key and pushes code to the repository'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
key
=
Resource
::
SSHKey
.
fabricate!
do
|
resource
|
resource
.
title
=
key_title
...
...
qa/qa/specs/features/browser_ui/3_create/snippet/create_snippet_spec.rb
View file @
356645b7
...
...
@@ -4,8 +4,7 @@ module QA
context
'Create'
,
:smoke
do
describe
'Snippet creation'
do
it
'User creates a snippet'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
Page
::
Main
::
Menu
.
perform
(
&
:go_to_snippets
)
...
...
qa/qa/specs/features/browser_ui/3_create/wiki/create_edit_clone_push_wiki_spec.rb
View file @
356645b7
...
...
@@ -4,8 +4,7 @@ module QA
context
'Create'
do
describe
'Wiki management'
do
it
'user creates, edits, clones, and pushes to the wiki'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
wiki
=
Resource
::
Wiki
.
fabricate!
do
|
resource
|
resource
.
title
=
'Home'
...
...
qa/qa/specs/features/browser_ui/6_release/deploy_key/add_deploy_key_spec.rb
View file @
356645b7
...
...
@@ -4,8 +4,7 @@ module QA
context
'Release'
do
describe
'Deploy key creation'
do
it
'user adds a deploy key'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
key
=
Runtime
::
Key
::
RSA
.
new
deploy_key_title
=
'deploy key title'
...
...
qa/qa/specs/features/browser_ui/6_release/deploy_key/clone_using_deploy_key_spec.rb
View file @
356645b7
...
...
@@ -10,8 +10,7 @@ module QA
@job_log_json_flag_enabled
=
Runtime
::
Feature
.
enabled?
(
'job_log_json'
)
Runtime
::
Feature
.
disable
(
'job_log_json'
)
if
@job_log_json_flag_enabled
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
@runner_name
=
"qa-runner-
#{
Time
.
now
.
to_i
}
"
...
...
qa/qa/specs/features/browser_ui/6_release/deploy_token/add_deploy_token_spec.rb
View file @
356645b7
...
...
@@ -4,8 +4,7 @@ module QA
context
'Release'
do
describe
'Deploy token creation'
do
it
'user adds a deploy token'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
deploy_token_name
=
'deploy token name'
one_week_from_now
=
Date
.
today
+
7
...
...
qa/qa/specs/features/ee/browser_ui/1_manage/group/restrict_by_ip_address_spec.rb
View file @
356645b7
...
...
@@ -26,8 +26,7 @@ module QA
menu
.
sign_out
if
menu
.
has_personal_area?
(
wait:
0
)
end
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
end
context
'when restricted by another ip address'
do
...
...
qa/qa/specs/features/ee/browser_ui/1_manage/project/project_audit_logs_spec.rb
View file @
356645b7
...
...
@@ -119,8 +119,7 @@ module QA
def
sign_in
unless
Page
::
Main
::
Menu
.
perform
{
|
p
|
p
.
has_personal_area?
(
wait:
0
)
}
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
end
end
end
...
...
qa/qa/specs/features/ee/browser_ui/1_manage/project/project_templates_spec.rb
View file @
356645b7
...
...
@@ -37,8 +37,7 @@ module QA
context
'built-in'
,
:requires_admin
do
before
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_admin_credentials
)
Flow
::
Login
.
sign_in_as_admin
@group
=
Resource
::
Group
.
fabricate_via_api!
end
...
...
@@ -68,8 +67,7 @@ module QA
# Failure issue: https://gitlab.com/gitlab-org/quality/staging/issues/61
context
'instance level'
,
:quarantine
,
:requires_admin
do
before
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_admin_credentials
)
Flow
::
Login
.
sign_in_as_admin
Page
::
Main
::
Menu
.
perform
(
&
:go_to_admin_area
)
Page
::
Admin
::
Menu
.
perform
(
&
:go_to_template_settings
)
...
...
@@ -111,8 +109,7 @@ module QA
context
'group level'
do
before
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
Page
::
Main
::
Menu
.
perform
(
&
:go_to_groups
)
Page
::
Dashboard
::
Groups
.
perform
{
|
groups
|
groups
.
click_group
(
Runtime
::
Namespace
.
sandbox_name
)
}
...
...
qa/qa/specs/features/ee/browser_ui/3_create/design_management_spec.rb
View file @
356645b7
...
...
@@ -9,8 +9,7 @@ module QA
let
(
:annotation
)
{
"This design is great!"
}
before
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
end
it
'user adds a design and annotation'
do
...
...
qa/qa/specs/features/ee/browser_ui/3_create/elasticsearch/elasticsearch_reindexing_spec.rb
View file @
356645b7
...
...
@@ -10,8 +10,7 @@ module QA
@project_file_name
=
'elasticsearch.rb'
@project_file_content
=
'elasticsearch: true'
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
QA
::
EE
::
Resource
::
Settings
::
Elasticsearch
.
fabricate_via_browser_ui!
...
...
qa/qa/specs/features/ee/browser_ui/3_create/jenkins/jenkins_build_status_spec.rb
View file @
356645b7
...
...
@@ -105,8 +105,7 @@ module QA
end
def
login_to_gitlab
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
end
def
patch_host_name
(
host_name
,
container_name
)
...
...
@@ -131,8 +130,7 @@ module QA
def
allow_requests_to_local_networks
Page
::
Main
::
Menu
.
perform
(
&
:sign_out_if_signed_in
)
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_admin_credentials
)
Flow
::
Login
.
sign_in_as_admin
Page
::
Main
::
Menu
.
perform
(
&
:go_to_admin_area
)
Page
::
Admin
::
Menu
.
perform
(
&
:go_to_network_settings
)
...
...
qa/qa/specs/features/ee/browser_ui/3_create/merge_request/add_batch_comments_in_merge_request_spec.rb
View file @
356645b7
...
...
@@ -17,8 +17,7 @@ module QA
end
it
'user submits, discards batch comments'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
merge_request
.
visit!
...
...
qa/qa/specs/features/ee/browser_ui/3_create/repository/assign_code_owners_spec.rb
View file @
356645b7
...
...
@@ -19,8 +19,7 @@ module QA
project
.
add_member
(
approver
,
Resource
::
Members
::
AccessLevel
::
DEVELOPER
)
project
.
add_member
(
non_approver
,
Resource
::
Members
::
AccessLevel
::
DEVELOPER
)
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
project
.
visit!
end
...
...
qa/qa/specs/features/ee/browser_ui/3_create/repository/code_owners_spec.rb
View file @
356645b7
...
...
@@ -18,8 +18,7 @@ module QA
before
do
# Add two new users to a project as members
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
@user
=
Resource
::
User
.
fabricate_or_use
(
Runtime
::
Env
.
gitlab_qa_username_1
,
Runtime
::
Env
.
gitlab_qa_password_1
)
@user2
=
Resource
::
User
.
fabricate_or_use
(
Runtime
::
Env
.
gitlab_qa_username_2
,
Runtime
::
Env
.
gitlab_qa_password_2
)
...
...
qa/qa/specs/features/ee/browser_ui/3_create/repository/file_locking_spec.rb
View file @
356645b7
...
...
@@ -4,8 +4,7 @@ module QA
context
'Create'
do
describe
'File Locking'
do
before
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
@user_one
=
Resource
::
User
.
fabricate_or_use
(
Runtime
::
Env
.
gitlab_qa_username_1
,
Runtime
::
Env
.
gitlab_qa_password_1
)
@user_two
=
Resource
::
User
.
fabricate_or_use
(
Runtime
::
Env
.
gitlab_qa_username_2
,
Runtime
::
Env
.
gitlab_qa_password_2
)
...
...
qa/qa/specs/features/ee/browser_ui/3_create/repository/pull_mirroring_over_http_spec.rb
View file @
356645b7
...
...
@@ -6,8 +6,7 @@ module QA
# See https://gitlab.com/gitlab-org/gitlab/issues/13769
describe
'Pull mirror a repository over HTTP'
,
:requires_admin
do
it
'configures and syncs a (pull) mirrored repository with password auth'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_admin_credentials
)
Flow
::
Login
.
sign_in_as_admin
source
=
Resource
::
Repository
::
ProjectPush
.
fabricate!
do
|
project_push
|
project_push
.
project_name
=
'pull-mirror-source-project'
...
...
qa/qa/specs/features/ee/browser_ui/3_create/repository/pull_mirroring_over_ssh_with_key_spec.rb
View file @
356645b7
...
...
@@ -20,8 +20,7 @@ module QA
end
before
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
target_project
.
visit!
end
...
...
qa/qa/specs/features/ee/browser_ui/3_create/repository/push_rules_spec.rb
View file @
356645b7
...
...
@@ -161,8 +161,7 @@ module QA
end
def
prepare
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
@project
=
Resource
::
Project
.
fabricate_via_api!
do
|
project
|
project
.
name
=
'push_rules'
...
...
qa/qa/specs/features/ee/browser_ui/3_create/web_ide/web_terminal_spec.rb
View file @
356645b7
...
...
@@ -42,8 +42,7 @@ module QA
END
end
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
project
.
visit!
end
...
...
qa/qa/specs/features/ee/browser_ui/5_package/maven_repository_spec.rb
View file @
356645b7
...
...
@@ -10,8 +10,7 @@ module QA
let
(
:package_name
)
{
"
#{
group_id
}
/
#{
artifact_id
}
"
.
tr
(
'.'
,
'/'
)
}
let
(
:auth_token
)
do
unless
Page
::
Main
::
Menu
.
perform
(
&
:signed_in?
)
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
end
Resource
::
PersonalAccessToken
.
fabricate!
.
access_token
...
...
qa/qa/specs/features/ee/browser_ui/5_package/npm_registry_spec.rb
View file @
356645b7
...
...
@@ -9,8 +9,7 @@ module QA
let
(
:package_name
)
{
"@
#{
registry_scope
}
/
#{
project
.
name
}
"
}
let
(
:auth_token
)
do
unless
Page
::
Main
::
Menu
.
perform
(
&
:signed_in?
)
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
end
Resource
::
PersonalAccessToken
.
fabricate!
.
access_token
...
...
qa/qa/specs/features/ee/browser_ui/6_release/multi-project_pipelines_spec.rb
View file @
356645b7
...
...
@@ -61,8 +61,7 @@ module QA
CI
end
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
Resource
::
MergeRequest
.
fabricate_via_api!
do
|
merge_request
|
merge_request
.
project
=
upstream_project
...
...
qa/qa/specs/features/ee/browser_ui/6_release/pipelines_for_merged_results_and_merge_trains_spec.rb
View file @
356645b7
...
...
@@ -30,8 +30,7 @@ module QA
end
before
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
@project
.
visit!
...
...
qa/qa/specs/features/ee/browser_ui/secure/create_merge_request_with_secure_spec.rb
View file @
356645b7
...
...
@@ -28,8 +28,7 @@ module QA
@job_log_json_flag_enabled
=
Runtime
::
Feature
.
enabled?
(
'job_log_json'
)
Runtime
::
Feature
.
disable
(
'job_log_json'
)
if
@job_log_json_flag_enabled
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
@project
=
Resource
::
Project
.
fabricate_via_api!
do
|
p
|
p
.
name
=
Runtime
::
Env
.
auto_devops_project_name
||
'project-with-secure'
...
...
qa/qa/specs/features/ee/browser_ui/secure/license_compliance_spec.rb
View file @
356645b7
...
...
@@ -9,8 +9,7 @@ module QA
describe
'License Compliance settings page'
do
before
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
@project
=
Resource
::
Project
.
fabricate_via_api!
do
|
project
|
project
.
name
=
Runtime
::
Env
.
auto_devops_project_name
||
'project-with-secure'
...
...
@@ -53,8 +52,7 @@ module QA
@job_log_json_flag_enabled
=
Runtime
::
Feature
.
enabled?
(
'job_log_json'
)
Runtime
::
Feature
.
disable
(
'job_log_json'
)
if
@job_log_json_flag_enabled
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Flow
::
Login
.
sign_in
@project
=
Resource
::
Project
.
fabricate_via_api!
do
|
project
|
project
.
name
=
Runtime
::
Env
.
auto_devops_project_name
||
'project-with-secure'
...
...
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