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
aecea436
Commit
aecea436
authored
Oct 30, 2020
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix registry settings specs
parent
5f5b62d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
spec/features/projects/settings/registry_settings_spec.rb
spec/features/projects/settings/registry_settings_spec.rb
+5
-5
No files found.
spec/features/projects/settings/registry_settings_spec.rb
View file @
aecea436
...
@@ -33,13 +33,13 @@ RSpec.describe 'Project > Settings > CI/CD > Container registry tag expiration p
...
@@ -33,13 +33,13 @@ RSpec.describe 'Project > Settings > CI/CD > Container registry tag expiration p
subject
subject
within
'#js-registry-policies'
do
within
'#js-registry-policies'
do
within
'.card-body'
do
within
'.
gl-
card-body'
do
select
(
'7 days until tags are automatically removed'
,
from:
'Expiration interval:'
)
select
(
'7 days until tags are automatically removed'
,
from:
'Expiration interval:'
)
select
(
'Every day'
,
from:
'Expiration schedule:'
)
select
(
'Every day'
,
from:
'Expiration schedule:'
)
select
(
'50 tags per image name'
,
from:
'Number of tags to retain:'
)
select
(
'50 tags per image name'
,
from:
'Number of tags to retain:'
)
fill_in
(
'Tags with names matching this regex pattern will expire:'
,
with:
'.*-production'
)
fill_in
(
'Tags with names matching this regex pattern will expire:'
,
with:
'.*-production'
)
end
end
submit_button
=
find
(
'.card-footer .btn.btn-success'
)
submit_button
=
find
(
'.
gl-
card-footer .btn.btn-success'
)
expect
(
submit_button
).
not_to
be_disabled
expect
(
submit_button
).
not_to
be_disabled
submit_button
.
click
submit_button
.
click
end
end
...
@@ -51,10 +51,10 @@ RSpec.describe 'Project > Settings > CI/CD > Container registry tag expiration p
...
@@ -51,10 +51,10 @@ RSpec.describe 'Project > Settings > CI/CD > Container registry tag expiration p
subject
subject
within
'#js-registry-policies'
do
within
'#js-registry-policies'
do
within
'.card-body'
do
within
'.
gl-
card-body'
do
fill_in
(
'Tags with names matching this regex pattern will expire:'
,
with:
'*-production'
)
fill_in
(
'Tags with names matching this regex pattern will expire:'
,
with:
'*-production'
)
end
end
submit_button
=
find
(
'.card-footer .btn.btn-success'
)
submit_button
=
find
(
'.
gl-
card-footer .btn.btn-success'
)
expect
(
submit_button
).
not_to
be_disabled
expect
(
submit_button
).
not_to
be_disabled
submit_button
.
click
submit_button
.
click
end
end
...
@@ -85,7 +85,7 @@ RSpec.describe 'Project > Settings > CI/CD > Container registry tag expiration p
...
@@ -85,7 +85,7 @@ RSpec.describe 'Project > Settings > CI/CD > Container registry tag expiration p
within
'#js-registry-policies'
do
within
'#js-registry-policies'
do
case
result
case
result
when
:available_section
when
:available_section
expect
(
find
(
'.card-header'
)).
to
have_content
(
'Tag expiration policy'
)
expect
(
find
(
'.
gl-
card-header'
)).
to
have_content
(
'Tag expiration policy'
)
when
:disabled_message
when
:disabled_message
expect
(
find
(
'.gl-alert-title'
)).
to
have_content
(
'Cleanup policy for tags is disabled'
)
expect
(
find
(
'.gl-alert-title'
)).
to
have_content
(
'Cleanup policy for tags is disabled'
)
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