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
94c10463
Commit
94c10463
authored
Nov 21, 2019
by
Dan Davison
Committed by
Ramya Authappan
Nov 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename 'new' page object to 'new_page'
Remove unnecessary perform blocks
parent
79f5060b
Changes
22
Show whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
109 additions
and
113 deletions
+109
-113
qa/qa/ee/resource/epic.rb
qa/qa/ee/resource/epic.rb
+6
-6
qa/qa/ee/resource/geo/node.rb
qa/qa/ee/resource/geo/node.rb
+4
-4
qa/qa/resource/deploy_token.rb
qa/qa/resource/deploy_token.rb
+4
-4
qa/qa/resource/file.rb
qa/qa/resource/file.rb
+5
-5
qa/qa/resource/fork.rb
qa/qa/resource/fork.rb
+2
-2
qa/qa/resource/kubernetes_cluster.rb
qa/qa/resource/kubernetes_cluster.rb
+18
-18
qa/qa/resource/label.rb
qa/qa/resource/label.rb
+5
-5
qa/qa/resource/merge_request.rb
qa/qa/resource/merge_request.rb
+8
-8
qa/qa/resource/personal_access_token.rb
qa/qa/resource/personal_access_token.rb
+4
-4
qa/qa/resource/project.rb
qa/qa/resource/project.rb
+11
-11
qa/qa/resource/project_imported_from_github.rb
qa/qa/resource/project_imported_from_github.rb
+6
-10
qa/qa/resource/project_milestone.rb
qa/qa/resource/project_milestone.rb
+3
-3
qa/qa/resource/snippet.rb
qa/qa/resource/snippet.rb
+7
-7
qa/qa/resource/ssh_key.rb
qa/qa/resource/ssh_key.rb
+2
-2
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
+3
-3
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
+2
-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
+2
-2
qa/qa/specs/features/browser_ui/2_plan/issue/check_mentions_for_xss_spec.rb
...es/browser_ui/2_plan/issue/check_mentions_for_xss_spec.rb
+2
-2
qa/qa/specs/features/browser_ui/2_plan/issue/issue_suggestions_spec.rb
...eatures/browser_ui/2_plan/issue/issue_suggestions_spec.rb
+5
-5
qa/qa/specs/features/browser_ui/3_create/web_ide/add_file_template_spec.rb
...res/browser_ui/3_create/web_ide/add_file_template_spec.rb
+3
-3
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
+3
-3
qa/qa/specs/features/browser_ui/non_devops/performance_bar_spec.rb
...cs/features/browser_ui/non_devops/performance_bar_spec.rb
+4
-4
No files found.
qa/qa/ee/resource/epic.rb
View file @
94c10463
...
...
@@ -29,12 +29,12 @@ module QA
QA
::
Page
::
Group
::
Menu
.
perform
(
&
:click_group_epics_link
)
QA
::
EE
::
Page
::
Group
::
Epic
::
Index
.
perform
do
|
page
|
# rubocop:disable QA/AmbiguousPageObjectName
page
.
click_new_epic
page
.
set_title
(
@title
)
page
.
create_new_epic
page
.
wait
(
interval:
1
)
do
page
.
has_text?
(
@title
)
QA
::
EE
::
Page
::
Group
::
Epic
::
Index
.
perform
do
|
index
|
index
.
click_new_epic
index
.
set_title
(
@title
)
index
.
create_new_epic
index
.
wait
(
interval:
1
)
do
index
.
has_text?
(
@title
)
end
end
end
...
...
qa/qa/ee/resource/geo/node.rb
View file @
94c10463
...
...
@@ -14,12 +14,12 @@ module QA
QA
::
Page
::
Admin
::
Menu
.
perform
(
&
:click_geo_menu_link
)
EE
::
Page
::
Admin
::
Geo
::
Nodes
::
Show
.
perform
(
&
:new_node!
)
EE
::
Page
::
Admin
::
Geo
::
Nodes
::
New
.
perform
do
|
page
|
# rubocop:disable QA/AmbiguousPageObjectName
EE
::
Page
::
Admin
::
Geo
::
Nodes
::
New
.
perform
do
|
new_page
|
raise
ArgumentError
if
@name
.
nil?
||
@address
.
nil?
page
.
set_node_name
(
@name
)
page
.
set_node_address
(
@address
)
page
.
add_node!
new_
page
.
set_node_name
(
@name
)
new_
page
.
set_node_address
(
@address
)
new_
page
.
add_node!
end
QA
::
Page
::
Main
::
Menu
.
perform
(
&
:sign_out
)
...
...
qa/qa/resource/deploy_token.rb
View file @
94c10463
...
...
@@ -6,16 +6,16 @@ module QA
attr_accessor
:name
,
:expires_at
attribute
:username
do
Page
::
Project
::
Settings
::
Repository
.
perform
do
|
page
|
# rubocop:disable QA/AmbiguousPageObjectName
page
.
expand_deploy_tokens
do
|
token
|
Page
::
Project
::
Settings
::
Repository
.
perform
do
|
repository_page
|
repository_
page
.
expand_deploy_tokens
do
|
token
|
token
.
token_username
end
end
end
attribute
:password
do
Page
::
Project
::
Settings
::
Repository
.
perform
do
|
page
|
# rubocop:disable QA/AmbiguousPageObjectName
page
.
expand_deploy_tokens
do
|
token
|
Page
::
Project
::
Settings
::
Repository
.
perform
do
|
repository_page
|
repository_
page
.
expand_deploy_tokens
do
|
token
|
token
.
token_password
end
end
...
...
qa/qa/resource/file.rb
View file @
94c10463
...
...
@@ -27,11 +27,11 @@ module QA
Page
::
Project
::
Show
.
perform
(
&
:create_first_new_file!
)
Page
::
File
::
Form
.
perform
do
|
page
|
# rubocop:disable QA/AmbiguousPageObjectName
page
.
add_name
(
@name
)
page
.
add_content
(
@content
)
page
.
add_commit_message
(
@commit_message
)
page
.
commit_changes
Page
::
File
::
Form
.
perform
do
|
form
|
form
.
add_name
(
@name
)
form
.
add_content
(
@content
)
form
.
add_commit_message
(
@commit_message
)
form
.
commit_changes
end
end
...
...
qa/qa/resource/fork.rb
View file @
94c10463
...
...
@@ -41,8 +41,8 @@ module QA
fork_new
.
choose_namespace
(
user
.
name
)
end
Page
::
Layout
::
Banner
.
perform
do
|
page
|
# rubocop:disable QA/AmbiguousPageObjectName
page
.
has_notice?
(
'The project was successfully forked.'
)
Page
::
Layout
::
Banner
.
perform
do
|
banner
|
banner
.
has_notice?
(
'The project was successfully forked.'
)
end
populate
(
:project
)
...
...
qa/qa/resource/kubernetes_cluster.rb
View file @
94c10463
...
...
@@ -24,36 +24,36 @@ module QA
Page
::
Project
::
Operations
::
Kubernetes
::
Add
.
perform
(
&
:add_existing_cluster
)
Page
::
Project
::
Operations
::
Kubernetes
::
AddExisting
.
perform
do
|
page
|
# rubocop:disable QA/AmbiguousPageObjectName
page
.
set_cluster_name
(
@cluster
.
cluster_name
)
page
.
set_api_url
(
@cluster
.
api_url
)
page
.
set_ca_certificate
(
@cluster
.
ca_certificate
)
page
.
set_token
(
@cluster
.
token
)
page
.
uncheck_rbac!
unless
@cluster
.
rbac
page
.
add_cluster!
Page
::
Project
::
Operations
::
Kubernetes
::
AddExisting
.
perform
do
|
cluster_page
|
cluster_
page
.
set_cluster_name
(
@cluster
.
cluster_name
)
cluster_
page
.
set_api_url
(
@cluster
.
api_url
)
cluster_
page
.
set_ca_certificate
(
@cluster
.
ca_certificate
)
cluster_
page
.
set_token
(
@cluster
.
token
)
cluster_
page
.
uncheck_rbac!
unless
@cluster
.
rbac
cluster_
page
.
add_cluster!
end
if
@install_helm_tiller
Page
::
Project
::
Operations
::
Kubernetes
::
Show
.
perform
do
|
page
|
# rubocop:disable QA/AmbiguousPageObjectName
Page
::
Project
::
Operations
::
Kubernetes
::
Show
.
perform
do
|
show
|
# We must wait a few seconds for permissions to be set up correctly for new cluster
sleep
10
# Helm must be installed before everything else
page
.
install!
(
:helm
)
page
.
await_installed
(
:helm
)
show
.
install!
(
:helm
)
show
.
await_installed
(
:helm
)
page
.
install!
(
:ingress
)
if
@install_ingress
page
.
install!
(
:prometheus
)
if
@install_prometheus
page
.
install!
(
:runner
)
if
@install_runner
show
.
install!
(
:ingress
)
if
@install_ingress
show
.
install!
(
:prometheus
)
if
@install_prometheus
show
.
install!
(
:runner
)
if
@install_runner
page
.
await_installed
(
:ingress
)
if
@install_ingress
page
.
await_installed
(
:prometheus
)
if
@install_prometheus
page
.
await_installed
(
:runner
)
if
@install_runner
show
.
await_installed
(
:ingress
)
if
@install_ingress
show
.
await_installed
(
:prometheus
)
if
@install_prometheus
show
.
await_installed
(
:runner
)
if
@install_runner
if
@install_ingress
populate
(
:ingress_ip
)
page
.
set_domain
(
"
#{
ingress_ip
}
.nip.io"
)
page
.
save_domain
show
.
set_domain
(
"
#{
ingress_ip
}
.nip.io"
)
show
.
save_domain
end
end
end
...
...
qa/qa/resource/label.rb
View file @
94c10463
...
...
@@ -28,11 +28,11 @@ module QA
Page
::
Project
::
Menu
.
perform
(
&
:go_to_labels
)
Page
::
Label
::
Index
.
perform
(
&
:click_new_label_button
)
Page
::
Label
::
New
.
perform
do
|
page
|
# rubocop:disable QA/AmbiguousPageObjectName
page
.
fill_title
(
@title
)
page
.
fill_description
(
@description
)
page
.
fill_color
(
@color
)
page
.
click_label_create_button
Page
::
Label
::
New
.
perform
do
|
new_page
|
new_
page
.
fill_title
(
@title
)
new_
page
.
fill_description
(
@description
)
new_
page
.
fill_color
(
@color
)
new_
page
.
click_label_create_button
end
end
...
...
qa/qa/resource/merge_request.rb
View file @
94c10463
...
...
@@ -65,17 +65,17 @@ module QA
project
.
visit!
Page
::
Project
::
Show
.
perform
(
&
:new_merge_request
)
Page
::
MergeRequest
::
New
.
perform
do
|
new
|
new
.
fill_title
(
@title
)
new
.
fill_description
(
@description
)
new
.
choose_milestone
(
@milestone
)
if
@milestone
new
.
assign_to_me
if
@assignee
==
'me'
Page
::
MergeRequest
::
New
.
perform
do
|
new
_page
|
new
_page
.
fill_title
(
@title
)
new
_page
.
fill_description
(
@description
)
new
_page
.
choose_milestone
(
@milestone
)
if
@milestone
new
_page
.
assign_to_me
if
@assignee
==
'me'
labels
.
each
do
|
label
|
new
.
select_label
(
label
)
new
_page
.
select_label
(
label
)
end
new
.
add_approval_rules
(
approval_rules
)
if
approval_rules
new
_page
.
add_approval_rules
(
approval_rules
)
if
approval_rules
new
.
create_merge_request
new
_page
.
create_merge_request
end
end
...
...
qa/qa/resource/personal_access_token.rb
View file @
94c10463
...
...
@@ -16,10 +16,10 @@ module QA
Page
::
Main
::
Menu
.
perform
(
&
:click_settings_link
)
Page
::
Profile
::
Menu
.
perform
(
&
:click_access_tokens
)
Page
::
Profile
::
PersonalAccessTokens
.
perform
do
|
page
|
# rubocop:disable QA/AmbiguousPageObjectName
page
.
fill_token_name
(
name
||
'api-test-token'
)
page
.
check_api
page
.
click_create_token_button
Page
::
Profile
::
PersonalAccessTokens
.
perform
do
|
token_page
|
token_
page
.
fill_token_name
(
name
||
'api-test-token'
)
token_
page
.
check_api
token_
page
.
click_create_token_button
end
end
end
...
...
qa/qa/resource/project.rb
View file @
94c10463
...
...
@@ -32,14 +32,14 @@ module QA
end
attribute
:repository_ssh_location
do
Page
::
Project
::
Show
.
perform
do
|
page
|
# rubocop:disable QA/AmbiguousPageObjectName
page
.
repository_clone_ssh_location
Page
::
Project
::
Show
.
perform
do
|
show
|
show
.
repository_clone_ssh_location
end
end
attribute
:repository_http_location
do
Page
::
Project
::
Show
.
perform
do
|
page
|
# rubocop:disable QA/AmbiguousPageObjectName
page
.
repository_clone_http_location
Page
::
Project
::
Show
.
perform
do
|
show
|
show
.
repository_clone_http_location
end
end
...
...
@@ -62,13 +62,13 @@ module QA
Page
::
Group
::
Show
.
perform
(
&
:go_to_new_project
)
end
Page
::
Project
::
New
.
perform
do
|
page
|
# rubocop:disable QA/AmbiguousPageObjectName
page
.
choose_test_namespace
page
.
choose_name
(
@name
)
page
.
add_description
(
@description
)
page
.
set_visibility
(
@visibility
)
page
.
enable_initialize_with_readme
if
@initialize_with_readme
page
.
create_new_project
Page
::
Project
::
New
.
perform
do
|
new_page
|
new_
page
.
choose_test_namespace
new_
page
.
choose_name
(
@name
)
new_
page
.
add_description
(
@description
)
new_
page
.
set_visibility
(
@visibility
)
new_
page
.
enable_initialize_with_readme
if
@initialize_with_readme
new_
page
.
create_new_project
end
end
...
...
qa/qa/resource/project_imported_from_github.rb
View file @
94c10463
...
...
@@ -17,18 +17,14 @@ module QA
Page
::
Group
::
Show
.
perform
(
&
:go_to_new_project
)
Page
::
Project
::
New
.
perform
do
|
page
|
# rubocop:disable QA/AmbiguousPageObjectName
page
.
click_import_project
end
Page
::
Project
::
New
.
perform
(
&
:click_import_project
)
Page
::
Project
::
New
.
perform
do
|
page
|
# rubocop:disable QA/AmbiguousPageObjectName
page
.
click_github_link
end
Page
::
Project
::
New
.
perform
(
&
:click_github_link
)
Page
::
Project
::
Import
::
Github
.
perform
do
|
page
|
# rubocop:disable QA/AmbiguousPageObjectName
page
.
add_personal_access_token
(
@personal_access_token
)
page
.
list_repos
page
.
import!
(
@github_repository_path
,
@name
)
Page
::
Project
::
Import
::
Github
.
perform
do
|
import_page
|
import_
page
.
add_personal_access_token
(
@personal_access_token
)
import_
page
.
list_repos
import_
page
.
import!
(
@github_repository_path
,
@name
)
end
end
end
...
...
qa/qa/resource/project_milestone.rb
View file @
94c10463
...
...
@@ -18,9 +18,9 @@ module QA
def
fabricate!
project
.
visit!
Page
::
Project
::
Menu
.
perform
do
|
page
|
# rubocop:disable QA/AmbiguousPageObjectName
page
.
click_issues
page
.
click_milestones
Page
::
Project
::
Menu
.
perform
do
|
menu
|
menu
.
click_issues
menu
.
click_milestones
end
Page
::
Project
::
Milestone
::
Index
.
perform
(
&
:click_new_milestone
)
...
...
qa/qa/resource/snippet.rb
View file @
94c10463
...
...
@@ -16,13 +16,13 @@ module QA
def
fabricate!
Page
::
Dashboard
::
Snippet
::
Index
.
perform
(
&
:go_to_new_snippet_page
)
Page
::
Dashboard
::
Snippet
::
New
.
perform
do
|
page
|
# rubocop:disable QA/AmbiguousPageObjectName
page
.
fill_title
(
@title
)
page
.
fill_description
(
@description
)
page
.
set_visibility
(
@visibility
)
page
.
fill_file_name
(
@file_name
)
page
.
fill_file_content
(
@file_content
)
page
.
click_create_snippet_button
Page
::
Dashboard
::
Snippet
::
New
.
perform
do
|
new_page
|
new_
page
.
fill_title
(
@title
)
new_
page
.
fill_description
(
@description
)
new_
page
.
set_visibility
(
@visibility
)
new_
page
.
fill_file_name
(
@file_name
)
new_
page
.
fill_file_content
(
@file_content
)
new_
page
.
click_create_snippet_button
end
end
end
...
...
qa/qa/resource/ssh_key.rb
View file @
94c10463
...
...
@@ -17,8 +17,8 @@ module QA
Page
::
Main
::
Menu
.
perform
(
&
:click_settings_link
)
Page
::
Profile
::
Menu
.
perform
(
&
:click_ssh_keys
)
Page
::
Profile
::
SSHKeys
.
perform
do
|
p
age
|
# rubocop:disable QA/AmbiguousPageObjectName
page
.
add_key
(
public_key
,
title
)
Page
::
Profile
::
SSHKeys
.
perform
do
|
p
rofile_page
|
p
rofile_p
age
.
add_key
(
public_key
,
title
)
end
end
end
...
...
qa/qa/specs/features/browser_ui/1_manage/group/create_group_with_mattermost_team_spec.rb
View file @
94c10463
...
...
@@ -8,10 +8,10 @@ module QA
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
Page
::
Main
::
Menu
.
perform
(
&
:go_to_groups
)
Page
::
Dashboard
::
Groups
.
perform
do
|
page
|
# rubocop:disable QA/AmbiguousPageObjectName
page
.
click_new_group
Page
::
Dashboard
::
Groups
.
perform
do
|
groups
|
groups
.
click_new_group
expect
(
page
).
to
have_content
(
expect
(
groups
).
to
have_content
(
/Create a Mattermost team for this group/
)
end
...
...
qa/qa/specs/features/browser_ui/1_manage/login/log_into_mattermost_via_gitlab_spec.rb
View file @
94c10463
...
...
@@ -11,8 +11,8 @@ module QA
Runtime
::
Browser
.
visit
(
:mattermost
,
Page
::
Mattermost
::
Login
)
Page
::
Mattermost
::
Login
.
perform
(
&
:sign_in_using_oauth
)
Page
::
Mattermost
::
Main
.
perform
do
|
page
|
# rubocop:disable QA/AmbiguousPageObjectName
expect
(
page
).
to
have_content
(
/(Welcome to: Mattermost|Logout GitLab Mattermost)/
)
Page
::
Mattermost
::
Main
.
perform
do
|
mattermost
|
expect
(
mattermost
).
to
have_content
(
/(Welcome to: Mattermost|Logout GitLab Mattermost)/
)
end
end
end
...
...
qa/qa/specs/features/browser_ui/1_manage/project/add_project_member_spec.rb
View file @
94c10463
...
...
@@ -15,8 +15,8 @@ module QA
project
.
visit!
Page
::
Project
::
Menu
.
perform
(
&
:go_to_members_settings
)
Page
::
Project
::
Settings
::
Members
.
perform
do
|
page
|
# rubocop:disable QA/AmbiguousPageObjectName
page
.
add_member
(
user
.
username
)
Page
::
Project
::
Settings
::
Members
.
perform
do
|
members
|
members
.
add_member
(
user
.
username
)
end
expect
(
page
).
to
have_content
(
/@
#{
user
.
username
}
(\n| )?Given access/
)
...
...
qa/qa/specs/features/browser_ui/2_plan/issue/check_mentions_for_xss_spec.rb
View file @
94c10463
...
...
@@ -27,8 +27,8 @@ module QA
project
.
visit!
Page
::
Project
::
Show
.
perform
(
&
:go_to_members_settings
)
Page
::
Project
::
Settings
::
Members
.
perform
do
|
page
|
# rubocop:disable QA/AmbiguousPageObjectName
page
.
add_member
(
user
.
username
)
Page
::
Project
::
Settings
::
Members
.
perform
do
|
members
|
members
.
add_member
(
user
.
username
)
end
issue
=
Resource
::
Issue
.
fabricate_via_api!
do
|
issue
|
...
...
qa/qa/specs/features/browser_ui/2_plan/issue/issue_suggestions_spec.rb
View file @
94c10463
...
...
@@ -23,12 +23,12 @@ module QA
it
'user sees issue suggestions when creating a new issue'
do
Page
::
Project
::
Show
.
perform
(
&
:go_to_new_issue
)
Page
::
Project
::
Issue
::
New
.
perform
do
|
new
|
new
.
add_title
(
"issue"
)
expect
(
new
).
to
have_content
(
issue_title
)
Page
::
Project
::
Issue
::
New
.
perform
do
|
new
_page
|
new
_page
.
add_title
(
"issue"
)
expect
(
new
_page
).
to
have_content
(
issue_title
)
new
.
add_title
(
"Issue Board"
)
expect
(
new
).
not_to
have_content
(
issue_title
)
new
_page
.
add_title
(
"Issue Board"
)
expect
(
new
_page
).
not_to
have_content
(
issue_title
)
end
end
end
...
...
qa/qa/specs/features/browser_ui/3_create/web_ide/add_file_template_spec.rb
View file @
94c10463
...
...
@@ -50,10 +50,10 @@ module QA
@project
.
visit!
Page
::
Project
::
Show
.
perform
(
&
:open_web_ide!
)
Page
::
Project
::
WebIDE
::
Edit
.
perform
do
|
page
|
# rubocop:disable QA/AmbiguousPageObjectName
pag
e
.
create_new_file_from_template
template
[
:file_name
],
template
[
:name
]
Page
::
Project
::
WebIDE
::
Edit
.
perform
do
|
ide
|
id
e
.
create_new_file_from_template
template
[
:file_name
],
template
[
:name
]
expect
(
pag
e
.
has_file?
(
template
[
:file_name
])).
to
be_truthy
expect
(
id
e
.
has_file?
(
template
[
:file_name
])).
to
be_truthy
end
expect
(
page
).
to
have_button
(
'Undo'
)
...
...
qa/qa/specs/features/browser_ui/3_create/wiki/create_edit_clone_push_wiki_spec.rb
View file @
94c10463
...
...
@@ -16,9 +16,9 @@ module QA
validate_content
(
'My First Wiki Content'
)
Page
::
Project
::
Wiki
::
Edit
.
perform
(
&
:click_edit
)
Page
::
Project
::
Wiki
::
New
.
perform
do
|
page
|
# rubocop:disable QA/AmbiguousPageObjectName
page
.
set_content
(
"My Second Wiki Content"
)
page
.
save_changes
Page
::
Project
::
Wiki
::
New
.
perform
do
|
wiki
|
wiki
.
set_content
(
"My Second Wiki Content"
)
wiki
.
save_changes
end
validate_content
(
'My Second Wiki Content'
)
...
...
qa/qa/specs/features/browser_ui/non_devops/performance_bar_spec.rb
View file @
94c10463
...
...
@@ -23,10 +23,10 @@ module QA
issue
.
title
=
'Performance bar test'
end
Page
::
Layout
::
PerformanceBar
.
perform
do
|
page
|
# rubocop:disable QA/AmbiguousPageObjectName
expect
(
page
).
to
have_performance_bar
expect
(
page
).
to
have_detailed_metrics
expect
(
page
).
to
have_request_for
(
'realtime_changes'
)
# Always requested on issue pages
Page
::
Layout
::
PerformanceBar
.
perform
do
|
bar_component
|
expect
(
bar_component
).
to
have_performance_bar
expect
(
bar_component
).
to
have_detailed_metrics
expect
(
bar_component
).
to
have_request_for
(
'realtime_changes'
)
# Always requested on issue pages
end
end
end
...
...
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