Skip to content

Commit 57a3429

Browse files
authored
fix: e2e with 0.41 (#836)
* fix: e2e with 0.41 * fix: e2e * fix: add dev tag
1 parent 04d0afe commit 57a3429

File tree

8 files changed

+23
-17
lines changed

8 files changed

+23
-17
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [unreleased]
99

10-
## [0.41.2] - UNRELEASED
10+
## [0.41.3] - 2024-07-16
11+
12+
- Fixes e2e test
13+
14+
## [0.41.2]
1115

1216
### Test changes
1317

addDevTag

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# check if we need to merge master into this branch------------
2-
if [[ $(git log origin/master ^HEAD) ]]; then
3-
echo "You need to merge master into this branch. Exiting"
4-
exit 1
5-
fi
6-
71
# get version------------
82
version=`cat package.json | grep -e '"version":'`
93

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.41.2";
15+
export const package_version = "0.41.3";

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.41.2",
3+
"version": "0.41.3",
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: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,10 +373,18 @@ 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+
const features = await getFeatureFlags();
377+
if (features.includes("accountlinking-fixes")) {
378+
assert.strictEqual(
379+
await getGeneralError(page),
380+
"Cannot sign in / up due to security reasons. Please try a different login method or contact support. (ERR_CODE_004)"
381+
);
382+
} else {
383+
assert.strictEqual(
384+
await getGeneralError(page),
385+
"Cannot sign in / up because new email cannot be applied to existing account. Please contact support. (ERR_CODE_005)"
386+
);
387+
}
380388
});
381389

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

0 commit comments

Comments
 (0)