Skip to content

Commit

Permalink
addapt cypress to new functionalflow save
Browse files Browse the repository at this point in the history
(via plantuml)
(code 200 vs 201 #116)
  • Loading branch information
mauvaisetroupe committed Sep 23, 2023
1 parent c8024ef commit 94e7948
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('FunctionalFlow e2e test', () => {

beforeEach(() => {
cy.intercept('GET', '/api/functional-flows+(?*|)').as('entitiesRequest');
cy.intercept('POST', '/api/functional-flows').as('postEntityRequest');
cy.intercept('POST', '/api/import/flow/sequence-diagram/save').as('postEntityRequest');
cy.intercept('DELETE', '/api/functional-flows/*').as('deleteEntityRequest');
});

Expand Down Expand Up @@ -171,7 +171,7 @@ describe('FunctionalFlow e2e test', () => {
cy.get(entityCreateSaveButtonSelector).click();

cy.wait('@postEntityRequest').then(({ response }) => {
expect(response!.statusCode).to.equal(201);
expect(response!.statusCode).to.equal(200);
functionalFlow = response!.body;
});
cy.wait('@entitiesRequest').then(({ response }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('Application Import and Flows e2e test', () => {
cy.intercept('POST', '/api/import/flow/upload-multi-file').as('landscapeImportRequest');
cy.intercept('POST', '/api/import/summary').as('excelSummaryRequest');
cy.intercept('POST', '/api/import/application/upload-file').as('applicationsImportRequest');
cy.intercept('POST', '/api/functional-flows').as('flowPostEntityRequest');
cy.intercept('POST', '/api/import/flow/sequence-diagram/save').as('flowPostEntityRequest');
cy.intercept('DELETE', '/api/functional-flows/*').as('flowDeleteEntityRequest');
cy.intercept('GET', '/api/functional-flows+(?*|)').as('flowEntitiesRequest');
});
Expand Down Expand Up @@ -144,7 +144,7 @@ describe('Application Import and Flows e2e test', () => {
cy.get(entityCreateSaveButtonSelector).click();

cy.wait('@flowPostEntityRequest').then(({ response }) => {
expect(response!.statusCode).to.equal(201);
expect(response!.statusCode).to.equal(200);
});
});

Expand Down

0 comments on commit 94e7948

Please sign in to comment.