mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-10-05 14:28:08 +03:00
console/actions: fix cypress tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2780 Co-authored-by: Vijay Prasanna <11921040+vijayprasanna13@users.noreply.github.com> GitOrigin-RevId: 4ce4e24f122705fb808de0a32a2c09a30a0d78d4
This commit is contained in:
parent
aa38733d3b
commit
d867bb7303
@ -4,7 +4,7 @@ import {
|
|||||||
getElementFromClassName,
|
getElementFromClassName,
|
||||||
} from '../../helpers/dataHelpers';
|
} from '../../helpers/dataHelpers';
|
||||||
import { setPromptValue } from '../../helpers/common';
|
import { setPromptValue } from '../../helpers/common';
|
||||||
import { AWAIT_LONG } from '../../helpers/constants';
|
import { AWAIT_LONG, AWAIT_SHORT } from '../../helpers/constants';
|
||||||
import { getTimeoutSeconds } from '../../helpers/eventHelpers';
|
import { getTimeoutSeconds } from '../../helpers/eventHelpers';
|
||||||
|
|
||||||
const statements = {
|
const statements = {
|
||||||
@ -114,8 +114,12 @@ const typeIntoHandler = (content: string) => {
|
|||||||
|
|
||||||
const clickOnCreateAction = () => {
|
const clickOnCreateAction = () => {
|
||||||
cy.get(getElementFromAlias('create-action-btn'))
|
cy.get(getElementFromAlias('create-action-btn'))
|
||||||
.scrollIntoView()
|
.scrollIntoView();
|
||||||
.click({ force: true });
|
// hard await before accessing the element
|
||||||
|
cy.wait(AWAIT_SHORT);
|
||||||
|
|
||||||
|
cy.get(getElementFromAlias('create-action-btn')).click({ force: true });
|
||||||
|
cy.wait(AWAIT_SHORT);
|
||||||
cy.get('.notification', { timeout: AWAIT_LONG })
|
cy.get('.notification', { timeout: AWAIT_LONG })
|
||||||
.should('be.visible')
|
.should('be.visible')
|
||||||
.and('contain', 'Created action successfully');
|
.and('contain', 'Created action successfully');
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
import {
|
import {
|
||||||
createMutationAction,
|
createMutationAction,
|
||||||
modifyMutationAction,
|
modifyMutationAction,
|
||||||
// createQueryAction,
|
createQueryAction,
|
||||||
// modifyQueryAction,
|
modifyQueryAction,
|
||||||
deleteMutationAction,
|
deleteMutationAction,
|
||||||
// deleteQueryAction,
|
deleteQueryAction,
|
||||||
// createActionTransform,
|
createActionTransform,
|
||||||
// modifyActionTransform,
|
modifyActionTransform,
|
||||||
// deleteActionTransform,
|
deleteActionTransform,
|
||||||
} from './spec';
|
} from './spec';
|
||||||
import { testMode } from '../../helpers/common';
|
import { testMode } from '../../helpers/common';
|
||||||
import { setMetaData } from '../validators/validators';
|
import { setMetaData } from '../validators/validators';
|
||||||
@ -28,13 +28,13 @@ export const runActionsTests = () => {
|
|||||||
// it('Verify Mutation Actions on GraphiQL', verifyMutation);
|
// it('Verify Mutation Actions on GraphiQL', verifyMutation);
|
||||||
it('Modify Mutation Action', modifyMutationAction);
|
it('Modify Mutation Action', modifyMutationAction);
|
||||||
it('Delete Mutation Action', deleteMutationAction);
|
it('Delete Mutation Action', deleteMutationAction);
|
||||||
// it('Create Query Action', createQueryAction);
|
it('Create Query Action', createQueryAction);
|
||||||
// // it('Verify Query Actions on GraphiQL', verifyQuery);
|
// it('Verify Query Actions on GraphiQL', verifyQuery);
|
||||||
// it('Modify Query Action', modifyQueryAction);
|
it('Modify Query Action', modifyQueryAction);
|
||||||
// it('Delete Query Action', deleteQueryAction);
|
it('Delete Query Action', deleteQueryAction);
|
||||||
// it('Create Action With Transform', createActionTransform);
|
it('Create Action With Transform', createActionTransform);
|
||||||
// it('Update Action With Transform', modifyActionTransform);
|
it('Update Action With Transform', modifyActionTransform);
|
||||||
// it('Delete Action With Transform', deleteActionTransform);
|
it('Delete Action With Transform', deleteActionTransform);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user