From 0a55d3cf70463427c9881a5363cfeac62bbce946 Mon Sep 17 00:00:00 2001 From: Varun Choudhary <68095256+Varun-Choudhary@users.noreply.github.com> Date: Wed, 7 Jun 2023 17:10:16 +0530 Subject: [PATCH] console: fix action with transform e2e tests This PR fixes e2e tests for action with transforms PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9452 GitOrigin-RevId: b8f2254969a8d6fe3b64e468e114b0e509d48f2d --- .../withTransform/actionWithTransform.e2e.test.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/frontend/apps/console-ce-e2e/src/e2e/actions/withTransform/actionWithTransform.e2e.test.ts b/frontend/apps/console-ce-e2e/src/e2e/actions/withTransform/actionWithTransform.e2e.test.ts index 25d86af6588..4d44e732768 100644 --- a/frontend/apps/console-ce-e2e/src/e2e/actions/withTransform/actionWithTransform.e2e.test.ts +++ b/frontend/apps/console-ce-e2e/src/e2e/actions/withTransform/actionWithTransform.e2e.test.ts @@ -155,10 +155,13 @@ describe('Actions with Transform', () => { // -------------------- cy.get('[data-cy="Change Request Options"]').within(() => { cy.log('**--- Check the Preview of the Request URL Template**'); - cy.findByLabelText('Preview').should( - 'have.value', - 'https://hasura-actions-demo.glitch.me/login?name=login&id=5' - ); + + cy.get('[name=request_url_preview]') + .invoke('attr', 'value') + .should('contains', 'name=login'); + cy.get('[name=request_url_preview]') + .invoke('attr', 'value') + .should('contains', 'id=5'); }); cy.log('**------------------------------**');