playwright-js/tests/testexample.spec.js
2024-09-30 12:08:58 +08:00

15 lines
495 B
JavaScript

// @ts-check
const { test, expect } = require('./common');
test('get started link', async ({ page, homePage }) => {
await page.goto(process.env.BASE_URL);
// Click the get started link.
// await page.getByRole('link', {name: 'Get started'}).click();
// await homePage.clickStart();
await page.waitForTimeout(3000);
// Expects page to have a heading with the name of Installation.
await expect(page.getByRole('button', { name: /登\s录/ })).not.toBeVisible();
});