add test for URL being focused on first time user experience (#4385)

* add test for URL being focused on first time user experience

* fix lint

* rm commented code
This commit is contained in:
Filipe Freire 2022-01-26 12:31:01 +00:00 committed by GitHub
parent 7e1bdfc66f
commit ee04eb0c7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,14 @@
import { expect } from '@playwright/test';
import { loadFixture } from '../playwright/paths';
import { test } from '../playwright/test';
test('url field is focused for first time users', async ({ page }) => {
const urlInput = ':nth-match(textarea, 2)';
const locator = page.locator(urlInput);
await expect(locator).toBeFocused();
});
test('can send requests', async ({ app, page }) => {
await page.click('[data-testid="project"]');
await page.click('text=Create');