-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathIsomorphicStartup.test.js
More file actions
29 lines (25 loc) · 1.05 KB
/
IsomorphicStartup.test.js
File metadata and controls
29 lines (25 loc) · 1.05 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
beforeAll(async () => {
await page.goto('http://localhost:6969/isomorphic-startup')
})
describe('RemoveStart', () => {
test('the client context can be updated at start', async () => {
await page.waitForSelector('[data-client-start-value]')
const element = await page.$('[data-client-start-value]')
expect(element).toBeTruthy()
})
test('the client context is reactive at start', async () => {
await page.waitForSelector('[data-client-start-timed-value]')
const element = await page.$('[data-client-start-timed-value]')
expect(element).toBeTruthy()
})
test('the server context can be updated at start', async () => {
await page.waitForSelector('[data-server-start-value]')
const element = await page.$('[data-server-start-value]')
expect(element).toBeTruthy()
})
test('the context start should run only once', async () => {
await page.waitForSelector('[data-client-start-incremental-value="1"]')
const element = await page.$('[data-client-start-incremental-value="1"]')
expect(element).toBeTruthy()
})
})