From 903c3d0fea13fa367c78b887d5eec32ce7c1aad2 Mon Sep 17 00:00:00 2001 From: minbo Date: Sat, 24 Aug 2024 13:04:17 +0900 Subject: [PATCH] =?UTF-8?q?test:=20goSecondPersonalInformation=20=ED=95=A8?= =?UTF-8?q?=EC=88=98=20=EC=88=98=EC=A0=95=20=EC=83=88=EB=A1=9C=EC=9A=B4=20?= =?UTF-8?q?=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EC=A7=84=ED=96=89=20=EC=A0=84=20?= =?UTF-8?q?=EB=A1=9C=EC=BB=AC=20=EC=8A=A4=ED=86=A0=EB=A6=AC=EC=A7=80=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C=20=EA=B0=9C=EB=B0=9C=EC=9E=90=EA=B0=80=20?= =?UTF-8?q?=EC=95=8C=EC=95=84=EB=B3=B4=EA=B8=B0=20=ED=8E=B8=ED=95=98?= =?UTF-8?q?=EA=B2=8C=20=EC=84=A0=ED=83=9D=EC=9E=90=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/cypress/support/commands.ts | 51 ++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 15 deletions(-) diff --git a/frontend/cypress/support/commands.ts b/frontend/cypress/support/commands.ts index ea399b9c..7e1cd65e 100644 --- a/frontend/cypress/support/commands.ts +++ b/frontend/cypress/support/commands.ts @@ -5,20 +5,41 @@ declare namespace Cypress { } Cypress.Commands.add("goSecondPersonalInformation", () => { + cy.clearAllLocalStorage(); cy.visit("http://localhost:3000/application"); - cy.get('[for=":R7dmlllkq:"]').click(); - cy.get('[for=":Rblmlllkq:"]').click(); - cy.get('[for=":r1:"]').click(); - cy.get( - ".flex-1.rounded-md.flex.justify-center.items-center.p-4.bg-dark.text-white" - ).click(); // 첫번째 인적사항 페이지로 이동 - cy.get("input.my-2.border.rounded-lg.p-4.w-full").eq(0).type("심민보"); - cy.get("input.my-2.border.rounded-lg.p-4.w-full").eq(1).type("01000000000"); - cy.get("input.my-2.border.rounded-lg.p-4.w-full").eq(2).type("111111"); - cy.get("input.my-2.border.rounded-lg.p-4.w-full").eq(3).type("재학"); - cy.get('[for=":rb:"]').click(); - cy.get('[for=":re:"]').click(); - cy.get( - ".flex-1.rounded-md.flex.justify-center.items-center.p-4.bg-dark.text-white" - ).click(); // 두번째 인적사항 페이지로 이동 + cy.get("label").contains("개발자").should("exist").click(); + cy.get("span") + .contains("1순위") + .next() + .contains("label", "APP") + .should("exist") + .click(); + cy.get("span") + .contains("1순위") + .next() + .next() + .next() + .contains("label", "WEB") + .should("exist") + .click(); + cy.get("button").contains("다음").should("exist").click(); + cy.get("span").contains("이름").parent().next().type("심민보"); + cy.get("span") + .contains("연락처") + .parent() + .next() + .type("00000000000") + .invoke("val") + .should("match", /^\d{3}-\d{4}-\d{4}$/); + cy.get("span") + .contains("학번") + .parent() + .next() + .type("123456") + .invoke("val") + .should("match", /^\d{6}$/); + cy.get("span").contains("학적상태").parent().next().type("재학"); + cy.get("label").contains("4학년").should("exist").click(); + cy.get("label").contains("2학기").should("exist").click(); + cy.get("button").contains("다음").should("exist").click(); });