Files
cypress/system-tests/test/cdp_deprecated_firefox_spec.ts
T
Bill Glesias 5da0995531 feat: implement webdriver BiDi for Firefox versions 135 and greater (#30870)
* feat: implement BiDi automation client base (without full extension cutover). [run ci]

* chore: implement suggestions from code review. [run ci]

* update error text to be in line with documentation

* address comments from code review

* address comments from code review

* make bidi, cdp, and both active protocols object enumerations to make the code easier to read

* address additional comments from code review

* fix errors from refactor

* update firefox warning
2025-02-24 13:17:44 -05:00

19 lines
744 B
TypeScript

import systemTests from '../lib/system-tests'
describe('CDP deprecated in Firefox', () => {
systemTests.setup()
systemTests.it('logs a warning to the user that CDP is deprecated and will be removed in Cypress 15', {
browser: 'firefox',
processEnv: {
FORCE_FIREFOX_CDP: '1',
},
expectedExitCode: 0,
snapshot: true,
spec: 'simple_passing.cy.js',
onStdout: (stdout) => {
expect(stdout).to.include('Since Firefox 129, Chrome DevTools Protocol (CDP) has been deprecated in Firefox. In Firefox 135 and above, Cypress defaults to automating the Firefox browser with WebDriver BiDi. Cypress will no longer support CDP within Firefox in the future and is planned for removal in Cypress 15.')
},
})
})