Renamed mapping(s) to role(s) (#3920)

Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
This commit is contained in:
agagancarczyk 2022-12-02 09:41:30 +00:00 committed by GitHub
parent e28277846d
commit 77ec5a4c5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 15 additions and 15 deletions

View file

@ -343,7 +343,7 @@ describe("Client Scopes test", () => {
masthead.checkNotificationMessage("Role mapping updated"); masthead.checkNotificationMessage("Role mapping updated");
scopeTab.checkRoles([role]); scopeTab.checkRoles([role]);
scopeTab.hideInheritedRoles().selectRow(role).unAssign(); scopeTab.hideInheritedRoles().selectRow(role).unAssign();
modalUtils.checkModalTitle("Remove mapping?").confirmModal(); modalUtils.checkModalTitle("Remove role?").confirmModal();
scopeTab.checkRoles([]); scopeTab.checkRoles([]);
}); });
}); });

View file

@ -634,7 +634,7 @@ describe("Clients test", () => {
rolesTab.goToAssociatedRolesTab(); rolesTab.goToAssociatedRolesTab();
commonPage.tableUtils().selectRowItemAction("create-realm", "Unassign"); commonPage.tableUtils().selectRowItemAction("create-realm", "Unassign");
commonPage.sidebar().waitForPageLoad(); commonPage.sidebar().waitForPageLoad();
commonPage.modalUtils().checkModalTitle("Remove mapping?").confirmModal(); commonPage.modalUtils().checkModalTitle("Remove role?").confirmModal();
commonPage.sidebar().waitForPageLoad(); commonPage.sidebar().waitForPageLoad();
commonPage commonPage
@ -643,7 +643,7 @@ describe("Clients test", () => {
commonPage.tableUtils().selectRowItemAction("manage-consent", "Unassign"); commonPage.tableUtils().selectRowItemAction("manage-consent", "Unassign");
commonPage.sidebar().waitForPageLoad(); commonPage.sidebar().waitForPageLoad();
commonPage.modalUtils().checkModalTitle("Remove mapping?").confirmModal(); commonPage.modalUtils().checkModalTitle("Remove role?").confirmModal();
}); });
it("Should delete associated role from search bar test", () => { it("Should delete associated role from search bar test", () => {
@ -662,7 +662,7 @@ describe("Clients test", () => {
associatedRolesPage.removeAssociatedRoles(); associatedRolesPage.removeAssociatedRoles();
commonPage.sidebar().waitForPageLoad(); commonPage.sidebar().waitForPageLoad();
commonPage.modalUtils().checkModalTitle("Remove mapping?").confirmModal(); commonPage.modalUtils().checkModalTitle("Remove role?").confirmModal();
commonPage.sidebar().waitForPageLoad(); commonPage.sidebar().waitForPageLoad();
commonPage commonPage
@ -880,7 +880,7 @@ describe("Clients test", () => {
serviceAccountTab.selectRow("create-realm").unAssign(); serviceAccountTab.selectRow("create-realm").unAssign();
commonPage.sidebar().waitForPageLoad(); commonPage.sidebar().waitForPageLoad();
commonPage.modalUtils().checkModalTitle("Remove mapping?").confirmModal(); commonPage.modalUtils().checkModalTitle("Remove role?").confirmModal();
commonPage commonPage
.masthead() .masthead()
.checkNotificationMessage("Scope mapping successfully removed"); .checkNotificationMessage("Scope mapping successfully removed");

View file

@ -153,7 +153,7 @@ describe("Realm roles test", () => {
rolesTab.goToAssociatedRolesTab(); rolesTab.goToAssociatedRolesTab();
listingPage.removeItem("create-realm"); listingPage.removeItem("create-realm");
sidebarPage.waitForPageLoad(); sidebarPage.waitForPageLoad();
modalUtils.checkModalTitle("Remove mapping?").confirmModal(); modalUtils.checkModalTitle("Remove role?").confirmModal();
sidebarPage.waitForPageLoad(); sidebarPage.waitForPageLoad();
masthead.checkNotificationMessage( masthead.checkNotificationMessage(
@ -172,7 +172,7 @@ describe("Realm roles test", () => {
associatedRolesPage.removeAssociatedRoles(); associatedRolesPage.removeAssociatedRoles();
sidebarPage.waitForPageLoad(); sidebarPage.waitForPageLoad();
modalUtils.checkModalTitle("Remove mapping?").confirmModal(); modalUtils.checkModalTitle("Remove role?").confirmModal();
sidebarPage.waitForPageLoad(); sidebarPage.waitForPageLoad();
masthead.checkNotificationMessage( masthead.checkNotificationMessage(
@ -203,7 +203,7 @@ describe("Realm roles test", () => {
// delete associated roles from list // delete associated roles from list
listingPage.removeItem("create-realm"); listingPage.removeItem("create-realm");
sidebarPage.waitForPageLoad(); sidebarPage.waitForPageLoad();
modalUtils.checkModalTitle("Remove mapping?").confirmModal(); modalUtils.checkModalTitle("Remove role?").confirmModal();
sidebarPage.waitForPageLoad(); sidebarPage.waitForPageLoad();
masthead.checkNotificationMessage( masthead.checkNotificationMessage(
@ -212,7 +212,7 @@ describe("Realm roles test", () => {
); );
listingPage.removeItem("offline_access"); listingPage.removeItem("offline_access");
sidebarPage.waitForPageLoad(); sidebarPage.waitForPageLoad();
modalUtils.checkModalTitle("Remove mapping?").confirmModal(); modalUtils.checkModalTitle("Remove role?").confirmModal();
sidebarPage.waitForPageLoad(); sidebarPage.waitForPageLoad();
masthead.checkNotificationMessage( masthead.checkNotificationMessage(

View file

@ -48,8 +48,8 @@ describe("Realm settings - User registration tab", () => {
listingPage.markItemRow(role).removeMarkedItems("Unassign"); listingPage.markItemRow(role).removeMarkedItems("Unassign");
sidebarPage.waitForPageLoad(); sidebarPage.waitForPageLoad();
modalUtils modalUtils
.checkModalTitle("Remove mapping?") .checkModalTitle("Remove role?")
.checkModalMessage("Are you sure you want to remove this mapping?") .checkModalMessage("Are you sure you want to remove this role?")
.checkConfirmButtonText("Remove") .checkConfirmButtonText("Remove")
.confirmModal(); .confirmModal();
masthead.checkNotificationMessage("Scope mapping successfully removed"); masthead.checkNotificationMessage("Scope mapping successfully removed");

View file

@ -173,7 +173,7 @@ export default class GroupDetailPage extends GroupPage {
deleteRole() { deleteRole() {
modalUtils modalUtils
.checkModalTitle("Remove mapping?") .checkModalTitle("Remove role?")
.checkConfirmButtonText("Remove") .checkConfirmButtonText("Remove")
.confirmModal(); .confirmModal();
} }

View file

@ -99,9 +99,9 @@
"password": "Password", "password": "Password",
"oneTimePassword": "One-Time Password", "oneTimePassword": "One-Time Password",
"kerberos": "Kerberos", "kerberos": "Kerberos",
"removeMappingTitle": "Remove mapping?", "removeMappingTitle": "Remove role?",
"removeMappingConfirm_one": "Are you sure you want to remove this mapping?", "removeMappingConfirm_one": "Are you sure you want to remove this role?",
"removeMappingConfirm_other": "Are you sure you want to remove {{count}} mappings", "removeMappingConfirm_other": "Are you sure you want to remove {{count}} roles",
"clientScopeSearch": { "clientScopeSearch": {
"name": "Name", "name": "Name",
"type": "Assigned type", "type": "Assigned type",