From 5136ea851a71bf8fb06dc6be732bc30d69b35060 Mon Sep 17 00:00:00 2001 From: Mohammed Nihal <57055998+nihal467@users.noreply.github.com> Date: Tue, 2 Apr 2024 17:26:57 +0530 Subject: [PATCH] change the cypress to use Reusable component --- cypress/e2e/external_results_spec/external_result.cy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/e2e/external_results_spec/external_result.cy.ts b/cypress/e2e/external_results_spec/external_result.cy.ts index 314af792bbb..2091a5f93be 100644 --- a/cypress/e2e/external_results_spec/external_result.cy.ts +++ b/cypress/e2e/external_results_spec/external_result.cy.ts @@ -45,7 +45,7 @@ describe("Edit Profile Testing", () => { cy.get("[data-testid=import-file]") .selectFile("cypress/fixtures/externalresultsample.csv", { force: true }) .wait(100); - cy.get("#submit").contains("Import").click(); + cy.submitButton("Import"); cy.wait("@import").then((interception) => { expect(interception.response.statusCode).to.equal(202); });