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.
42 lines
758 B
42 lines
758 B
4 years ago
|
import { gossips } from './subjects/gossip-grid/data.js'
|
||
|
|
||
|
export const tests = []
|
||
|
|
||
|
tests.push(async ({ page, eq }) => {
|
||
|
// test that the grid is properly generated
|
||
|
|
||
|
const content = await page.$$eval('.gossip', nodes => nodes.map(n => n.textContent))
|
||
|
|
||
|
eq(content, ['Share gossip!', ...gossips])
|
||
|
})
|
||
|
|
||
|
|
||
|
tests.push(async ({ page, eq }) => {
|
||
|
// test that you can add a gossip
|
||
|
|
||
|
return new Promise(()=>{})
|
||
|
})
|
||
|
|
||
|
|
||
|
tests.push(async ({ page, eq }) => {
|
||
|
// test that you can change the width
|
||
|
|
||
|
return new Promise(()=>{})
|
||
|
})
|
||
|
|
||
|
|
||
|
tests.push(async ({ page, eq }) => {
|
||
|
// test that you can change the font-size
|
||
|
|
||
|
return new Promise(()=>{})
|
||
|
})
|
||
|
|
||
|
|
||
|
tests.push(async ({ page, eq }) => {
|
||
|
// test that you can change the background
|
||
|
|
||
|
return new Promise(()=>{})
|
||
|
})
|
||
|
|
||
|
|