-
-
Notifications
You must be signed in to change notification settings - Fork 521
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Cucumber and JUnit 5 tests to the smoketests
- Loading branch information
Showing
18 changed files
with
161 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...-smoketests/src/main/java/net/serenitybdd/demos/todos/screenplay/tasks/CompleteItems.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package net.serenitybdd.demos.todos.screenplay.tasks; | ||
|
||
import net.serenitybdd.demos.todos.screenplay.user_interface.TodoListItem; | ||
import net.serenitybdd.screenplay.Performable; | ||
import net.serenitybdd.screenplay.Task; | ||
import net.serenitybdd.screenplay.actions.Click; | ||
|
||
import java.util.List; | ||
|
||
public class CompleteItems { | ||
public static Performable called(List<String> itemNames) { | ||
return Task.where("{0} completes the items called: " + itemNames, | ||
actor -> { | ||
itemNames.forEach(itemName -> actor.attemptsTo( | ||
Click.on(TodoListItem.COMPLETE_ITEM.of(itemName)) | ||
)); | ||
} | ||
); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...application/LearnAboutTheApplication.java → ...application/LearnAboutTheApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 0 additions & 62 deletions
62
.../demos/todos/pageobjects/features/accessing_the_application/AddDifferentSortsOfTodos.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ures/completing_todos/ToggleAllTodos.java → .../completing_the_todos/ToggleAllTodos.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
...erenitybdd/demos/todos/pageobjects/features/maintain_my_todo_list/TodosBelongToAUser.java
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...ain_my_todo_list/ClearCompletedTodos.java → ...in_the_todo_list/ClearCompletedTodos.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...es/maintain_my_todo_list/DeleteTodos.java → ...s/maintain_the_todo_list/DeleteTodos.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...maintain_my_todo_list/FilteringTodos.java → ...aintain_the_todo_list/FilteringTodos.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 14 additions & 19 deletions
33
.../java/net/serenitybdd/demos/todos/screenplay/features/completing_todos/CompleteATodo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.