mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
517 B
20 lines
517 B
4 years ago
|
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' },
|
||
|
]
|