Skip to content

Commit

Permalink
Review tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueWinds committed Dec 15, 2021
1 parent 39771b9 commit e47debd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Expand Up @@ -255,15 +255,17 @@ 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()
})

cy.attachFile({ contents: '@foo' })
})

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()
})

Expand Down
2 changes: 1 addition & 1 deletion system-tests/package.json
Expand Up @@ -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",
Expand Down

0 comments on commit e47debd

Please sign in to comment.