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
b7b26416
Commit
b7b26416
authored
Mar 14, 2022
by
Alper Akgun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Group namespace billing hand raise test improvement
parent
394460bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
52 deletions
+58
-52
ee/spec/features/billings/billing_plans_spec.rb
ee/spec/features/billings/billing_plans_spec.rb
+58
-52
No files found.
ee/spec/features/billings/billing_plans_spec.rb
View file @
b7b26416
...
...
@@ -63,13 +63,22 @@ RSpec.describe 'Billing plan pages', :feature, :js do
end
end
shared_examples
'can not contact sales'
do
before
do
visit
page_path
end
it
'does not render in-app hand raise lead'
do
expect
(
page
).
to
have_selector
(
".js-hand-raise-lead-button[data-namespace-id='
#{
namespace
.
id
}
'][data-user-name='
#{
user
.
username
}
']"
,
visible:
false
)
end
end
shared_examples
'can contact sales'
do
before
do
visit
page_path
end
it
'displays the in-app hand raise lead'
,
:aggregate_failures
do
if
namespace
.
group_namespace?
form_data
=
{
first_name:
user
.
first_name
,
last_name:
user
.
last_name
,
...
...
@@ -120,9 +129,6 @@ RSpec.describe 'Billing plan pages', :feature, :js do
click_button
'Submit information'
end
else
expect
(
page
).
to
have_selector
(
".js-hand-raise-lead-button[data-namespace-id='
#{
namespace
.
id
}
'][data-user-name='
#{
user
.
username
}
']"
,
visible:
false
)
end
end
end
...
...
@@ -293,7 +299,7 @@ RSpec.describe 'Billing plan pages', :feature, :js do
it_behaves_like
'plan with header'
it_behaves_like
'downgradable plan'
it_behaves_like
'upgradable plan'
it_behaves_like
'can contact sales'
it_behaves_like
'can
not
contact sales'
it_behaves_like
'plan with subscription table'
context
'when hide_deprecated_billing_plans is active'
do
...
...
@@ -327,7 +333,7 @@ RSpec.describe 'Billing plan pages', :feature, :js do
it_behaves_like
'plan with header'
it_behaves_like
'downgradable plan'
it_behaves_like
'upgradable plan'
it_behaves_like
'can contact sales'
it_behaves_like
'can
not
contact sales'
it_behaves_like
'plan with subscription table'
it_behaves_like
'does not display EoA banner'
end
...
...
@@ -386,7 +392,7 @@ RSpec.describe 'Billing plan pages', :feature, :js do
it_behaves_like
'plan with header'
it_behaves_like
'downgradable plan'
it_behaves_like
'upgradable plan'
it_behaves_like
'can contact sales'
it_behaves_like
'can
not
contact sales'
end
context
'on ultimate plan'
do
...
...
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