Skip to content

Instantly share code, notes, and snippets.

@slawekradzyminski
Created February 27, 2023 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slawekradzyminski/c14c8fdf19266e0bed80830bd1eae547 to your computer and use it in GitHub Desktop.
Save slawekradzyminski/c14c8fdf19266e0bed80830bd1eae547 to your computer and use it in GitHub Desktop.
/// <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