Skip to content

Commit

Permalink
just for a test
Browse files Browse the repository at this point in the history
  • Loading branch information
larisaVasile committed Jun 11, 2024
1 parent b518bbb commit 286cf9d
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ describe('Test generation and download of open api specification', () => {
.then(() => cy.openGenerationOpenApiSpec().wait(500))
.then(() => cy.get(GENERATION_tbOutputButton).click())
.then(() => cy.get(GENERATION_tbOutputButton_JSON).click())
.then(() => cy.get(GENERATION_tbBaseUrlInput).focus().clear().blur())
.then(() =>
cy.get(GENERATION_tbBaseUrlInputError).should('exist').should('be.visible').should('contain.text', 'Please add a valid url'),
)
.then(() => cy.get(GENERATION_tbBaseUrlInput).focus().type('https://example.com').blur())
.then(() => cy.get(GENERATION_tbGenerateOpenApiButton).click().wait(5000))
.then(() => cy.fixture('cypress/downloads/en-open-api.json'));
// .then(() => cy.get(GENERATION_tbBaseUrlInput).focus().clear().blur())
// .then(() =>
// cy.get(GENERATION_tbBaseUrlInputError).should('exist').should('be.visible').should('contain.text', 'Please add a valid url'),
// )
// .then(() => cy.get(GENERATION_tbBaseUrlInput).focus().type('https://example.com').blur())
// .then(() => cy.get(GENERATION_tbGenerateOpenApiButton).click().wait(5000))
// .then(() => cy.fixture('cypress/downloads/en-open-api.json'));
});

it('Can generate valid JSON Open Api Specification with resource path', () => {
Expand Down

0 comments on commit 286cf9d

Please sign in to comment.