(page: Page)
| 14 | afterAll(stopServer); |
| 15 | |
| 16 | const exerciseCountriesDemo = async (page: Page): Promise<void> => { |
| 17 | await (await expectedFramedElement(page, '.filter', '★8')).click(); |
| 18 | await expectedFramedElement(page, '#countries .country', 'United Kingdom'); |
| 19 | await expectNoFramedElement(page, '#countries .country', 'Bahamas'); |
| 20 | await ( |
| 21 | await expectedFramedElement(page, '#countries .country .star', '★') |
| 22 | ).click(); |
| 23 | await expectedFramedElement(page, '.filter', '★7'); |
| 24 | await expectNoFramedElement(page, '#countries .country', 'United Kingdom'); |
| 25 | const b = await expectedFramedElement(page, '.filter', 'B21'); |
| 26 | await expectProperty(b, 'className', 'filter'); |
| 27 | await b.click(); |
| 28 | await expectProperty(b, 'className', 'filter current'); |
| 29 | await expectedFramedElement(page, '#countries .country', 'Bahamas'); |
| 30 | await ( |
| 31 | await expectedFramedElement(page, '#countries .country .star', '☆') |
| 32 | ).click(); |
| 33 | await (await expectedFramedElement(page, '.filter', '★8')).click(); |
| 34 | await expectedFramedElement(page, '#countries .country', 'Bahamas'); |
| 35 | await page.reload(); |
| 36 | await expectedFramedElement(page, '#countries .country', 'Bahamas'); |
| 37 | }; |
| 38 | |
| 39 | test('countries-react', async ({page}) => { |
| 40 | await expectPage(page, `/demos/countries/countries-react/`); |
no test coverage detected
searching dependent graphs…