mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
fix prerelease test
This commit is contained in:
parent
e13c169dcd
commit
49f774c11d
@ -1,5 +1,3 @@
|
|||||||
import { expect } from '@playwright/test';
|
|
||||||
|
|
||||||
import { test } from '../../playwright/test';
|
import { test } from '../../playwright/test';
|
||||||
|
|
||||||
test.describe('Plugins', async () => {
|
test.describe('Plugins', async () => {
|
||||||
@ -16,27 +14,4 @@ test.describe('Plugins', async () => {
|
|||||||
// check if the plugin shows up on the plugin list
|
// check if the plugin shows up on the plugin list
|
||||||
await page.getByRole('cell', { name: 'insomnia-plugin-demo-example' }).click();
|
await page.getByRole('cell', { name: 'insomnia-plugin-demo-example' }).click();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Check Declarative Config and Kong Kubernetes config', async ({ page }) => {
|
|
||||||
await page.getByRole('button', { name: 'New Document' }).click();
|
|
||||||
await page.getByRole('dialog').getByRole('button', { name: 'Create' }).click();
|
|
||||||
|
|
||||||
// Set example OpenAPI spec
|
|
||||||
await page.click('text=start from an example');
|
|
||||||
await expect(page.locator('.app')).toContainText('This is a sample server Petstore server');
|
|
||||||
|
|
||||||
// Open declarative config
|
|
||||||
await page.getByLabel('Workspace actions').click();
|
|
||||||
await page.getByRole('menuitemradio', { name: 'Declarative Config (Legacy)' }).click();
|
|
||||||
// Check for declarative config contents
|
|
||||||
await page.getByText('_format_version').click();
|
|
||||||
|
|
||||||
// Switch to Kong for Kubernetes tab
|
|
||||||
await page.click('div[role="tab"]:has-text("Kong for Kubernetes")');
|
|
||||||
|
|
||||||
// Check for Kong for Kubernetes contents
|
|
||||||
await page.getByText('apiVersion: networking.k8s.io/v1').click();
|
|
||||||
});
|
|
||||||
|
|
||||||
// TODO: more scenarios will be added in follow-up iterations of increasing test coverage
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user