-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
rmmayo
committed
Nov 8, 2024
1 parent
da41eea
commit d5cb299
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -180,10 +180,10 @@ describe('Projects Admin Management Tests', () => { | |
.find('td') | ||
.as('row2'); | ||
cy.get('@row1') | ||
.eq(0) | ||
.eq(1) | ||
.contains('[email protected]'); | ||
cy.get('@row2') | ||
.eq(0) | ||
.eq(1) | ||
.contains('[email protected]'); | ||
} else { | ||
// the default user in oauth mode is different and results in a different sorting order | ||
|
@@ -196,10 +196,10 @@ describe('Projects Admin Management Tests', () => { | |
.find('td') | ||
.as('row2'); | ||
cy.get('@row1') | ||
.eq(0) | ||
.eq(1) | ||
.contains('foo bar'); | ||
cy.get('@row2') | ||
.eq(0) | ||
.eq(1) | ||
.contains('[email protected]'); | ||
} | ||
}); | ||
|
@@ -315,8 +315,8 @@ describe('Projects Admin Management Tests', () => { | |
const expectedUserName = Cypress.env('oauthMode') ? 'foo bar' : 'skills@'; | ||
cy.get(`${tableSelector} thead th`).contains('Role').click(); | ||
cy.validateTable(tableSelector, [ | ||
[{ colIndex: 0, value: expectedUserName }, { colIndex: 1, value: 'Administrator' }], | ||
[{ colIndex: 0, value: 'root@' }, { colIndex: 1, value: 'Approver' }], | ||
[{ colIndex: 1, value: expectedUserName }, { colIndex: 2, value: 'Administrator' }], | ||
[{ colIndex: 1, value: 'root@' }, { colIndex: 2, value: 'Approver' }], | ||
], 5, true, null, false); | ||
|
||
// reload and retest | ||
|
@@ -326,8 +326,8 @@ describe('Projects Admin Management Tests', () => { | |
// verify that table loaded | ||
cy.get(`${tableSelector} [data-cy="[email protected]"] [data-cy="editUserBtn"]`) | ||
cy.validateTable(tableSelector, [ | ||
[{ colIndex: 0, value: expectedUserName }, { colIndex: 1, value: 'Administrator' }], | ||
[{ colIndex: 0, value: 'root@' }, { colIndex: 1, value: 'Approver' }], | ||
[{ colIndex: 1, value: expectedUserName }, { colIndex: 2, value: 'Administrator' }], | ||
[{ colIndex: 1, value: 'root@' }, { colIndex: 2, value: 'Approver' }], | ||
], 5, true, null, false); | ||
|
||
cy.get(`${tableSelector} [data-cy="[email protected]"] [data-cy="editUserBtn"]`).click(); | ||
|
@@ -340,8 +340,8 @@ describe('Projects Admin Management Tests', () => { | |
return a[0].value?.localeCompare(b[0].value) | ||
} | ||
cy.validateTable(tableSelector, [ | ||
[{ colIndex: 0, value: 'root@' }, { colIndex: 1, value: 'Administrator' }], | ||
[{ colIndex: 0, value: expectedUserName }, { colIndex: 1, value: 'Administrator' }], | ||
[{ colIndex: 1, value: 'root@' }, { colIndex: 2, value: 'Administrator' }], | ||
[{ colIndex: 1, value: expectedUserName }, { colIndex: 2, value: 'Administrator' }], | ||
].sort(compare), 5, true, null, false); | ||
}); | ||
|
||
|