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
33a7a8ff
Commit
33a7a8ff
authored
Oct 08, 2021
by
Zack Cuddy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete flakey test in security_newsletter_callout_spec.rb
parent
7bc0cb82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
57 deletions
+0
-57
spec/features/callouts/security_newsletter_callout_spec.rb
spec/features/callouts/security_newsletter_callout_spec.rb
+0
-57
No files found.
spec/features/callouts/security_newsletter_callout_spec.rb
deleted
100644 → 0
View file @
7bc0cb82
# frozen_string_literal: true
require
'spec_helper'
RSpec
.
describe
'Security newsletter callout'
,
:js
do
let_it_be
(
:admin
)
{
create
(
:admin
)
}
let_it_be
(
:non_admin
)
{
create
(
:user
)
}
shared_examples
'hidden callout'
do
it
'does not display callout'
do
expect
(
page
).
not_to
have_content
'Sign up for the GitLab Security Newsletter to get notified for security updates.'
end
end
context
'when an admin is logged in'
do
before
do
sign_in
(
admin
)
gitlab_enable_admin_mode_sign_in
(
admin
)
visit
admin_root_path
end
it
'displays callout'
do
expect
(
page
).
to
have_content
'Sign up for the GitLab Security Newsletter to get notified for security updates.'
expect
(
page
).
to
have_link
'Sign up for the GitLab newsletter'
,
href:
'https://about.gitlab.com/company/preference-center/'
end
context
'when link is clicked'
do
before
do
find_link
(
'Sign up for the GitLab newsletter'
).
click
visit
admin_root_path
end
it_behaves_like
'hidden callout'
end
context
'when callout is dismissed'
do
before
do
find
(
'[data-testid="close-security-newsletter-callout"]'
).
click
visit
admin_root_path
end
it_behaves_like
'hidden callout'
end
end
context
'when a non-admin is logged in'
do
before
do
sign_in
(
non_admin
)
visit
admin_root_path
end
it_behaves_like
'hidden callout'
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