Skip to content

Commit 3ba8d59

Browse files
authored
Fix user-management Cypress tests (#31870)
1 parent 6aff3dc commit 3ba8d59

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

generators/cypress/templates/src/test/javascript/cypress/e2e/administration/administration.cy.ts.ejs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ describe('/admin', () => {
7979
method: 'POST',
8080
url: '/api/admin/users',
8181
body: userSample,
82+
failOnStatusCode: false,
83+
}).then(({ status }) => {
84+
expect(status).to.be.oneOf([201, 500]);
85+
return cy.authenticatedRequest({
86+
method: 'GET',
87+
url: `/api/admin/users/${userSample.login}`,
88+
});
8289
}).then(({ body }) => {
8390
user = body;
8491
cy.intercept(

0 commit comments

Comments
 (0)