graphql-engine/console/cypress/support/visitEmptyPage.ts
Stefano Magni b2103cda61 console: Refactoring the Mutation Actions-related E2E tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4482
GitOrigin-RevId: bd628911e607ab41399b31f7dd8fe9c361e0f052
2022-06-17 14:07:16 +00:00

11 lines
262 B
TypeScript

/**
* Visit the initial empty page.
*
* @see https://glebbahmutov.com/blog/visit-blank-page-between-tests/
*/
Cypress.Commands.add('visitEmptyPage', { prevSubject: false }, () => {
cy.window().then(win => {
win.location.href = 'about:blank';
});
});