mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-10-05 22:37:52 +03:00
b2103cda61
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4482 GitOrigin-RevId: bd628911e607ab41399b31f7dd8fe9c361e0f052
11 lines
262 B
TypeScript
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';
|
|
});
|
|
});
|