|
@@ -61,14 +61,17 @@ describe('GroupMembers', function () {
|
|
|
cy.contains('john.doe@test.com')
|
|
cy.contains('john.doe@test.com')
|
|
|
cy.contains('John Doe')
|
|
cy.contains('John Doe')
|
|
|
cy.contains('15th Jan 2023')
|
|
cy.contains('15th Jan 2023')
|
|
|
- cy.get('.badge-new-comment').contains('Pending invite')
|
|
|
|
|
|
|
+ cy.findByTestId('badge-pending-invite').should(
|
|
|
|
|
+ 'have.text',
|
|
|
|
|
+ 'Pending invite'
|
|
|
|
|
+ )
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
cy.get('tr:nth-child(2)').within(() => {
|
|
cy.get('tr:nth-child(2)').within(() => {
|
|
|
cy.contains('bobby.lapointe@test.com')
|
|
cy.contains('bobby.lapointe@test.com')
|
|
|
cy.contains('Bobby Lapointe')
|
|
cy.contains('Bobby Lapointe')
|
|
|
cy.contains('2nd Jan 2023')
|
|
cy.contains('2nd Jan 2023')
|
|
|
- cy.get('.badge-new-comment').should('not.exist')
|
|
|
|
|
|
|
+ cy.findByTestId('badge-pending-invite').should('not.exist')
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
@@ -91,7 +94,10 @@ describe('GroupMembers', function () {
|
|
|
cy.get('tr:nth-child(3)').within(() => {
|
|
cy.get('tr:nth-child(3)').within(() => {
|
|
|
cy.contains('someone.else@test.com')
|
|
cy.contains('someone.else@test.com')
|
|
|
cy.contains('N/A')
|
|
cy.contains('N/A')
|
|
|
- cy.get('.badge-new-comment').contains('Pending invite')
|
|
|
|
|
|
|
+ cy.findByTestId('badge-pending-invite').should(
|
|
|
|
|
+ 'have.text',
|
|
|
|
|
+ 'Pending invite'
|
|
|
|
|
+ )
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
@@ -236,10 +242,10 @@ describe('GroupMembers', function () {
|
|
|
cy.contains('John Doe')
|
|
cy.contains('John Doe')
|
|
|
cy.contains('15th Jan 2023')
|
|
cy.contains('15th Jan 2023')
|
|
|
cy.get('.sr-only').contains('Pending invite')
|
|
cy.get('.sr-only').contains('Pending invite')
|
|
|
- cy.get('.badge-new-comment').contains('Pending invite')
|
|
|
|
|
- cy.get(`.security-state-invite-pending`).should('exist')
|
|
|
|
|
-
|
|
|
|
|
- cy.get('.badge-new-comment').contains('Pending invite')
|
|
|
|
|
|
|
+ cy.findByTestId('badge-pending-invite').should(
|
|
|
|
|
+ 'have.text',
|
|
|
|
|
+ 'Pending invite'
|
|
|
|
|
+ )
|
|
|
cy.get(`.security-state-invite-pending`).should('exist')
|
|
cy.get(`.security-state-invite-pending`).should('exist')
|
|
|
})
|
|
})
|
|
|
|
|
|
|
@@ -247,7 +253,7 @@ describe('GroupMembers', function () {
|
|
|
cy.contains('bobby.lapointe@test.com')
|
|
cy.contains('bobby.lapointe@test.com')
|
|
|
cy.contains('Bobby Lapointe')
|
|
cy.contains('Bobby Lapointe')
|
|
|
cy.contains('2nd Jan 2023')
|
|
cy.contains('2nd Jan 2023')
|
|
|
- cy.get('.badge-new-comment').should('not.exist')
|
|
|
|
|
|
|
+ cy.findByTestId('badge-pending-invite').should('not.exist')
|
|
|
cy.get('.sr-only').contains('Not managed')
|
|
cy.get('.sr-only').contains('Not managed')
|
|
|
})
|
|
})
|
|
|
|
|
|
|
@@ -255,7 +261,7 @@ describe('GroupMembers', function () {
|
|
|
cy.contains('claire.jennings@test.com')
|
|
cy.contains('claire.jennings@test.com')
|
|
|
cy.contains('Claire Jennings')
|
|
cy.contains('Claire Jennings')
|
|
|
cy.contains('3rd Jan 2023')
|
|
cy.contains('3rd Jan 2023')
|
|
|
- cy.get('.badge-new-comment').should('not.exist')
|
|
|
|
|
|
|
+ cy.findByTestId('badge-pending-invite').should('not.exist')
|
|
|
cy.get('.sr-only').contains('Managed')
|
|
cy.get('.sr-only').contains('Managed')
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
@@ -280,7 +286,10 @@ describe('GroupMembers', function () {
|
|
|
cy.contains('someone.else@test.com')
|
|
cy.contains('someone.else@test.com')
|
|
|
cy.contains('N/A')
|
|
cy.contains('N/A')
|
|
|
cy.get('.sr-only').contains('Pending invite')
|
|
cy.get('.sr-only').contains('Pending invite')
|
|
|
- cy.get('.badge-new-comment').contains('Pending invite')
|
|
|
|
|
|
|
+ cy.findByTestId('badge-pending-invite').should(
|
|
|
|
|
+ 'have.text',
|
|
|
|
|
+ 'Pending invite'
|
|
|
|
|
+ )
|
|
|
cy.get(`.security-state-invite-pending`).should('exist')
|
|
cy.get(`.security-state-invite-pending`).should('exist')
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|