Skip to content

Commit 02e1008

Browse files
authored
fix: e2e for 0.38 (#837)
1 parent 694bf37 commit 02e1008

File tree

7 files changed

+21
-10
lines changed

7 files changed

+21
-10
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
77

8+
## [0.38.2] - 2024-07-16
9+
10+
- Fixes to e2e test
11+
812
## [0.38.0] - 2024-02-29
913

1014
## Breaking Changes

lib/build/genericComponentOverrideContext.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/build/version.d.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/ts/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
* License for the specific language governing permissions and limitations
1313
* under the License.
1414
*/
15-
export const package_version = "0.38.1";
15+
export const package_version = "0.38.2";

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "supertokens-auth-react",
3-
"version": "0.38.1",
3+
"version": "0.38.2",
44
"description": "ReactJS SDK that provides login functionality with SuperTokens.",
55
"main": "./index.js",
66
"engines": {

test/end-to-end/accountlinking.test.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,10 +373,17 @@ describe("SuperTokens Account linking", function () {
373373
await tryThirdPartySignInUp(page, email, false, email2);
374374

375375
assert.strictEqual(new URL(page.url()).pathname, "/auth/");
376-
assert.strictEqual(
377-
await getGeneralError(page),
378-
"Cannot sign in / up because new email cannot be applied to existing account. Please contact support. (ERR_CODE_005)"
379-
);
376+
if (features.includes("accountlinking-fixes")) {
377+
assert.strictEqual(
378+
await getGeneralError(page),
379+
"Cannot sign in / up due to security reasons. Please try a different login method or contact support. (ERR_CODE_004)"
380+
);
381+
} else {
382+
assert.strictEqual(
383+
await getGeneralError(page),
384+
"Cannot sign in / up because new email cannot be applied to existing account. Please contact support. (ERR_CODE_005)"
385+
);
386+
}
380387
});
381388

382389
it("should not allow sign in w/ an unverified thirdparty user in case of conflict", async function () {

0 commit comments

Comments
 (0)