From 075157b88e080d66476653d2575aa4aac5e63eee Mon Sep 17 00:00:00 2001 From: Nemi Shah Date: Thu, 31 Aug 2023 15:15:55 +0530 Subject: [PATCH] fix: Fix e2e tests (#730) * Update end to end tests to use application instead of base server url when calling delete user * Update version and changelog * Update dev tag --- CHANGELOG.md | 4 ++++ addDevTag | 6 ------ lib/build/version.d.ts | 2 +- lib/ts/version.ts | 2 +- package-lock.json | 4 ++-- package.json | 2 +- test/end-to-end/emailverification.test.js | 4 ++-- 7 files changed, 11 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 19b8bc283..c93a5ce50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [unreleased] +## [0.33.2] - 2023-08-31 + +- Modifies tests to fix CICD errors + ## [0.33.1] - 2023-06-08 ### Fixes diff --git a/addDevTag b/addDevTag index 49f2f2d90..ecaeffc6a 100755 --- a/addDevTag +++ b/addDevTag @@ -1,9 +1,3 @@ -# check if we need to merge master into this branch------------ -if [[ $(git log origin/master ^HEAD) ]]; then - echo "You need to merge master into this branch. Exiting" - exit 1 -fi - # get version------------ version=`cat package.json | grep -e '"version":'` diff --git a/lib/build/version.d.ts b/lib/build/version.d.ts index e0760ea73..18d485ad0 100644 --- a/lib/build/version.d.ts +++ b/lib/build/version.d.ts @@ -1 +1 @@ -export declare const package_version = "0.33.1"; +export declare const package_version = "0.33.2"; diff --git a/lib/ts/version.ts b/lib/ts/version.ts index aab06bea1..c6210813c 100644 --- a/lib/ts/version.ts +++ b/lib/ts/version.ts @@ -12,4 +12,4 @@ * License for the specific language governing permissions and limitations * under the License. */ -export const package_version = "0.33.1"; +export const package_version = "0.33.2"; diff --git a/package-lock.json b/package-lock.json index 865be22e2..275ac1eb5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "supertokens-auth-react", - "version": "0.33.1", + "version": "0.33.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "supertokens-auth-react", - "version": "0.33.1", + "version": "0.33.2", "license": "Apache-2.0", "dependencies": { "intl-tel-input": "^17.0.19", diff --git a/package.json b/package.json index b55d86fa7..40bef6980 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "supertokens-auth-react", - "version": "0.33.1", + "version": "0.33.2", "description": "ReactJS SDK that provides login functionality with SuperTokens.", "main": "./index.js", "engines": { diff --git a/test/end-to-end/emailverification.test.js b/test/end-to-end/emailverification.test.js index 551ad4781..c196520d8 100644 --- a/test/end-to-end/emailverification.test.js +++ b/test/end-to-end/emailverification.test.js @@ -126,7 +126,7 @@ describe("SuperTokens Email Verification", function () { ]); await waitForSTElement(page, "[data-supertokens~='sendVerifyEmailIcon']"); - await fetch(`${TEST_SERVER_BASE_URL}/deleteUser`, { + await fetch(`${TEST_APPLICATION_SERVER_BASE_URL}/deleteUser`, { method: "POST", headers: [["content-type", "application/json"]], body: JSON.stringify({ @@ -183,7 +183,7 @@ describe("SuperTokens Email Verification", function () { let pathname = await page.evaluate(() => window.location.pathname); assert.deepStrictEqual(pathname, "/auth/verify-email"); - await fetch(`${TEST_SERVER_BASE_URL}/deleteUser`, { + await fetch(`${TEST_APPLICATION_SERVER_BASE_URL}/deleteUser`, { method: "POST", headers: [["content-type", "application/json"]], body: JSON.stringify({