Created
February 27, 2023 21:36
-
-
Save slawekradzyminski/c14c8fdf19266e0bed80830bd1eae547 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference types="cypress" /> | |
describe('Awesome tests', () => { | |
it('should find Cypress posts', () => { | |
cy.visit('https://awesome-testing.com/') | |
.then(() => { | |
cy.get('.gsc-input input') | |
}).then(($input) => { | |
cy.wrap($input).type('Cypress') | |
}).then(() => { | |
cy.get('.gsc-search-button input') | |
}).then(($btn) => { | |
cy.wrap($btn).click() | |
}).then(() => { | |
cy.get('.post-title').should('have.length.above', 1) | |
}) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment