docs(intro-js): make js and ts example consistent (#7651)

This commit is contained in:
Nav-2d 2021-07-15 10:25:36 -07:00 committed by GitHub
parent 1b92c674f9
commit ac8ad1050e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -267,6 +267,9 @@ test('my test', async ({ page }) => {
// Expect an attribute "to be strictly equal" to the value.
expect(await page.getAttribute('text=Get Started', 'href')).toBe('/docs/intro');
// Expect an element "to be visible".
expect(await page.isVisible('text=Learn more')).toBeTruthy();
await page.click('text=Get Started');
// Expect some text to be visible on the page.
expect(await page.waitForSelector('text=System requirements')).toBeTruthy();