-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(create-playwright): add option to add examples #8963
feat(create-playwright): add option to add examples #8963
Conversation
523fd40
to
a416ee1
Compare
packages/create-playwright/assets/examples/2-element-selectors.spec.ts
Outdated
Show resolved
Hide resolved
packages/create-playwright/assets/examples/2-element-selectors.spec.ts
Outdated
Show resolved
Hide resolved
packages/create-playwright/assets/examples/5-file-uploads.spec.ts
Outdated
Show resolved
Hide resolved
packages/create-playwright/assets/examples/7-mock-network-requests.spec.ts
Outdated
Show resolved
Hide resolved
5079e90
to
1e73ea4
Compare
0ae5023
to
fb5b408
Compare
packages/create-playwright/assets/examples/2-element-selectors.spec.ts
Outdated
Show resolved
Hide resolved
packages/create-playwright/assets/examples/2-element-selectors.spec.ts
Outdated
Show resolved
Hide resolved
packages/create-playwright/assets/examples/3-assertions.spec.ts
Outdated
Show resolved
Hide resolved
packages/create-playwright/assets/examples/3-assertions.spec.ts
Outdated
Show resolved
Hide resolved
packages/create-playwright/assets/examples/playwright.config.ts
Outdated
Show resolved
Hide resolved
d48f106
to
1804836
Compare
91370b6
to
d1026bf
Compare
a9aec5d
to
add9576
Compare
add9576
to
4bcf4cc
Compare
packages/create-playwright/assets/examples/5-pom/2-pom-fixtures.spec.ts
Outdated
Show resolved
Hide resolved
packages/create-playwright/assets/examples/5-pom/2-pom-fixtures.ts
Outdated
Show resolved
Hide resolved
packages/create-playwright/assets/examples/5-networking.spec.ts
Outdated
Show resolved
Hide resolved
packages/create-playwright/assets/examples/5-networking.spec.ts
Outdated
Show resolved
Hide resolved
0f04fc1
to
6aa61e2
Compare
6aa61e2
to
1e9fc93
Compare
await inputBox.fill('Learn Playwright'); | ||
await inputBox.press('Enter'); | ||
await expect(todoList).toHaveText('Learn Playwright'); | ||
await page.locator('.filters >> text=Completed').click(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps just text=Completed
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
strict mode would kick in, there is also an element called "All Completed"
packages/create-playwright/assets/examples/4-file-uploads.spec.ts
Outdated
Show resolved
Hide resolved
packages/create-playwright/assets/examples/pom/pom-with-fixtures.spec.ts
Show resolved
Hide resolved
@@ -0,0 +1,3 @@ | |||
<object data="header.html" style="width: 100%; height: 200px;"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why object
? I guess I am missing something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed to iframe instead, reason is so that we have a unified header across all the pages.
Fixes #8892