Skip to content

Commit af11c9b

Browse files
committed
Simplify element selection in swagger e2e tests.
1 parent e5d357f commit af11c9b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

e2e/cypress/e2e/mvc/swagger.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ describe('MVC E2E Tests', () => {
22
it('shows swagger', () => {
33
let host = Cypress.env('host_mvc') ? Cypress.env('host_mvc') : 'localhost';
44
cy.visit(`http://${host}:8080/swagger-ui/index.html`);
5-
cy.get('h2').contains('OpenAPI definition').should('not.be.null');
5+
cy.contains('OpenAPI definition').should('not.be.null');
66
cy.wait(1000);
77

88
cy.get('div[class="servers"] > label > select > option').should('have.value', 'http://localhost:8080');

e2e/cypress/e2e/webflux/swagger.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ describe('WebFlux E2E Tests', () => {
22
it('shows swagger', () => {
33
let host = Cypress.env('host_webflux') ? Cypress.env('host_webflux') : 'localhost';
44
cy.visit(`http://${host}:8081/webjars/swagger-ui/index.html`);
5-
cy.get('h2').contains('OpenAPI definition').should('not.be.null');
5+
cy.contains('OpenAPI definition').should('not.be.null');
66
cy.wait(1000);
77

88
cy.get('div[class="servers"] > label > select > option').should('have.value', 'http://localhost:8081');

0 commit comments

Comments
 (0)