Skip to content

Instantly share code, notes, and snippets.

@NilukaSripalim
Created February 27, 2021 07:45
Show Gist options
  • Save NilukaSripalim/73a8389de3b91c84dbe89b94d13b39ed to your computer and use it in GitHub Desktop.
Save NilukaSripalim/73a8389de3b91c84dbe89b94d13b39ed to your computer and use it in GitHub Desktop.
Cypress then() Example1
/// <reference types="cypress" />
describe('Cypress Test Automation with then command', () => {
const log = console.log
it('then functionality example', () => {
/**
* then() calls the passed anonymous functions
*/
cy.then(() => log("The basic with then command"));
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment