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
43b15346
Commit
43b15346
authored
Nov 05, 2021
by
Ezekiel Kigbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update data test id attribute in specs
parent
3cece301
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
ee/spec/views/groups/settings/_remove.html.haml_spec.rb
ee/spec/views/groups/settings/_remove.html.haml_spec.rb
+7
-7
spec/views/groups/settings/_remove.html.haml_spec.rb
spec/views/groups/settings/_remove.html.haml_spec.rb
+2
-2
No files found.
ee/spec/views/groups/settings/_remove.html.haml_spec.rb
View file @
43b15346
...
...
@@ -9,7 +9,7 @@ RSpec.describe 'groups/settings/_remove.html.haml' do
it
'enables the Remove group button and does not show an alert for a group'
do
render
'groups/settings/remove'
,
group:
group
expect
(
rendered
).
to
have_selector
'[data-testid="remove-group-button"]'
expect
(
rendered
).
to
have_selector
'[data-
button-
testid="remove-group-button"]'
expect
(
rendered
).
not_to
match
'data-disabled="true"'
expect
(
rendered
).
not_to
have_selector
'[data-testid="group-has-linked-subscription-alert"]'
end
...
...
@@ -19,7 +19,7 @@ RSpec.describe 'groups/settings/_remove.html.haml' do
render
'groups/settings/remove'
,
group:
group
expect
(
rendered
).
to
have_selector
'[data-testid="remove-group-button"]'
expect
(
rendered
).
to
have_selector
'[data-
button-
testid="remove-group-button"]'
expect
(
rendered
).
to
match
'data-disabled="true"'
expect
(
rendered
).
to
have_selector
'[data-testid="group-has-linked-subscription-alert"]'
end
...
...
@@ -29,7 +29,7 @@ RSpec.describe 'groups/settings/_remove.html.haml' do
render
'groups/settings/remove'
,
group:
group
expect
(
rendered
).
to
have_selector
'[data-testid="remove-group-button"]'
expect
(
rendered
).
to
have_selector
'[data-
button-
testid="remove-group-button"]'
expect
(
rendered
).
to
match
'data-disabled="true"'
expect
(
rendered
).
to
have_selector
'[data-testid="group-has-linked-subscription-alert"]'
end
...
...
@@ -40,7 +40,7 @@ RSpec.describe 'groups/settings/_remove.html.haml' do
render
'groups/settings/remove'
,
group:
subgroup
expect
(
rendered
).
to
have_selector
'[data-testid="remove-group-button"]'
expect
(
rendered
).
to
have_selector
'[data-
button-
testid="remove-group-button"]'
expect
(
rendered
).
not_to
match
'data-disabled="true"'
expect
(
rendered
).
not_to
have_selector
'[data-testid="group-has-linked-subscription-alert"]'
end
...
...
@@ -53,7 +53,7 @@ RSpec.describe 'groups/settings/_remove.html.haml' do
it
'enables the Remove group button and does not show an alert for a group without a paid gitlab.com plan'
do
render
'groups/settings/remove'
,
group:
group
expect
(
rendered
).
to
have_selector
'[data-testid="remove-group-button"]'
expect
(
rendered
).
to
have_selector
'[data-
button-
testid="remove-group-button"]'
expect
(
rendered
).
not_to
match
'data-disabled="true"'
expect
(
rendered
).
not_to
have_selector
'[data-testid="group-has-linked-subscription-alert"]'
end
...
...
@@ -63,7 +63,7 @@ RSpec.describe 'groups/settings/_remove.html.haml' do
render
'groups/settings/remove'
,
group:
group
expect
(
rendered
).
to
have_selector
'[data-testid="remove-group-button"]'
expect
(
rendered
).
to
have_selector
'[data-
button-
testid="remove-group-button"]'
expect
(
rendered
).
to
match
'data-disabled="true"'
expect
(
rendered
).
to
have_selector
'[data-testid="group-has-linked-subscription-alert"]'
end
...
...
@@ -74,7 +74,7 @@ RSpec.describe 'groups/settings/_remove.html.haml' do
render
'groups/settings/remove'
,
group:
subgroup
expect
(
rendered
).
to
have_selector
'[data-testid="remove-group-button"]'
expect
(
rendered
).
to
have_selector
'[data-
button-
testid="remove-group-button"]'
expect
(
rendered
).
not_to
match
'data-disabled="true"'
expect
(
rendered
).
not_to
have_selector
'[data-testid="group-has-linked-subscription-alert"]'
end
...
...
spec/views/groups/settings/_remove.html.haml_spec.rb
View file @
43b15346
...
...
@@ -9,8 +9,8 @@ RSpec.describe 'groups/settings/_remove.html.haml' do
render
'groups/settings/remove'
,
group:
group
expect
(
rendered
).
to
have_selector
'[data-testid="remove-group-button"]'
expect
(
rendered
).
not_to
have_selector
'[data-testid="remove-group-button"].disabled'
expect
(
rendered
).
to
have_selector
'[data-
button-
testid="remove-group-button"]'
expect
(
rendered
).
not_to
have_selector
'[data-
button-
testid="remove-group-button"].disabled'
expect
(
rendered
).
not_to
have_selector
'[data-testid="group-has-linked-subscription-alert"]'
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