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
d2cf079c
Commit
d2cf079c
authored
Jul 28, 2021
by
peterhegman
Committed by
Peter Hegman
Aug 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use have_content to check for help text
parent
7f63cc0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
spec/views/groups/edit.html.haml_spec.rb
spec/views/groups/edit.html.haml_spec.rb
+1
-1
spec/views/groups/show.html.haml_spec.rb
spec/views/groups/show.html.haml_spec.rb
+1
-1
No files found.
spec/views/groups/edit.html.haml_spec.rb
View file @
d2cf079c
...
...
@@ -25,7 +25,7 @@ RSpec.describe 'groups/edit.html.haml' do
render
expect
(
rendered
).
to
have_content
(
"Prevent sharing a project within
#{
test_group
.
name
}
with other groups"
)
expect
(
rendered
).
to
have_c
ss
(
'.help-text'
,
text:
'help text here'
)
expect
(
rendered
).
to
have_c
ontent
(
'help text here'
)
expect
(
rendered
).
to
have_field
(
'group_share_with_group_lock'
,
**
checkbox_options
)
end
end
...
...
spec/views/groups/show.html.haml_spec.rb
View file @
d2cf079c
...
...
@@ -25,7 +25,7 @@ RSpec.describe 'groups/edit.html.haml' do
render
expect
(
rendered
).
to
have_content
(
"Prevent sharing a project within
#{
test_group
.
name
}
with other groups"
)
expect
(
rendered
).
to
have_c
ss
(
'.js-descr'
,
text:
'help text here'
)
expect
(
rendered
).
to
have_c
ontent
(
'help text here'
)
expect
(
rendered
).
to
have_field
(
'group_share_with_group_lock'
,
**
checkbox_options
)
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