Skip to content

Commit 454d6bb

Browse files
authored
Merge pull request #9461 from jrafanie/disable-autofill-communication
Disable autofill communication
2 parents f40e6cf + 58775b5 commit 454d6bb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cypress.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ module.exports = defineConfig({
3535
}
3636
}
3737
});
38+
on('before:browser:launch', (browser = {}, launchOptions) => {
39+
console.log('Launching browser:', browser.name);
40+
console.log('Input args:', launchOptions.args);
41+
if (browser.name === 'chrome') {
42+
launchOptions.args.push('--disable-features=AutofillServerCommunication');
43+
}
44+
console.log('Actual args:', launchOptions.args);
45+
return launchOptions;
46+
});
3847
},
3948
},
4049
});

0 commit comments

Comments
 (0)