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
a034feb1
Commit
a034feb1
authored
Feb 28, 2022
by
Sanad Liaquat
Committed by
Ramya Authappan
Feb 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
E2E: Raise error on failure to add license key
parent
3c419ef1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
2 deletions
+28
-2
qa/qa/ee/page/admin/license.rb
qa/qa/ee/page/admin/license.rb
+2
-2
qa/qa/ee/page/admin/subscription.rb
qa/qa/ee/page/admin/subscription.rb
+19
-0
qa/qa/ee/resource/license.rb
qa/qa/ee/resource/license.rb
+7
-0
No files found.
qa/qa/ee/page/admin/license.rb
View file @
a034feb1
...
...
@@ -25,11 +25,11 @@ module QA
end
def
add_new_license
(
key
)
raise
'License key empty!'
if
key
.
to_s
.
empty?
raise
'License key empty!'
if
key
.
to_s
.
strip
.
empty?
click_element
(
:license_upload_link
)
choose_element
(
:license_type_key_radio
)
fill_element
(
:license_key_field
,
key
)
fill_element
(
:license_key_field
,
key
.
strip
)
check_element
(
:accept_eula_checkbox
)
click_element
(
:license_upload_button
)
end
...
...
qa/qa/ee/page/admin/subscription.rb
0 → 100644
View file @
a034feb1
# frozen_string_literal: true
module
QA
module
EE
module
Page
module
Admin
class
Subscription
<
QA
::
Page
::
Base
view
'ee/app/assets/javascripts/admin/subscriptions/show/components/subscription_details_table.vue'
do
element
:plan
,
':data-qa-selector="qaSelectorValue(item)"'
# rubocop:disable QA/ElementWithPattern
end
def
has_ultimate_subscription_plan?
has_element?
(
:plan
,
text:
'Ultimate'
)
end
end
end
end
end
end
qa/qa/ee/resource/license.rb
View file @
a034feb1
...
...
@@ -17,6 +17,13 @@ module QA
end
end
unless
EE
::
Page
::
Admin
::
Subscription
.
perform
(
&
:has_ultimate_subscription_plan?
)
license_length
=
license
.
to_s
.
strip
.
length
license_info
=
"License key length:
#{
license_length
}
. "
+
(
license_length
>
5
?
"Last five characters:
#{
license
.
to_s
.
strip
[
-
5
..
]
}
"
:
""
)
raise
"Adding license key was unsuccessful.
#{
license_info
}
"
end
QA
::
Page
::
Main
::
Menu
.
perform
(
&
:sign_out_if_signed_in
)
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