mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
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:
parent
7e1bdfc66f
commit
ee04eb0c7d
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user