Skip to content

Commit 41d056a

Browse files
committed
test: fix missed test updates
1 parent da7e0d6 commit 41d056a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

examples/for-tests/src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,7 @@ function getWebauthnConfigs({
12231223

12241224
return { authenticationResponse: assertion, status: "OK" };
12251225
},
1226-
async registerCredential(...args) {
1226+
async createCredential(...args) {
12271227
log("REGISTER CREDENTIAL");
12281228

12291229
const registrationOptions = args[0].registrationOptions;

test/end-to-end/thirdparty.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ export function getThirdPartyTestCases({ authRecipe, rid, signInUpPageLoadLogs,
317317
// ]);
318318
// });
319319

320-
it("field error on sign in up with translation key", async function () {
320+
it("general error on sign in up with translation key", async function () {
321321
await Promise.all([
322322
page.goto(`${TEST_CLIENT_BASE_URL}/auth`),
323323
page.waitForNavigation({ waitUntil: "networkidle0" }),
@@ -335,8 +335,8 @@ export function getThirdPartyTestCases({ authRecipe, rid, signInUpPageLoadLogs,
335335
"access-control-allow-credentials": "true",
336336
},
337337
body: JSON.stringify({
338-
status: "FIELD_ERROR",
339-
error: "AUTH_PAGE_FOOTER_TOS",
338+
status: "GENERAL_ERROR",
339+
message: "AUTH_PAGE_FOOTER_TOS",
340340
}),
341341
});
342342
page.off("request", requestHandler);
@@ -352,7 +352,7 @@ export function getThirdPartyTestCases({ authRecipe, rid, signInUpPageLoadLogs,
352352
assert.deepStrictEqual(error, "TOS");
353353
});
354354

355-
it("field error on sign in up with non-translation key", async function () {
355+
it("general error on sign in up with non-translation key", async function () {
356356
await Promise.all([
357357
page.goto(`${TEST_CLIENT_BASE_URL}/auth`),
358358
page.waitForNavigation({ waitUntil: "networkidle0" }),
@@ -370,8 +370,8 @@ export function getThirdPartyTestCases({ authRecipe, rid, signInUpPageLoadLogs,
370370
"access-control-allow-credentials": "true",
371371
},
372372
body: JSON.stringify({
373-
status: "FIELD_ERROR",
374-
error: "Test message!!!!",
373+
status: "GENERAL_ERROR",
374+
message: "Test message!!!!",
375375
}),
376376
});
377377
page.off("request", requestHandler);

0 commit comments

Comments
 (0)