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
26f5c7aa
Commit
26f5c7aa
authored
Jan 29, 2019
by
Brett Walker
Committed by
Fatih Acet
Jan 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix task list feature specs
parent
e725ee0c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
spec/features/task_lists_spec.rb
spec/features/task_lists_spec.rb
+13
-13
No files found.
spec/features/task_lists_spec.rb
View file @
26f5c7aa
...
@@ -170,8 +170,11 @@ describe 'Task Lists' do
...
@@ -170,8 +170,11 @@ describe 'Task Lists' do
expect
(
page
).
to
have_content
(
"2 of 7 tasks completed"
)
expect
(
page
).
to
have_content
(
"2 of 7 tasks completed"
)
page
.
find
(
'li.task-list-item'
,
text:
'Task b'
).
find
(
'input'
).
click
page
.
find
(
'li.task-list-item'
,
text:
'Task b'
).
find
(
'input'
).
click
wait_for_requests
page
.
find
(
'li.task-list-item ul li.task-list-item'
,
text:
'Task a.2'
).
find
(
'input'
).
click
page
.
find
(
'li.task-list-item ul li.task-list-item'
,
text:
'Task a.2'
).
find
(
'input'
).
click
wait_for_requests
page
.
find
(
'li.task-list-item ol li.task-list-item'
,
text:
'Task 1.1'
).
find
(
'input'
).
click
page
.
find
(
'li.task-list-item ol li.task-list-item'
,
text:
'Task 1.1'
).
find
(
'input'
).
click
wait_for_requests
expect
(
page
).
to
have_content
(
"5 of 7 tasks completed"
)
expect
(
page
).
to
have_content
(
"5 of 7 tasks completed"
)
...
@@ -184,25 +187,22 @@ describe 'Task Lists' do
...
@@ -184,25 +187,22 @@ describe 'Task Lists' do
end
end
describe
'nested tasks'
,
:js
do
describe
'nested tasks'
,
:js
do
context
'with Redcarpet'
do
let
(
:cache_version
)
{
CacheMarkdownField
::
CACHE_COMMONMARK_VERSION
}
let
(
:issue
)
{
create
(
:issue
,
description:
nested_tasks_markdown_redcarpet
,
author:
user
,
project:
project
)
}
let!
(
:issue
)
{
create
(
:issue
,
description:
nested_tasks_markdown
,
author:
user
,
project:
project
,
cached_markdown_version:
cache_version
)
}
before
do
before
do
allow_any_instance_of
(
Banzai
::
Filter
::
MarkdownFilter
).
to
receive
(
:engine
).
and_return
(
'Redcarpet'
)
visit_issue
(
project
,
issue
)
visit_issue
(
project
,
issue
)
end
end
context
'with Redcarpet'
do
let
(
:cache_version
)
{
CacheMarkdownField
::
CACHE_REDCARPET_VERSION
}
let
(
:nested_tasks_markdown
)
{
nested_tasks_markdown_redcarpet
}
it_behaves_like
'shared nested tasks'
it_behaves_like
'shared nested tasks'
end
end
context
'with CommonMark'
do
context
'with CommonMark'
do
let
(
:issue
)
{
create
(
:issue
,
description:
nested_tasks_markdown
,
author:
user
,
project:
project
)
}
before
do
allow_any_instance_of
(
Banzai
::
Filter
::
MarkdownFilter
).
to
receive
(
:engine
).
and_return
(
'CommonMark'
)
visit_issue
(
project
,
issue
)
end
it_behaves_like
'shared nested tasks'
it_behaves_like
'shared nested tasks'
end
end
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