Cannot run in Brave Browser #25266
Labels
E2E
Issue related to end-to-end testing
OS: windows
Triaged
Issue has been routed to backlog. This is not a commitment to have it prioritized by the team.
Current behavior
Brave opened . then cypress's brave opened and this happened.
Desired behavior
Need to open in Brave
Test code to reproduce
`
//cypress.config.js
const { defineConfig } = require("cypress");
const execa = require('execa');
const findBrowser = async () => {
// the path is hard-coded for simplicity
const browserPath =
'C:/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe'
const result = await execa(browserPath, ['--version']);
// STDOUT will be like "Brave Browser 77.0.69.135"
// const [, version] = /Brave Browser (\d+.\d+.\d+.\d+)/.exec(result.stdout);
// const majorVersion = parseInt(version.split('.')[0]);
return {
name: 'Brave',
channel: 'stable',
family: 'chromium',
displayName: 'Brave',
version:"1.46.144",
path: browserPath,
majorVersion:"146144",
};
}
module.exports = defineConfig({
e2e: {
async setupNodeEvents(on, config) {
const browser = await findBrowser();
return {
browsers: config.browsers.concat(browser),
};
}
}
});
`
Cypress Version
latest
Node version
latest
Operating System
window 10 2015
Debug Logs
Other
may be version problem ? I disable version code because It has error. Now Brave is opened twice and cypress one is not working .
The text was updated successfully, but these errors were encountered: