Files
Open-Assistant/website/cypress/support/index.ts
T
Adrian Cowan 0df6d7fd31 website: more e2e tests for signin
Fixed issue where existing sign in test fails due to the existence of dev test login.

Added reusable cy.signInWithEmail() to login before testing rest of UI.
2023-01-02 21:13:10 +11:00

23 lines
624 B
TypeScript

// load type definitions that come with Cypress module
/// <reference types="cypress" />
declare global {
namespace Cypress {
interface Chainable {
/**
* Custom command to sign in with a given email address
* @example cy.signInWithEmail('user@example.com')
*/
signInWithEmail(emailAddress: string): Chainable<Element>;
/**
* Custom command to sign in with the link emailed to the given email address
* @example cy.signInUsingEmailedLink('user@example.com')
*/
signInUsingEmailedLink(emailAddress: string): Chainable<Element>;
}
}
}
export {};