-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathParentComponent.test.js
More file actions
31 lines (26 loc) · 1 KB
/
ParentComponent.test.js
File metadata and controls
31 lines (26 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
beforeAll(async () => {
await page.goto('http://localhost:6969/parent-component')
})
describe('ParentComponent', () => {
test('Nullstack is auto imported when using inheritance', async () => {
const element = await page.$('[data-current="ParentComponent"]')
expect(element).toBeTruthy()
})
test('inner components are overridable', async () => {
const element = await page.$('[data-current="ParentComponent"]')
expect(element).toBeTruthy()
})
test('server functions are bound to the class', async () => {
const element = await page.$('[data-parent-this]')
expect(element).toBeTruthy()
})
test('server functions are bound to the class', async () => {
const element = await page.$('[data-parent-this]')
expect(element).toBeTruthy()
})
test('server functions are bound to the class in spa', async () => {
await page.waitForSelector('[data-hydrated-parent-this]')
const element = await page.$('[data-hydrated-parent-this]')
expect(element).toBeTruthy()
})
})