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
6637894b
Commit
6637894b
authored
Jan 11, 2021
by
Lee Tickett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve user_deletes_snippet_spec assertion
parent
b3eca770
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
changelogs/unreleased/263408-improve-delete-snippet-test.yml
changelogs/unreleased/263408-improve-delete-snippet-test.yml
+5
-0
spec/features/projects/snippets/user_deletes_snippet_spec.rb
spec/features/projects/snippets/user_deletes_snippet_spec.rb
+3
-1
No files found.
changelogs/unreleased/263408-improve-delete-snippet-test.yml
0 → 100644
View file @
6637894b
---
title
:
Improve delete snippet feature spec
merge_request
:
51020
author
:
Lee Tickett @leetickett
type
:
other
spec/features/projects/snippets/user_deletes_snippet_spec.rb
View file @
6637894b
...
...
@@ -21,6 +21,8 @@ RSpec.describe 'Projects > Snippets > User deletes a snippet', :js do
click_button
(
'Delete snippet'
)
wait_for_requests
expect
(
page
).
not_to
have_content
(
snippet
.
title
)
# This assertion also confirms we did not end up on an error page
expect
(
page
).
to
have_selector
(
'#new_snippet_link'
)
expect
(
project
.
snippets
.
length
).
to
eq
(
0
)
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