Skip to content

Commit 03f5aa2

Browse files
committed
Update email and permission names
1 parent b2aedbf commit 03f5aa2

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

cypress/e2e/permissions.cy.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ const USER_CREDENTIALS = {
2525
2626
password: 'Password1234',
2727
},
28-
CAN_MANAGE: {
29-
email: 'can-manage@meilisearch.com',
28+
CAN_EDIT_SETTINGS: {
29+
email: 'can-edit-settings@meilisearch.com',
3030
password: 'Password1234',
3131
},
3232
}
@@ -314,19 +314,17 @@ describe('Permissions', () => {
314314
describe('User with `settings.edit` permission', () => {
315315
beforeEach(() => {
316316
cy.session(
317-
USER_CREDENTIALS.CAN_MANAGE.email,
317+
USER_CREDENTIALS.CAN_EDIT_SETTINGS.email,
318318
() => {
319319
loginUser({
320-
email: USER_CREDENTIALS.CAN_MANAGE.email,
321-
password: USER_CREDENTIALS.CAN_MANAGE.password,
320+
email: USER_CREDENTIALS.CAN_EDIT_SETTINGS.email,
321+
password: USER_CREDENTIALS.CAN_EDIT_SETTINGS.password,
322322
})
323323
},
324324
{
325325
validate() {
326326
cy.wait(1000)
327-
cy.contains('Hello User who can manage settings').should(
328-
'be.visible',
329-
)
327+
cy.contains('Hello User who can edit settings').should('be.visible')
330328
},
331329
},
332330
)

0 commit comments

Comments
 (0)