Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
todo-list-example
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julia Dai
todo-list-example
Commits
d270623e
Commit
d270623e
authored
3 years ago
by
Hallvard Trætteberg
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://gitlab.stud.idi.ntnu.no/it1901/todo-list
parents
6827e171
ef7cf20e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
todolist/fxui/src/test/java/todolist/ui/TodoListControllerTest.java
+7
-1
7 additions, 1 deletion
...xui/src/test/java/todolist/ui/TodoListControllerTest.java
with
7 additions
and
1 deletion
todolist/fxui/src/test/java/todolist/ui/TodoListControllerTest.java
+
7
−
1
View file @
d270623e
...
@@ -17,7 +17,10 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
...
@@ -17,7 +17,10 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
import
static
org
.
junit
.
jupiter
.
api
.
Assertions
.
fail
;
import
static
org
.
junit
.
jupiter
.
api
.
Assertions
.
fail
;
import
static
org
.
junit
.
jupiter
.
api
.
Assertions
.
assertEquals
;
import
static
org
.
junit
.
jupiter
.
api
.
Assertions
.
assertEquals
;
import
org.junit.jupiter.api.BeforeEach
;
import
org.junit.jupiter.api.BeforeEach
;
import
org.junit.jupiter.api.DisplayName
;
import
org.junit.jupiter.api.Test
;
import
org.junit.jupiter.api.Test
;
import
org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable
;
import
org.junit.jupiter.api.condition.DisabledIfSystemProperty
;
import
org.testfx.framework.junit5.ApplicationTest
;
import
org.testfx.framework.junit5.ApplicationTest
;
import
org.testfx.util.WaitForAsyncUtils
;
import
org.testfx.util.WaitForAsyncUtils
;
import
todolist.core.AbstractTodoList
;
import
todolist.core.AbstractTodoList
;
...
@@ -116,7 +119,10 @@ public class TodoListControllerTest extends ApplicationTest {
...
@@ -116,7 +119,10 @@ public class TodoListControllerTest extends ApplicationTest {
checkTodoListViewItems
(
item3
,
item1
,
newItem2
);
checkTodoListViewItems
(
item3
,
item1
,
newItem2
);
}
}
// @Test - virker ikke i gitpod
/** Test - virker ikke i gitpod */
@Test
@DisplayName
(
"Test dragging a ToDo list item"
)
@DisabledIfEnvironmentVariable
(
named
=
"GITPOD_WORKSPACE_ID"
,
matches
=
".*"
)
public
void
testDragTodoItem
()
{
public
void
testDragTodoItem
()
{
Predicate
<
TodoItemListCell
>
draggableCell
=
cell
->
cell
.
lookup
(
".label"
)
!=
null
;
Predicate
<
TodoItemListCell
>
draggableCell
=
cell
->
cell
.
lookup
(
".label"
)
!=
null
;
// drag the first item in the list view, which is the second item in the model
// drag the first item in the list view, which is the second item in the model
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment