mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 17:31:56 +03:00
fc753ffb42
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4849 GitOrigin-RevId: 10e0fd62344a0c5c7028ad480b747b7f64c9c773
26 lines
896 B
TypeScript
26 lines
896 B
TypeScript
import { getElementFromAlias } from '../../helpers/dataHelpers';
|
|
|
|
export const viewOnboarding = () => {
|
|
// Click on create
|
|
cy.get(getElementFromAlias('onboarding-popup'))
|
|
.should('be.visible')
|
|
.should('contain.text', `Hi there, let's get started with Hasura!`);
|
|
// cy.get(getElementFromAlias('btn-hide-for-now')).click();
|
|
};
|
|
export const hideNow = () => {
|
|
// Click on create
|
|
cy.get(getElementFromAlias('btn-hide-for-now')).click();
|
|
cy.get(getElementFromAlias('onboarding-popup')).should('not.exist');
|
|
};
|
|
|
|
export const dontShowAgain = () => {
|
|
// Click on create
|
|
cy.reload();
|
|
cy.get(getElementFromAlias('onboarding-popup')).should('be.visible');
|
|
|
|
cy.get(getElementFromAlias('btn-ob-dont-show-again')).click();
|
|
cy.get(getElementFromAlias('onboarding-popup')).should('not.exist');
|
|
cy.reload();
|
|
cy.get(getElementFromAlias('onboarding-popup')).should('not.exist');
|
|
};
|