chore: include "playwright" keyword, add examples (#196)
This commit is contained in:
parent
5c2e11017d
commit
e7c7709b33
5 changed files with 58 additions and 11 deletions
|
|
@ -31,7 +31,7 @@ async function createTab(client: Client, title: string, body: string) {
|
|||
|
||||
test('create new tab', async ({ client }) => {
|
||||
expect(await createTab(client, 'Tab one', 'Body one')).toHaveTextContent(`
|
||||
- Ran code:
|
||||
- Ran Playwright code:
|
||||
\`\`\`js
|
||||
// <internal code to open a new tab>
|
||||
\`\`\`
|
||||
|
|
@ -49,7 +49,7 @@ test('create new tab', async ({ client }) => {
|
|||
\`\`\``);
|
||||
|
||||
expect(await createTab(client, 'Tab two', 'Body two')).toHaveTextContent(`
|
||||
- Ran code:
|
||||
- Ran Playwright code:
|
||||
\`\`\`js
|
||||
// <internal code to open a new tab>
|
||||
\`\`\`
|
||||
|
|
@ -77,7 +77,7 @@ test('select tab', async ({ client }) => {
|
|||
index: 2,
|
||||
},
|
||||
})).toHaveTextContent(`
|
||||
- Ran code:
|
||||
- Ran Playwright code:
|
||||
\`\`\`js
|
||||
// <internal code to select tab 2>
|
||||
\`\`\`
|
||||
|
|
@ -105,7 +105,7 @@ test('close tab', async ({ client }) => {
|
|||
index: 3,
|
||||
},
|
||||
})).toHaveTextContent(`
|
||||
- Ran code:
|
||||
- Ran Playwright code:
|
||||
\`\`\`js
|
||||
// <internal code to close tab 3>
|
||||
\`\`\`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue