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,
|
||||
} from '../../helpers/dataHelpers';
|
||||
import { setPromptValue } from '../../helpers/common';
|
||||
import { AWAIT_LONG } from '../../helpers/constants';
|
||||
import { AWAIT_LONG, AWAIT_SHORT } from '../../helpers/constants';
|
||||
import { getTimeoutSeconds } from '../../helpers/eventHelpers';
|
||||
|
||||
const statements = {
|
||||
@ -114,8 +114,12 @@ const typeIntoHandler = (content: string) => {
|
||||
|
||||
const clickOnCreateAction = () => {
|
||||
cy.get(getElementFromAlias('create-action-btn'))
|
||||
.scrollIntoView()
|
||||
.click({ force: true });
|
||||
.scrollIntoView();
|
||||
// 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 })
|
||||
.should('be.visible')
|
||||
.and('contain', 'Created action successfully');
|
||||
|
@ -1,13 +1,13 @@
|
||||
import {
|
||||
createMutationAction,
|
||||
modifyMutationAction,
|
||||
// createQueryAction,
|
||||
// modifyQueryAction,
|
||||
createQueryAction,
|
||||
modifyQueryAction,
|
||||
deleteMutationAction,
|
||||
// deleteQueryAction,
|
||||
// createActionTransform,
|
||||
// modifyActionTransform,
|
||||
// deleteActionTransform,
|
||||
deleteQueryAction,
|
||||
createActionTransform,
|
||||
modifyActionTransform,
|
||||
deleteActionTransform,
|
||||
} from './spec';
|
||||
import { testMode } from '../../helpers/common';
|
||||
import { setMetaData } from '../validators/validators';
|
||||
@ -28,13 +28,13 @@ export const runActionsTests = () => {
|
||||
// it('Verify Mutation Actions on GraphiQL', verifyMutation);
|
||||
it('Modify Mutation Action', modifyMutationAction);
|
||||
it('Delete Mutation Action', deleteMutationAction);
|
||||
// it('Create Query Action', createQueryAction);
|
||||
// // it('Verify Query Actions on GraphiQL', verifyQuery);
|
||||
// it('Modify Query Action', modifyQueryAction);
|
||||
// it('Delete Query Action', deleteQueryAction);
|
||||
// it('Create Action With Transform', createActionTransform);
|
||||
// it('Update Action With Transform', modifyActionTransform);
|
||||
// it('Delete Action With Transform', deleteActionTransform);
|
||||
it('Create Query Action', createQueryAction);
|
||||
// it('Verify Query Actions on GraphiQL', verifyQuery);
|
||||
it('Modify Query Action', modifyQueryAction);
|
||||
it('Delete Query Action', deleteQueryAction);
|
||||
it('Create Action With Transform', createActionTransform);
|
||||
it('Update Action With Transform', modifyActionTransform);
|
||||
it('Delete Action With Transform', deleteActionTransform);
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user