Skip to content

Commit

Permalink
revert firefox_spec changes
Browse files Browse the repository at this point in the history
  • Loading branch information
flotwig committed Nov 9, 2021
1 parent c790fcb commit 0d98e75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/server/test/unit/browsers/firefox_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,14 +235,16 @@ describe('lib/browsers/firefox', () => {
},
})

utils.writeExtension.restore()

const getFile = function (path) {
return _.reduce(_.compact(_.split(path, '/')), (acc, item) => {
return acc.getItem(item)
}, mockfs.getMockRoot())
}

return firefox.open(this.browser, 'http://', this.options).then(() => {
expect(getFile(`${process.env.HOME }/.config/Cypress/cy/test/browsers/firefox-stable/interactive/CypressExtension/background.js`).getMode()).to.be.equals(0o444)
expect(getFile(`${process.env.HOME }/.config/Cypress/cy/test/browsers/firefox-stable/interactive/CypressExtension/background.js`).getMode()).to.be.equals(0o644)
})
})

Expand Down

0 comments on commit 0d98e75

Please sign in to comment.