From 2f197422c1684a4c512e98f9d8affe3a7513c074 Mon Sep 17 00:00:00 2001 From: minbo Date: Thu, 29 Aug 2024 01:01:59 +0900 Subject: [PATCH] =?UTF-8?q?test:=20wait=20=EC=B6=94=EA=B0=80,=20goOtherQue?= =?UTF-8?q?stions=20=ED=95=A8=EC=88=98=20=EC=B6=94=EA=B0=80=20=EA=B0=80?= =?UTF-8?q?=EB=81=94=EC=94=A9=20=ED=85=8D=EC=8A=A4=ED=8A=B8=EA=B0=80=20"2?= =?UTF-8?q?=EC=88=9C=EC=9C=84"=EC=9D=B8=20span=20=ED=83=9C=EA=B7=B8?= =?UTF-8?q?=EB=A5=BC=20=EC=9D=B8=EC=8B=9D=ED=95=98=EC=A7=80=20=EB=AA=BB?= =?UTF-8?q?=ED=95=98=EC=97=AC=20wait=EB=A5=BC=20=EC=B6=94=EA=B0=80?= =?UTF-8?q?=ED=95=98=EC=98=80=EC=8A=B5=EB=8B=88=EB=8B=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/cypress/support/commands.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/frontend/cypress/support/commands.ts b/frontend/cypress/support/commands.ts index 1fe34286..80f72a25 100644 --- a/frontend/cypress/support/commands.ts +++ b/frontend/cypress/support/commands.ts @@ -5,6 +5,7 @@ declare namespace Cypress { checkLocalStorage(key: string, expectedValue: string): Chainable; checkAlert(expectedValue: string): Chainable; goSecondPersonalInformation(): Chainable; + goOtherQuestions(): Chainable; } } @@ -34,6 +35,7 @@ Cypress.Commands.add("goSecondPersonalInformation", () => { .contains("label", "APP") .should("exist") .click(); + cy.wait(1000); cy.get("span") .filter((index, element) => Cypress.$(element).text().trim() === "2순위") .next() @@ -73,3 +75,14 @@ Cypress.Commands.add("goSecondPersonalInformation", () => { cy.get("label").contains("2학기").should("exist").click(); cy.get("button").contains("다음").should("exist").click(); }); + +Cypress.Commands.add("goOtherQuestions", () => { + cy.goSecondPersonalInformation(); + cy.get("span") + .filter((index, element) => Cypress.$(element).text().trim() === "전공*") + .parent() + .next("input") + .type("컴퓨터정보통신공학과"); + + cy.get("button").contains("다음").click(); +});