From ebf8572a32c96a26e33dd6933989999183725c27 Mon Sep 17 00:00:00 2001 From: 70825 Date: Wed, 26 Jul 2023 15:59:39 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=ED=85=8C=EC=8A=A4=ED=8A=B8=EC=8B=9C=20?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EC=BF=A0=ED=82=A4=EB=A5=BC=20?= =?UTF-8?q?=EC=96=BB=EC=9D=84=20=EC=88=98=20=EC=9E=88=EB=8A=94=20=EB=A9=94?= =?UTF-8?q?=EC=84=9C=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../funeat/acceptance/common/LoginSteps.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 backend/src/test/java/com/funeat/acceptance/common/LoginSteps.java diff --git a/backend/src/test/java/com/funeat/acceptance/common/LoginSteps.java b/backend/src/test/java/com/funeat/acceptance/common/LoginSteps.java new file mode 100644 index 000000000..f97507e3d --- /dev/null +++ b/backend/src/test/java/com/funeat/acceptance/common/LoginSteps.java @@ -0,0 +1,21 @@ +package com.funeat.acceptance.common; + +import io.restassured.RestAssured; +import io.restassured.http.Cookies; +import io.restassured.response.ExtractableResponse; +import io.restassured.response.Response; + +@SuppressWarnings("NonAsciiCharacters") +public class LoginSteps { + + public static Cookies 로그인_쿠키를_얻는다() { + final ExtractableResponse response = RestAssured.given() + .queryParam("code", "test") + .when() + .get("/login/oauth2/code/kakao") + .then() + .extract(); + + return response.detailedCookies(); + } +}