Skip to content

Commit 0340c0f

Browse files
committed
Pass CI pipeline
1 parent 8de0844 commit 0340c0f

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

src/frontend/tests/e2e-playwright/authorize/migration.spec.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ import { isNullish } from "@dfinity/utils";
1515
const TEST_USER_NAME = "Test User";
1616

1717
test.describe("Migration from an app", () => {
18+
test.skip(
19+
({ browserName }) => browserName === "webkit",
20+
"Migration test not supported on Safari because it uses virtual authenticators which are not supported.",
21+
);
22+
1823
test("User can migrate a legacy identity", async ({ page }) => {
1924
const auth = dummyAuth();
2025
let credential: Protocol.WebAuthn.Credential | undefined;

src/frontend/tests/e2e-playwright/dashboard/migration.spec.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ const upgradeLegacyIdentity = async (
3939
};
4040

4141
test.describe("Migration", () => {
42+
test.skip(
43+
({ browserName }) => browserName === "webkit",
44+
"Migration test not supported on Safari because it uses virtual authenticators which are not supported.",
45+
);
46+
4247
test("User can migrate a legacy identity", async ({ page }) => {
4348
// Step 1: Create a legacy identity
4449
await page.goto(LEGACY_II_URL);

src/frontend/tests/e2e-playwright/fixtures.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const test = base.extend({
3636
}
3737

3838
const canister_name = hostToCanisterName[url.hostname];
39-
if (!canister_name) {
39+
if (canister_name === undefined) {
4040
return route.continue();
4141
}
4242
// The vite server uses the Host header and the localhost subdomain to determine where the redirect the request.

src/internet_identity/src/http.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ pub fn security_headers(
126126
// Content-Security-Policy (CSP)
127127
// Comprehensive policy to prevent XSS attacks and data injection
128128
// See content_security_policy_header() function for detailed explanation
129-
// (
130-
// "Content-Security-Policy".to_string(),
131-
// content_security_policy_header(integrity_hashes, maybe_related_origins),
132-
// ),
129+
(
130+
"Content-Security-Policy".to_string(),
131+
content_security_policy_header(integrity_hashes, maybe_related_origins),
132+
),
133133
// Strict-Transport-Security (HSTS)
134134
// Forces browsers to use HTTPS for all future requests to this domain
135135
// max-age=31536000: Valid for 1 year (31,536,000 seconds)

0 commit comments

Comments
 (0)