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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
3a4b3a19
Commit
3a4b3a19
authored
Jun 01, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed issue_ordering_spec
parent
8c3f65f8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
spec/features/boards/issue_ordering_spec.rb
spec/features/boards/issue_ordering_spec.rb
+18
-18
No files found.
spec/features/boards/issue_ordering_spec.rb
View file @
3a4b3a19
...
...
@@ -25,11 +25,11 @@ describe 'Issue Boards', :feature, :js do
visit
namespace_project_board_path
(
project
.
namespace
,
project
,
board
)
wait_for_requests
expect
(
page
).
to
have_selector
(
'.board'
,
count:
2
)
expect
(
page
).
to
have_selector
(
'.board'
,
count:
3
)
end
it
'has un-ordered issue as last issue'
do
page
.
within
(
fi
rst
(
'.board
'
))
do
page
.
within
(
fi
nd
(
'.board:nth-child(2)
'
))
do
expect
(
all
(
'.card'
).
last
).
to
have_content
(
issue4
.
title
)
end
end
...
...
@@ -39,7 +39,7 @@ describe 'Issue Boards', :feature, :js do
wait_for_requests
page
.
within
(
fi
rst
(
'.board
'
))
do
page
.
within
(
fi
nd
(
'.board:nth-child(2)
'
))
do
expect
(
first
(
'.card'
)).
to
have_content
(
issue4
.
title
)
end
end
...
...
@@ -50,7 +50,7 @@ describe 'Issue Boards', :feature, :js do
visit
namespace_project_board_path
(
project
.
namespace
,
project
,
board
)
wait_for_requests
expect
(
page
).
to
have_selector
(
'.board'
,
count:
2
)
expect
(
page
).
to
have_selector
(
'.board'
,
count:
3
)
end
it
'moves from middle to top'
do
...
...
@@ -113,50 +113,50 @@ describe 'Issue Boards', :feature, :js do
visit
namespace_project_board_path
(
project
.
namespace
,
project
,
board
)
wait_for_requests
expect
(
page
).
to
have_selector
(
'.board'
,
count:
3
)
expect
(
page
).
to
have_selector
(
'.board'
,
count:
4
)
end
it
'moves to top of another list'
do
drag
(
list_from_index:
0
,
list_to_index:
1
)
drag
(
list_from_index:
1
,
list_to_index:
2
)
wait_for_requests
expect
(
fi
rst
(
'.board
'
)).
to
have_selector
(
'.card'
,
count:
2
)
expect
(
all
(
'.board'
)[
1
]).
to
have_selector
(
'.card'
,
count:
4
)
expect
(
fi
nd
(
'.board:nth-child(2)
'
)).
to
have_selector
(
'.card'
,
count:
2
)
expect
(
all
(
'.board'
)[
2
]).
to
have_selector
(
'.card'
,
count:
4
)
page
.
within
(
all
(
'.board'
)[
1
])
do
page
.
within
(
all
(
'.board'
)[
2
])
do
expect
(
first
(
'.card'
)).
to
have_content
(
issue3
.
title
)
end
end
it
'moves to bottom of another list'
do
drag
(
list_from_index:
0
,
list_to_index:
1
,
to_index:
2
)
drag
(
list_from_index:
1
,
list_to_index:
2
,
to_index:
2
)
wait_for_requests
expect
(
fi
rst
(
'.board
'
)).
to
have_selector
(
'.card'
,
count:
2
)
expect
(
all
(
'.board'
)[
1
]).
to
have_selector
(
'.card'
,
count:
4
)
expect
(
fi
nd
(
'.board:nth-child(2)
'
)).
to
have_selector
(
'.card'
,
count:
2
)
expect
(
all
(
'.board'
)[
2
]).
to
have_selector
(
'.card'
,
count:
4
)
page
.
within
(
all
(
'.board'
)[
1
])
do
page
.
within
(
all
(
'.board'
)[
2
])
do
expect
(
all
(
'.card'
).
last
).
to
have_content
(
issue3
.
title
)
end
end
it
'moves to index of another list'
do
drag
(
list_from_index:
0
,
list_to_index:
1
,
to_index:
1
)
drag
(
list_from_index:
1
,
list_to_index:
2
,
to_index:
1
)
wait_for_requests
expect
(
fi
rst
(
'.board
'
)).
to
have_selector
(
'.card'
,
count:
2
)
expect
(
all
(
'.board'
)[
1
]).
to
have_selector
(
'.card'
,
count:
4
)
expect
(
fi
nd
(
'.board:nth-child(2)
'
)).
to
have_selector
(
'.card'
,
count:
2
)
expect
(
all
(
'.board'
)[
2
]).
to
have_selector
(
'.card'
,
count:
4
)
page
.
within
(
all
(
'.board'
)[
1
])
do
page
.
within
(
all
(
'.board'
)[
2
])
do
expect
(
all
(
'.card'
)[
1
]).
to
have_content
(
issue3
.
title
)
end
end
end
def
drag
(
selector:
'.board-list'
,
list_from_index:
0
,
from_index:
0
,
to_index:
0
,
list_to_index:
0
)
def
drag
(
selector:
'.board-list'
,
list_from_index:
1
,
from_index:
0
,
to_index:
0
,
list_to_index:
1
)
drag_to
(
selector:
selector
,
scrollable:
'#board-app'
,
list_from_index:
list_from_index
,
...
...
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