fix(playwright): remove unnecessary awaits (#1239)

`page.locator` is a synchronous method.
This commit is contained in:
Brian Donovan authored and GitHub committed 2023-07-24 11:36:16 -05:00
1 parent fad3272afb
commit b51ffa0590
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -9,7 +9,7 @@ test('button click', async ({ page }) => {
await expect(main).toContainText('hello axum! 12345');
// Click the increment button.
let button = await page.locator('button.increment-button');
let button = page.locator('button.increment-button');
await button.click();
// Expect the page to contain the updated counter text.
@@ -24,7 +24,7 @@ test('fullstack communication', async ({ page }) => {
await expect(main).toContainText('Server said: ...');
// Click the increment button.
let button = await page.locator('button.server-button');
let button = page.locator('button.server-button');
await button.click();
// Expect the page to contain the updated counter text.
+2 -2
View File
@@ -9,7 +9,7 @@ test('button click', async ({ page }) => {
await expect(main).toContainText('hello axum! 0');
// Click the increment button.
let button = await page.locator('button.increment-button');
let button = page.locator('button.increment-button');
await button.click();
// Expect the page to contain the updated counter text.
@@ -80,7 +80,7 @@ test('eval', async ({ page }) => {
await expect(div).toHaveText('');
// Click the button to run the eval.
let button = await page.locator('button.eval-button');
let button = page.locator('button.eval-button');
await button.click();
// Check that the title changed.