Browse Source

Remove unescessary test for JS files

pull/1338/head
Clément 2 years ago committed by GitHub
parent
commit
d3a3888d53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      js/tests/bring-it-to-life-dom_test.mjs

12
js/tests/bring-it-to-life-dom_test.mjs

@ -1,17 +1,5 @@
export const tests = []
tests.push(async ({ eq, page }) => {
// check the JS script has been linked
await eq.$('script', { type: 'module' })
// check the JS script has a valid src
const source = await page.$eval(
'script',
(node) => node.src.includes('.js') && node.src,
)
if (!source.length) throw Error('missing script src')
})
tests.push(async ({ eq, page }) => {
// check the class 'eye-closed' has been added in the CSS
eq.css('.eye-closed', {

Loading…
Cancel
Save