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

Skip to content
Snippets Groups Projects
Commit fe971599 authored by Jaime Pérez-Lozana's avatar Jaime Pérez-Lozana
Browse files

Hotfix: New Users Update

parent ff9996cf
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,9 @@ public class Participant {
public static final String CONSUMER_T1UAR_M_USER = "consumer_role_t1uar_m_auto";
public static final String CONSUMER_ONBOARDER_M_USER = "consumer_role_onboarder_m_auto";
public static final String CONSUMER_SD_CONSUMER_USER = "consumer_role_sd_consumer_auto";
public static final String NO_ROLES_USER = "no_roles_user_auto";
public static final String AUTHORITY_NO_ROLES_USER = "authority_role_no_roles_auto";
public static final String CONSUMER_NO_ROLES_USER = "consumer_role_no_roles_auto";
public static final String DATA_PROVIDER_NO_ROLES_USER = "dataprovider_role_no_roles_auto";
public static final String ECHO_BUTTON_TEXT = "Echo";
public static final String UPLOAD_CREDENTIAL_BUTTON_TEXT = "Upload credential";
public static final String ECHO_PAGE_HEADER = "/echo";
......
......@@ -146,7 +146,15 @@ public final class Utils {
password = GENERAL_PASSWORD;
break;
case "NO ROLE":
user = NO_ROLES_USER;
user = AUTHORITY_NO_ROLES_USER;
password = GENERAL_PASSWORD;
break;
case "CONSUMER NO ROLE":
user = CONSUMER_NO_ROLES_USER;
password = GENERAL_PASSWORD;
break;
case "DATA PROVIDER NO ROLE":
user = DATA_PROVIDER_NO_ROLES_USER;
password = GENERAL_PASSWORD;
break;
case "DATA_PROVIDER_T1UAR_M":
......
......@@ -532,7 +532,7 @@ public class AuthorityPage {
*/
public String parseDate(String dateToBeParsed) {
Date date = new Date(dateToBeParsed);
SimpleDateFormat df = new SimpleDateFormat("EEE MMM d yyyy", Locale.ENGLISH);
SimpleDateFormat df = new SimpleDateFormat("EEE MMM dd yyyy", Locale.ENGLISH);
return df.format(date);
}
......
......@@ -355,7 +355,7 @@ Feature: Authority
| The user selects 25 elements by page | 25 |
| The user selects 100 elements by page | 100 |
@TCA24 @SIMPL-3057 @SIMPL-3058 @SIMPL-3059 @bugSIMPL-951
@TCA24 @SIMPL-3057 @SIMPL-3058 @SIMPL-3059 @bug:SIMPL-951
# @ToDo: Email user column does not appear at the moment bug reported
Scenario Outline: Verify Table Headings, Onboarded Participants List, and Pagination Control : <caseName>
Given the user navigates to the "Participant Management" page
......@@ -483,7 +483,7 @@ Feature: Authority
When the user presses on the delete button
Then the dialog for the delete action is displayed successfully
@TCA32 @SIMPL-3309 @SIMPL-3310 @SIMPL-3311 @bugSIMPL-10276 @SIMPL-3312 @SIMPL-3313 @SIMPL-3314
@TCA32 @SIMPL-3309 @SIMPL-3310 @SIMPL-3311 @SIMPL-3312 @SIMPL-3313 @SIMPL-3314 @bug:SIMPL-10276
# Filter by email scenario has a bug associated.
Scenario Outline: Participants Management page filtering and resetting the filters: <caseName>
Given the user navigates to the "Participant Management" page
......@@ -497,7 +497,7 @@ Feature: Authority
| caseName | filter | filterValue |
| the user is filtering by Participant type | Participant Type | Consumer |
| the user is filtering by Participant Name | Participant Name | PSO |
| the user is filtering by Onboarding date | Onboarding Date | |
| the user is filtering by Onboarding date | Onboarding Date | TODAY |
#| the user is filtering by Email | Email | complete |
@TCA33 @SIMPL-3453
......
......@@ -24,11 +24,11 @@ Feature: Participant
| Consumer - User with role: ONBOARDER_M | Consumer Participant Utility | Consumer | CONSUMER_ONBOARDER_M | consumer_role_onboarder_m_auto | consumer_role_onboarder_m_auto@test.com | ONBOARDED_CONSUMER_ID | PSO | CONSUMER | |
| Consumer - User with role: CATALOG_R | Consumer Participant Utility | Consumer | CONSUMER_SD_CONSUMER | consumer_role_sd_consumer_auto | consumer_role_sd_consumer_auto@test.com | | | | |
| Consumer - User with role: T1UAR_M | Consumer Participant Utility | Consumer | CONSUMER_T1UAR_M | consumer_role_t1uar_m_auto | consumer_role_t1uar_m_auto@test.com | | | | |
| Consumer - User with no roles assigned | Consumer Participant Utility | Consumer | NO ROLE | no_roles_user_auto | no_roles_user_auto@test.com | | | | |
| Consumer - User with no roles assigned | Consumer Participant Utility | Consumer | CONSUMER NO ROLE | consumer_role_no_roles_auto | consumer_role_no_roles_auto@test.com | | | | |
| Data Provider - User with role: ONBOARDER_M | Data Provider Participant Utility | Data Provider | DATA_PROVIDER_ONBOARDER_M | dataprovider_role_onboarder_m_auto | dataprovider_role_onboarder_m_auto@test.com | ONBOARDED_DATA_PROVIDER_ID | PSO | DATA PROVIDER | |
| Data Provider - User with role: CATALOG_R | Data Provider Participant Utility | Data Provider | DATA_PROVIDER_SD_PUBLISHER | dataprovider_role_sd_publisher_auto | dataprovider_role_sd_publisher_auto@test.com | | | | |
| Data Provider - User with role: T1UAR_M | Data Provider Participant Utility | Data Provider | DATA_PROVIDER_T1UAR_M | dataprovider_role_t1uar_m_auto | dataprovider_role_t1uar_m_auto@test.com | | | | |
| Data Provider - User with no roles assigned | Data Provider Participant Utility | Data Provider | NO ROLE | no_roles_user_auto | no_roles_user_auto@test.com | | | | |
| Data Provider - User with no roles assigned | Data Provider Participant Utility | Data Provider | DATA PROVIDER NO ROLE | dataprovider_role_no_roles_auto | dataprovider_role_no_roles_auto@test.com | | | | |
@TCP02 @SIMPL-1100
Scenario Outline: Unauthorized user navigates to the Participant Utility Page: <caseName>
......
......@@ -115,6 +115,7 @@ public class AuthoritySteps {
public void the_user_selects_a_participant_type(String participantType) {
int index = Arrays.asList(PARTICIPANT_TYPES).indexOf(participantType);
page.locator(PARTICIPANT_TYPE_DROPDOMN_MENU_LOCATOR).click();
assertElementIsVisibleByLocator(page.locator(PARTICIPANT_TYPE_OPTIONS_LOCATOR).nth(index));
page.locator(PARTICIPANT_TYPE_OPTIONS_LOCATOR).nth(index).click();
}
......@@ -273,7 +274,7 @@ public class AuthoritySteps {
@When("the user sorts by {string} {string}")
public void the_user_sorts_the_values_of_a_column_table_ascending_or_descending(String sortDirection, String columnToSort) throws InterruptedException {
authorityPage.sortsTheValuesOfAColumnTable(sortDirection, columnToSort);
Thread.sleep(500);
Thread.sleep(750);
}
@When("the dataspace governance user clicks on the {string} button")
......@@ -341,9 +342,10 @@ public class AuthoritySteps {
}
@When("the user selects {int} items per page from the dropdown list")
public void the_user_selects_number_value_by_page_items_per_page_from_the_dropdown_list(Integer numberValueByPage) {
public void the_user_selects_number_value_by_page_items_per_page_from_the_dropdown_list(Integer numberValueByPage) throws InterruptedException {
authorityPage.verifyThePaginationElementsAreVisible();
authorityPage.itemsPerPageSelectionInTableDropdown(numberValueByPage);
Thread.sleep(750);
}
@When("the access denied message is displayed")
......@@ -829,6 +831,7 @@ public class AuthoritySteps {
assertElementIsVisibleByLocator(page.getByText(PARTICIPANT_PAGE_RESET_FILTER_BUTTON));
page.getByText(PARTICIPANT_PAGE_RESET_FILTER_BUTTON).click();
assertElementIsNotVisibleByLocator(page.locator(FILTER_APPLIED_VALUE_LOCATOR));
assertElementIsVisibleByLocator(page.getByText(PARTICIPANT_PAGE_FILTER_BUTTON));
}
@Then("the user verifies the {string} with value {string} and {string} with value {string} are applied")
......
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