mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 23:00:30 +00:00
23 lines
1.2 KiB
TypeScript
23 lines
1.2 KiB
TypeScript
import { test } from '../../playwright/test';
|
|
|
|
test.describe('design document operations', async () => {
|
|
test('can name design documents', async ({ page }) => {
|
|
await page.getByRole('button', { name: ' New Document' }).click();
|
|
await page.getByPlaceholder('my-spec.yaml').fill('jurassic park');
|
|
await page.getByPlaceholder('my-spec.yaml').press('Enter');
|
|
await page.getByTestId('project').click();
|
|
await page.getByLabel('jurassic park').click();
|
|
});
|
|
|
|
test('can delete a test suite with confirmation modal', async ({ page }) => {
|
|
await page.getByRole('button', { name: ' New Document' }).click();
|
|
await page.getByPlaceholder('my-spec.yaml').fill('jurassic park');
|
|
await page.getByPlaceholder('my-spec.yaml').press('Enter');
|
|
await page.getByTestId('workspace-test').click();
|
|
await page.getByText('New test suite').click();
|
|
await page.getByLabel('Test Suites').getByLabel('Project Actions').click();
|
|
await page.getByRole('menuitemradio', { name: 'Delete suite' }).click();
|
|
await page.locator('.modal__content').getByRole('button', { name: 'Delete' }).click();
|
|
});
|
|
});
|