mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-22 15:18:27 -04:00
INS-2087 Prelease Test for Plugins (#5337)
Co-authored-by: Filipe Freire <filipe.r.freire@gmail.com> Co-authored-by: Filipe Freire <filipe.r.freire@gmail.com>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import { expect } from '@playwright/test';
|
||||
|
||||
import { test } from '../../playwright/test';
|
||||
|
||||
test.describe('Plugins', async () => {
|
||||
test('Open plugins menu and generate plugin', async ({ page }) => {
|
||||
// Opening settings
|
||||
await page.locator('[data-testid="settings-button"]').click();
|
||||
// Switching to Plugins tab
|
||||
await page.locator('li[role="tab"]:has-text("Plugins")').click();
|
||||
|
||||
// Generate new plugin
|
||||
await page.locator('text=Generate New Plugin').click();
|
||||
await page.locator('text=Generate').first().click();
|
||||
|
||||
// check if the plugin shows up on the plugin list
|
||||
await expect(page.locator('.app')).toContainText('insomnia-plugin-demo-example');
|
||||
});
|
||||
|
||||
// TODO: more scenarios will be added in follow-up iterations of increasing test coverage
|
||||
});
|
||||
Reference in New Issue
Block a user