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

Skip to content
Snippets Groups Projects
Commit 9f8d14e0 authored by Adolfo Han's avatar Adolfo Han Committed by Jaime Pérez-Lozana
Browse files

automated SIMPL-650

parent 52c8b5c9
No related branches found
No related tags found
No related merge requests found
......@@ -56,11 +56,11 @@ public class Authority {
public static final String PARTICIPANT_DETAILS_PAGE_HEADER = "Participant Details";
public static final String PARTICIPANT_LIST_PAGE_HEADER = "Participant List";
public static final String NEW_ATTRIBUTE_HEADER = "New attribute";
public static final String SUCCESSFUL_IDENTITY_ATTRIBUTE_CREATION_ALERT_MESSAGE = "You successfully created an" +
" attribute";
public static final String SUCCESSFUL_IDENTITY_ATTRIBUTE_EDITION_ALERT_MESSAGE = "You successfully edited an" +
" attribute";
public static final String SUCCESSFUL_IDENTITY_ATTRIBUTE_CREATION_ALERT_MESSAGE = "You successfully created an attribute";
public static final String SUCCESSFUL_IDENTITY_ATTRIBUTE_EDITION_ALERT_MESSAGE = "You successfully edited an attribute";
public static final String SUCCESSFUL_REQUEST_SENT_ALERT_MESSAGE = "Request sent successfully.";
public static final String ROLE_RESTRICTED = "Role Restricted Access";
public static final String ACCESS_DENIED = "Access denied. Your role does not grant permission to view this content.";
public static final String[] PARTICIPANT_TYPES = {
"Data Provider",
......
......@@ -144,7 +144,7 @@ public final class Utils {
user = CONSUMER_CATALOG_R_USER;
password = GENERAL_PASSWORD;
break;
case "NO":
case "NO ROLE":
user = NO_ROLES_USER;
password = GENERAL_PASSWORD;
break;
......
......@@ -101,7 +101,7 @@ Feature: Authority
| @nother `Org*&^%$<> |
@TCA08 @SIMPL-3049 @SIMPL-4125 @SIMPL-744 @bug:SIMPL-7932 @bug:SIMPL-7791
# TODO: NOTARY role doesn't have access to Participant Management. Check if there's a change/bug.
# TODO: NOTARY role doesn't have access to Participant Managment. Check if there's a change/bug.
Scenario: Display of Participant Details in the Governance Authority's Data Space
Given the user navigates to the "Participant Management" page
And the user is redirected to the "Governance Authority" keycloak
......@@ -382,3 +382,11 @@ Feature: Authority
Given the user navigates to the "Dashboard Requests List" page
And the user logs in with a user with "T2IAA_M" role
And the onboarding requests list is displayed
@TCA26 @SIMPL-650
Scenario: Denied Access To Admin Dashboard of Public Dataspace Onboarding Site
Given the user navigates to the "Dashboard Requests List" page
And the user logs in with a user with "NO ROLE" role
Then the access is denied
And the access denied message is displayed
\ No newline at end of file
......@@ -692,4 +692,14 @@ public class AuthoritySteps {
}
}
}
@Then("the access is denied")
public void theAccessIsDenied() {
assertElementIsVisibleByLocator(page.getByText(ROLE_RESTRICTED));
}
@When("the access denied message is displayed")
public void theAccessDeniedMessageIsDisplayed() {
assertElementIsVisibleByLocator(page.getByText(ACCESS_DENIED));
}
}
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