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
e2659825
Commit
e2659825
authored
Mar 02, 2021
by
Alper Akgun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor issue weight specs
parent
2bd57d02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
ee/spec/features/promotion_spec.rb
ee/spec/features/promotion_spec.rb
+9
-9
No files found.
ee/spec/features/promotion_spec.rb
View file @
e2659825
...
...
@@ -82,7 +82,7 @@ RSpec.describe 'Promotions', :js do
it
'appears in milestone page'
do
visit
project_milestone_path
(
project
,
milestone
)
expect
(
find
(
'#promote_burndown_charts'
)).
to
have_content
"Upgrade your plan to improve milestones with Burndown Charts."
expect
(
find
(
'#promote_burndown_charts'
)).
to
have_content
'Upgrade your plan to improve milestones with Burndown Charts.'
end
it
'does not show when cookie is set'
do
...
...
@@ -180,7 +180,7 @@ RSpec.describe 'Promotions', :js do
visit
project_issue_path
(
project
,
issue
)
wait_for_requests
find
(
'.btn-link.js-toggle-button.js-weight-sidebar-callout-btn'
).
click
click_link
'Learn more'
expect
(
find
(
'.promotion-issue-weight-sidebar-message'
)).
to
have_content
'Improve issues management with Issue weight and GitLab Enterprise Edition'
end
...
...
@@ -189,8 +189,8 @@ RSpec.describe 'Promotions', :js do
visit
project_issue_path
(
project
,
issue
)
wait_for_requests
find
(
'.btn-link.js-toggle-button.js-weight-sidebar-callout-btn'
).
click
click_link
"Not now, thanks"
click_link
'Learn more'
click_link
'Not now, thanks'
expect
(
page
).
not_to
have_content
(
'.js-weight-sidebar-callout'
)
end
...
...
@@ -199,8 +199,8 @@ RSpec.describe 'Promotions', :js do
visit
project_issue_path
(
project
,
issue
)
wait_for_requests
find
(
'.btn-link.js-toggle-button.js-weight-sidebar-callout-btn'
).
click
find
(
'.js-weight-sidebar-callout .js-close-callout'
).
click
click_link
'Learn more'
click_link
'Not now, thanks'
visit
project_issue_path
(
project
,
issue
)
expect
(
page
).
not_to
have_selector
(
'.js-weight-sidebar-callout'
)
...
...
@@ -210,8 +210,8 @@ RSpec.describe 'Promotions', :js do
visit
project_issue_path
(
project
,
issue
)
wait_for_requests
find
(
'.btn-link.js-toggle-button.js-weight-sidebar-callout-btn'
).
click
find
(
'.btn-link.js-toggle-button.js-weight-sidebar-callout-btn'
).
click
click_link
'Learn more'
click_link
'Learn more'
expect
(
page
).
to
have_selector
(
'.js-weight-sidebar-callout'
)
expect
(
page
).
to
have_selector
(
'.promotion-issue-sidebar-message'
,
visible:
false
)
...
...
@@ -228,7 +228,7 @@ RSpec.describe 'Promotions', :js do
visit
project_issue_path
(
project
,
issue
)
wait_for_requests
find
(
'.btn-link.js-toggle-button.js-weight-sidebar-callout-btn'
).
click
click_link
'Learn more'
expect
(
page
).
to
have_link
'Try it for free'
,
href:
new_trial_registration_path
(
glm_source:
'gitlab.com'
,
glm_content:
'discover-issue-weights'
),
class:
'issue-weights-trial-cta'
expect
(
find
(
'.js-close-callout.js-close-session.tr-issue-weights-not-now-cta'
)).
to
have_content
'Not now, thanks!'
...
...
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