Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 3d555c21 authored by Saadet Yaman's avatar Saadet Yaman Committed by rui rodrigues
Browse files

Simpl 1018

parent 05353652
No related branches found
No related tags found
No related merge requests found
......@@ -16,4 +16,6 @@ public class Wizard {
public static final String MALE_OPTION = "//span[@class='mat-option-text'][normalize-space()='male']";
public static final String BIRTH_DATE_FIELD = "//input[@id='mat-input-2']";
public static final String SAVE_BUTTON = "//span[contains(text(), 'Save')]";
public static final String SELECT_ECOSYSTEM_DROPDOWN_MENU= "#dropbtn";
public static final String DROPDOWN_SIMPL_OPTION= "//a[.=\" SIMPL \"]";
}
......@@ -9,7 +9,7 @@ Feature: Wizard
Scenario: The upload widget is visible successfully
Then upload widget should be visible
And the information select a SHACL shape or Upload should be displayed
And the Select Ecosystem dropdown menu options are displayed
@TCW02 @SIMPL-1020 @SIMPL-1022
Scenario: File Upload and Displaying of Complete Person Form
......@@ -21,7 +21,6 @@ Feature: Wizard
When the user clicks the upload button from the Upload Shape
Then the Complete Person Form is displayed
@TCW03 @SIMPL-1023
Scenario: Upload File Using Drag and Drop
Given the file selection dialog box is visible
......
......@@ -23,7 +23,6 @@ public class WizardSteps {
private final Page page = UiSetup.getPage();
private Path downloadDir;
@Given("the user is on the SD Wizard")
public void theUserIsOnTheSDWizard() {
page.navigate(URL);
......@@ -46,6 +45,11 @@ public class WizardSteps {
page.locator(UPLOAD_TEXT).isVisible();
}
@And("the Select Ecosystem dropdown menu options are displayed")
public void the_select_ecosystem_dropdown_menu_options_are_displayed() {
page.locator(SELECT_ECOSYSTEM_DROPDOWN_MENU).hover();
page.locator(DROPDOWN_SIMPL_OPTION).click();
}
@Given("the file selection dialog box is visible")
public void the_file_selection_dialog_box_is_visible() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment