Skip to content

Commit

Permalink
remove preview from smoke tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkav authored and gatzjames committed Nov 24, 2022
1 parent 89afcd7 commit 0ddb46e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ test.describe('Design interactions', async () => {
await page.click('div[role="dialog"] >> text=Design Document');
await page.click('text=DocumentSmoke Test API server 1.0.0v1.0.0OpenAPI 3.0.0just now');

// Renders the spec code and preview
// Renders the spec code
const codeEditor = page.locator('.pane-one');
await expect(codeEditor).toContainText('openapi: 3.0.0');
const specPreview = page.locator('.information-container');
await expect(specPreview).toContainText('this is an example description in an OpenAPI Doc');

// Created requests from spec
await page.locator('text=Debug').click();
Expand Down
2 changes: 0 additions & 2 deletions packages/insomnia-smoke-test/tests/smoke/openapi.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ test('can render Spectral OpenAPI lint errors', async ({ page }) => {

const codeEditor = page.locator('.pane-one');
await expect(codeEditor).toContainText('openapi: 3.0.0');
const specPreview = page.locator('.information-container');
await expect(specPreview).toContainText('This is a sample server Petstore server');

// Cause a lint error
await page.locator('[data-testid="CodeEditor"] >> text=info').click();
Expand Down

0 comments on commit 0ddb46e

Please sign in to comment.