mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
5764174087
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5535 GitOrigin-RevId: 0544edf4d8fdd1a6a8cc326a8b107ee47d2389c3
34 lines
949 B
TypeScript
34 lines
949 B
TypeScript
Cypress.Commands.add('expectSuccessNotification', () => {
|
|
cy.get('.notification-success').should('be.visible');
|
|
});
|
|
|
|
Cypress.Commands.add('expectSuccessNotificationWithTitle', (title: string) => {
|
|
cy.get('.notification-success').should('be.visible').should('contain', title);
|
|
});
|
|
|
|
Cypress.Commands.add(
|
|
'expectSuccessNotificationWithMessage',
|
|
(message: string) => {
|
|
cy.get('.notification-success')
|
|
.should('be.visible')
|
|
.should('contain', message);
|
|
}
|
|
);
|
|
|
|
Cypress.Commands.add('expectErrorNotification', () => {
|
|
cy.get('.notification-error').should('be.visible');
|
|
});
|
|
|
|
Cypress.Commands.add('expectErrorNotificationWithTitle', (title: string) => {
|
|
cy.get('.notification-error').should('be.visible').should('contain', title);
|
|
});
|
|
|
|
Cypress.Commands.add(
|
|
'expectErrorNotificationWithMessage',
|
|
(message: string) => {
|
|
cy.get('.notification-error')
|
|
.should('be.visible')
|
|
.should('contain', message);
|
|
}
|
|
);
|