feat: user delete modal shows username and requires confirmation (#2779)

The delete user modal will now show the user that is being deleted and the delete button will now
ask you to confirm deletion similar to the delete request button.
This commit is contained in:
Brandon Cohen
2022-08-19 06:21:29 -04:00
committed by GitHub
parent ac34328074
commit 36d17fed6e
3 changed files with 9 additions and 4 deletions

View File

@@ -54,7 +54,10 @@ describe('User List', () => {
.contains('Delete')
.click();
cy.get('[data-testid=modal-title]').should('contain', 'Delete User');
cy.get('[data-testid=modal-title]').should(
'contain',
`Delete ${testUser.displayName}`
);
cy.intercept('/api/v1/user?take=10&skip=0&sort=displayname').as('user');