forked from ietf-tools/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathad.spec.js
More file actions
26 lines (22 loc) · 860 Bytes
/
ad.spec.js
File metadata and controls
26 lines (22 loc) · 860 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
const { test, expect } = require('@playwright/test')
const viewports = require('../../helpers/viewports')
// ====================================================================
// IESG Dashboard
// ====================================================================
test.describe('/doc/ad/', () => {
test.beforeEach(async ({ page }) => {
await page.setViewportSize({
width: viewports.desktop[0],
height: viewports.desktop[1]
})
await page.goto('/doc/ad/')
})
test('Pre pubreq', async ({ page }) => {
const tablesLocator = page.locator('table')
const tablesCount = await tablesLocator.count()
expect(tablesCount).toBeGreaterThan(0)
const firstTable = tablesLocator.nth(0)
const theadTexts = await firstTable.locator('thead').allInnerTexts()
expect(theadTexts.join('')).toContain('Pre pubreq')
})
})