From 440326deeecd98aad1f143cd760a176d2c5b93af Mon Sep 17 00:00:00 2001 From: Adrian Smijulj Date: Wed, 2 Oct 2024 12:13:05 +0200 Subject: [PATCH] test: update users/groups-related Cy tests (#4313) --- cypress-tests/cypress/e2e/admin/login/login.cy.js | 6 +++--- .../e2e/admin/security/user/searchAndSortUsers.cy.js | 2 +- .../cypress/e2e/admin/security/user/userAccess.cy.js | 4 ++-- cypress-tests/cypress/support/security/graphql.js | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cypress-tests/cypress/e2e/admin/login/login.cy.js b/cypress-tests/cypress/e2e/admin/login/login.cy.js index 68c87d6b7d2..4bd060ab29c 100644 --- a/cypress-tests/cypress/e2e/admin/login/login.cy.js +++ b/cypress-tests/cypress/e2e/admin/login/login.cy.js @@ -49,7 +49,7 @@ context("Login Page", () => { firstName: uniqid("first name-"), lastName: uniqid("last name-"), password, - group: group.id + groups: [group.id] } }) .then(user => { @@ -86,7 +86,7 @@ context("Login Page", () => { firstName: uniqid("first name-"), lastName: uniqid("last name-"), password, - group: group.id + groups: [group.id] } }) .then(user => { @@ -131,7 +131,7 @@ context("Login Page", () => { firstName: uniqid("first name-"), lastName: uniqid("last name-"), password, - group: group.id + groups: [group.id] } }) .then(() => { diff --git a/cypress-tests/cypress/e2e/admin/security/user/searchAndSortUsers.cy.js b/cypress-tests/cypress/e2e/admin/security/user/searchAndSortUsers.cy.js index 775f890a165..0094f875254 100644 --- a/cypress-tests/cypress/e2e/admin/security/user/searchAndSortUsers.cy.js +++ b/cypress-tests/cypress/e2e/admin/security/user/searchAndSortUsers.cy.js @@ -21,7 +21,7 @@ context("Search and sort security users", () => { firstName: uniqid("first name-"), lastName: uniqid("last name-"), password: "12345678", - group: group.id + groups: [group.id] } }).then(user => { users.push(user); diff --git a/cypress-tests/cypress/e2e/admin/security/user/userAccess.cy.js b/cypress-tests/cypress/e2e/admin/security/user/userAccess.cy.js index d7e5ea60204..67d2e19923e 100644 --- a/cypress-tests/cypress/e2e/admin/security/user/userAccess.cy.js +++ b/cypress-tests/cypress/e2e/admin/security/user/userAccess.cy.js @@ -15,7 +15,7 @@ context("Security Users", () => { firstName: uniqid("first name-"), lastName: uniqid("last name-"), password, - group: group.id + groups: [group.id] } }) .then(user => { @@ -69,7 +69,7 @@ context("Security Users", () => { firstName: uniqid("first name-"), lastName: uniqid("last name-"), password, - group: group.id + groups: [group.id] } }) .then(user => { diff --git a/cypress-tests/cypress/support/security/graphql.js b/cypress-tests/cypress/support/security/graphql.js index 064338581a9..9976aee015e 100644 --- a/cypress-tests/cypress/support/security/graphql.js +++ b/cypress-tests/cypress/support/security/graphql.js @@ -7,7 +7,7 @@ const BASE_FIELDS = ` lastName avatar gravatar - group { + groups { id slug name