mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-28 16:20:34 +08:00
0df6d7fd31
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.
23 lines
624 B
TypeScript
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 {};
|