mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Cover register and activation with e2e tests
This commit is contained in:
13
tests-e2e/cypress/support/index.d.ts
vendored
13
tests-e2e/cypress/support/index.d.ts
vendored
@@ -15,10 +15,21 @@ declare namespace Cypress {
|
||||
/**
|
||||
* Custom command to log in the user
|
||||
*
|
||||
* @example cy.login(account)
|
||||
* @example cy.login({ accounts: ['default'] })
|
||||
*/
|
||||
login(options: {
|
||||
accounts: AccountAlias[];
|
||||
/**
|
||||
* defaults to `true`. if `false` — than only api response will
|
||||
* be returned without mutating app state
|
||||
* (useful for custom scenarios such as mocking of other api responses
|
||||
* or checking whether account is registered)
|
||||
*/
|
||||
updateState?: boolean;
|
||||
/**
|
||||
* Whether return raw api response without any conversion. Defaults to: `false`
|
||||
*/
|
||||
rawApiResp?: boolean;
|
||||
}): Promise<{ accounts: Account[] }>;
|
||||
|
||||
getByTestId<S = any>(
|
||||
|
||||
Reference in New Issue
Block a user