forked from nullstack/nullstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTypesScript.test.js
More file actions
32 lines (26 loc) · 972 Bytes
/
TypesScript.test.js
File metadata and controls
32 lines (26 loc) · 972 Bytes
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
32
beforeAll(async () => {
await page.goto('http://localhost:6969/typescript');
});
describe('UnderscoredAttributes', () => {
test('context has types', async () => {
await page.waitForSelector('[data-initiated]');
const element = await page.$('[data-initiated]');
expect(element).toBeTruthy();
});
test('context can be extended', async () => {
await page.click('button[value="1"]');
await page.waitForSelector('[data-count="2"]');
const element = await page.$('[data-count="2"]');
expect(element).toBeTruthy();
});
test('inner components work on nts files', async () => {
await page.waitForSelector('[data-inner-component]');
const element = await page.$('[data-inner-component]');
expect(element).toBeTruthy();
});
test('bind should work on nts files', async () => {
await page.waitForSelector('[bind="count"]');
const element = await page.$('[bind="count"]');
expect(element).toBeTruthy();
});
});