diff --git a/packages/driver/cypress/integration/commands/actions/attachFile_spec.js b/packages/driver/cypress/integration/commands/actions/attachFile_spec.js index 925da9df8304..925aae22f9a7 100644 --- a/packages/driver/cypress/integration/commands/actions/attachFile_spec.js +++ b/packages/driver/cypress/integration/commands/actions/attachFile_spec.js @@ -255,7 +255,8 @@ describe('src/cy/commands/actions/attachFile', () => { defaultCommandTimeout: 50, }, () => { it('is a child command', (done) => { - cy.on('fail', () => { + cy.on('fail', (err) => { + expect(err.message).to.include('A child command must be chained after a parent because it operates on a previous subject.') done() }) @@ -263,7 +264,8 @@ describe('src/cy/commands/actions/attachFile', () => { }) it('throws when non dom subject', (done) => { - cy.on('fail', () => { + cy.on('fail', (err) => { + expect(err.message).to.include('`cy.attachFile()` failed because it requires a DOM element.') done() }) diff --git a/system-tests/package.json b/system-tests/package.json index fcfe48d88f0b..85dc40457c55 100644 --- a/system-tests/package.json +++ b/system-tests/package.json @@ -42,7 +42,7 @@ "cookie-parser": "1.4.5", "cors": "2.8.5", "dayjs": "^1.9.3", - "debug": "4.3.2", + "debug": "^4.3.2", "execa": "1.0.0", "express": "4.17.1", "express-session": "1.16.1",