Skip to content

Commit

Permalink
fix: Fix e2e tests (#730)
Browse files Browse the repository at this point in the history
* Update end to end tests to use application instead of base server url when calling delete user

* Update version and changelog

* Update dev tag
  • Loading branch information
nkshah2 authored Aug 31, 2023
1 parent 0343521 commit 075157b
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions addDevTag
Original file line number Diff line number Diff line change
@@ -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":'`

Expand Down
2 changes: 1 addition & 1 deletion lib/build/version.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/ts/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions test/end-to-end/emailverification.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit 075157b

Please sign in to comment.