mirror of
https://github.com/Kong/insomnia
synced 2024-11-12 17:26:32 +00:00
112a1c8060
* working pass * fix tests * fix await issue with streams * fix test * fix mockbin test * move to main * inso cli test
15 lines
687 B
TypeScript
15 lines
687 B
TypeScript
import { test } from '../../playwright/test';
|
|
|
|
test('can make a mock route', async ({ page }) => {
|
|
test.slow(process.platform === 'darwin' || process.platform === 'win32', 'Slow app start on these platforms');
|
|
await page.getByLabel('New Mock Server').click();
|
|
await page.getByRole('button', { name: 'Create', exact: true }).click();
|
|
await page.getByRole('button', { name: 'New Mock Route' }).click();
|
|
await page.getByText('GET/').click();
|
|
await page.getByTestId('CodeEditor').getByRole('textbox').fill('123');
|
|
|
|
await page.getByRole('button', { name: 'Test' }).click();
|
|
await page.getByRole('tab', { name: 'Timeline' }).click();
|
|
await page.getByText('200').click();
|
|
});
|