Files
cypress/system-tests/test/issue_31466_spec.ts
T
Cacie Prins 9a51a0ff45 fix: activate main tab before detecting iframe focus in firefox/bidi implementation of cy.press() (#31481)
* activate main window before attempting to detect aut iframe active element

* add todo about refactor

* changelog

* system test for issue 31466

* no infinite max depth

* changelog

* changelog

* simplify

* additional test, better window switching logic
2025-04-14 16:13:13 -04:00

13 lines
367 B
TypeScript

import systemTests from '../lib/system-tests'
describe('e2e issue 31466: cy.press only works in the first spec in firefox', () => {
systemTests.setup()
systemTests.it('does not error when dispatching cy.press', {
spec: 'first_spec.cy.js,second_spec.cy.js',
project: 'cy-press-second-spec-error',
expectedExitCode: 0,
browser: 'firefox',
})
})