Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit be716ebc authored by reza.raditya's avatar reza.raditya
Browse files

day 3 testing

parent d08673ec
Branches workshop
No related tags found
No related merge requests found
package starter.helpers;
import net.serenitybdd.screenplay.ensure.Ensure;
import net.serenitybdd.screenplay.ensure.PerformablePredicate;
import net.serenitybdd.screenplay.ui.InputField;
public class refactorHelper {
public static PerformablePredicate verifyDataItem(String inputFieldNameOrId, String dataItem) {
return Ensure.thatAmongst(InputField.withNameOrId(inputFieldNameOrId))
.anyMatch(name + " should be on the list",
(field) -> field.getValue()
.equals(dataItem)
);
}
}
......@@ -66,4 +66,19 @@ public class PetTypeStepDefinitions {
)
);
}
@Given("a system operator named {actor} is looking to add new pet type")
public void lookingToAddNewPetType(Actor actor, String name){
}
@When("{actor} adds a new pet type named {string}")
public void addNewPetType(Actor actor, String name){
}
@Then("{actor} could see new pet typle added")
public void seeNewPetType(Actor actor, String name){
}
}
Scenario: Add new specialty
Given a system operator named "John" is looking at the specialties page
When he adds a new specialty called "cardiology"
Then he should see the specialty "cardiology" on the list of specialties
\ No newline at end of file
Feature: Manage specialties
The veterinarian wants to be able to add, edit, and delete specialties.
Background:
Given a system operator named "John" is looking at the specialties page
Scenario: Add new specialty
Given a system operator named "John" is looking at the specialties page
When he adds a new specialty called "cardiology"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment