Skip to content

Commit

Permalink
fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
larisaVasile committed Jun 13, 2024
1 parent aa51fb5 commit d9bbd8a
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ describe('Test generation and download of open api specification', () => {
.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().type('https://example.com').blur())
.then(() => cy.get(GENERATION_tbGenerateOpenApiButton).click().wait(7000))
.then(() => cy.fixture('cypress/downloads/en-open-api.json'));
});

it('Can generate valid JSON Open Api Specification with resource path', () => {
Expand Down Expand Up @@ -100,8 +100,8 @@ describe('Test generation and download of open api specification', () => {
.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({force: true}).wait(5000))
.then(() => cy.get(GENERATION_tbBaseUrlInput).focus().type('https://example.com').blur())
.then(() => cy.get(GENERATION_tbGenerateOpenApiButton).click({force: true}).wait(7000))
// .then(() => cy.fixture('cypress/downloads/en-open-api.yaml'));
});

Expand Down Expand Up @@ -136,9 +136,9 @@ describe('Test generation and download of open api specification', () => {
.should('be.visible')
.should('contain.text', 'YAML file is required - a variable has been defined in the resource path.'),
)
// .then(() => cy.get(GENERATION_uploadContentFileInput).attachFile('valid-yml.yml'))
// .then(() => cy.get(GENERATION_uploadContent).should('not.exist'))
// .then(() => cy.get(GENERATION_accordionTitle).should('exist').should('be.visible').should('contain.text', 'Properties'))
.then(() => cy.get(GENERATION_uploadContentFileInput).attachFile('valid-yml.yml'))
.then(() => cy.get(GENERATION_uploadContent).should('not.exist'))
// .then(() => cy.get(GENERATION_accordionTitle).should('exist').should('be.visible').should('contain.text', 'properties'))
// .then(() => cy.get(GENERATION_tbGenerateOpenApiButton).click().wait(5000))
// .then(() => cy.fixture('cypress/downloads/en-open-api.yaml'));
});
Expand Down

0 comments on commit d9bbd8a

Please sign in to comment.