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
d0386f13
Commit
d0386f13
authored
Sep 04, 2020
by
Tristan Read
Committed by
Vitali Tatarintev
Sep 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spec cleanup - prefer local variable to let
parent
957bd3bc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
spec/features/issues/incident_issue_spec.rb
spec/features/issues/incident_issue_spec.rb
+4
-7
No files found.
spec/features/issues/incident_issue_spec.rb
View file @
d0386f13
...
...
@@ -3,17 +3,14 @@
require
'spec_helper'
RSpec
.
describe
'Incident Detail'
,
:js
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:incident
)
{
create
(
:issue
,
project:
project
,
author:
user
,
issue_type:
'incident'
,
description:
'hello'
)
}
context
'when user displays the incident'
do
before
do
it
'shows the incident tabs'
do
project
=
create
(
:project
,
:public
)
incident
=
create
(
:incident
,
project:
project
,
description:
'hello'
)
visit
project_issue_path
(
project
,
incident
)
wait_for_requests
end
it
'shows the incident tabs'
do
page
.
within
(
'.issuable-details'
)
do
incident_tabs
=
find
(
'[data-testid="incident-tabs"]'
)
...
...
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