insomnia/packages/insomnia-smoke-test/tests/smoke/mock.test.ts
Jack Kavanagh 112a1c8060
feat: append to timelines (#7070)
* working pass

* fix tests

* fix await issue with streams

* fix test

* fix mockbin test

* move to main

* inso cli test
2024-02-07 18:51:10 +01:00

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();
});