Browse Source

Test for the-calling

pull/748/head
Marie Malarme 3 years ago committed by Clément
parent
commit
d7419b4a64
  1. 19
      dom/the-calling_test.js

19
dom/the-calling_test.js

@ -0,0 +1,19 @@
export const tests = []
tests.push(async ({ page, eq }) => {
// check the 3 sections have the correct id and no text
const sections = await page.$$eval('section', (nodes) =>
nodes.map((node) => ({
tag: node.tagName.toLowerCase(),
text: node.textContent,
id: node.id,
})),
)
eq(expectedSections, sections)
})
const expectedSections = [
{ tag: 'section', text: '', id: 'face' },
{ tag: 'section', text: '', id: 'upper-body' },
{ tag: 'section', text: '', id: 'lower-body' },
]
Loading…
Cancel
Save