File tree Expand file tree Collapse file tree 4 files changed +15
-5
lines changed
frontend/tests/e2e-playwright Expand file tree Collapse file tree 4 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,11 @@ import { isNullish } from "@dfinity/utils";
1515const TEST_USER_NAME = "Test User" ;
1616
1717test . 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 ;
Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ const upgradeLegacyIdentity = async (
3939} ;
4040
4141test . 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 ) ;
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments