Skip to content

Commit

Permalink
fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
larisaVasile committed Jun 12, 2024
1 parent 9e7e36a commit 01f1c39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/apps/ame-e2e/src/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -535,19 +535,19 @@ Cypress.Commands.add('saveAspectModelToWorkspace', () => {
Cypress.Commands.add('openGenerationOpenApiSpec', () => {
cy.intercept(
'POST',
'http://localhost:9091/ame/api/generate/open-api-spec?language=en&output=json&baseUrl=https://example.com&includeQueryApi=false&useSemanticVersion=false&pagingOption=NO_PAGING&resourcePath=null&ymlProperties=&jsonProperties=',
'http://localhost:9091/ame/api/generate/open-api-spec?language=en&output=json&baseUrl=https://example.com&includeQueryApi=false&useSemanticVersion=false&pagingOption=NO_PAGING&includePOST=false&includePUT=false&includePATCH=false&resourcePath=null&ymlProperties=&jsonProperties=',
{fixture: 'valid-open-api.json'},
);

cy.intercept(
'POST',
'http://localhost:9091/ame/api/generate/open-api-spec?language=en&output=yaml&baseUrl=https://example.com&includeQueryApi=false&useSemanticVersion=false&pagingOption=NO_PAGING&resourcePath=null&ymlProperties=&jsonProperties=',
'http://localhost:9091/ame/api/generate/open-api-spec?language=en&output=yaml&baseUrl=https://example.com&includeQueryApi=false&useSemanticVersion=false&pagingOption=NO_PAGING&includePOST=false&includePUT=false&includePATCH=false&resourcePath=null&ymlProperties=&jsonProperties=',
{fixture: 'valid-open-api.yaml'},
);

cy.intercept(
'POST',
'http://localhost:9091/ame/api/generate/open-api-spec?language=en&output=json&baseUrl=https://example.com&includeQueryApi=false&useSemanticVersion=false&pagingOption=NO_PAGING&resourcePath=/resource/%7BresourceId%7D&ymlProperties=&jsonProperties=%7B%0A%20%20%22key%22:%20%22value%22%0A%7D',
'http://localhost:9091/ame/api/generate/open-api-spec?language=en&output=json&baseUrl=https://example.com&includeQueryApi=false&useSemanticVersion=false&pagingOption=NO_PAGING&includePOST=false&includePUT=false&includePATCH=false&resourcePath=/resource/%7BresourceId%7D&ymlProperties=&jsonProperties=%7B%0A%20%20%22key%22:%20%22value%22%0A%7D',
{fixture: 'valid-open-api.json'},
);

Expand Down

0 comments on commit 01f1c39

Please sign in to comment.