mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
fix prerelease tests
This commit is contained in:
parent
c31f0a17f6
commit
a8e436ea1d
@ -30,7 +30,6 @@ test.describe('Debug-Sidebar', async () => {
|
|||||||
await page.getByRole('button', { name: 'example grpc' }).click();
|
await page.getByRole('button', { name: 'example grpc' }).click();
|
||||||
await page.locator('[data-testid="Dropdown-example-grpc"]').click();
|
await page.locator('[data-testid="Dropdown-example-grpc"]').click();
|
||||||
await page.getByRole('menuitem', { name: 'Settings' }).click();
|
await page.getByRole('menuitem', { name: 'Settings' }).click();
|
||||||
await page.getByRole('tab', { name: 'Preview' }).click();
|
|
||||||
// Close settings modal
|
// Close settings modal
|
||||||
await page.locator('.app').press('Escape');
|
await page.locator('.app').press('Escape');
|
||||||
});
|
});
|
||||||
@ -61,8 +60,8 @@ test.describe('Debug-Sidebar', async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('Open properties of the collection', async ({ page }) => {
|
test('Open properties of the collection', async ({ page }) => {
|
||||||
await page.getByRole('button', { name: 'simple' }).click();
|
await page.getByTestId('workspace-dropdown').locator('button').click();
|
||||||
await page.getByRole('menuitem', { name: 'Collection Settings' }).click();
|
await page.getByRole('menuitem', { name: 'Settings' }).click();
|
||||||
await page.getByText('Collection Settings').click();
|
await page.getByText('Collection Settings').click();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ test.describe('Plugins', async () => {
|
|||||||
await expect(page.locator('.app')).toContainText('This is a sample server Petstore server');
|
await expect(page.locator('.app')).toContainText('This is a sample server Petstore server');
|
||||||
|
|
||||||
// Open declarative config
|
// Open declarative config
|
||||||
await page.getByRole('button', { name: 'New Document' }).click();
|
await page.getByTestId('workspace-dropdown').locator('button').click();
|
||||||
await page.getByRole('menuitem', { name: 'Declarative Config (Legacy)' }).click();
|
await page.getByRole('menuitem', { name: 'Declarative Config (Legacy)' }).click();
|
||||||
// Check for declarative config contents
|
// Check for declarative config contents
|
||||||
await page.getByText('_format_version').click();
|
await page.getByText('_format_version').click();
|
||||||
|
@ -106,6 +106,7 @@ export const WorkspaceDropdown: FC = () => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Dropdown
|
<Dropdown
|
||||||
|
dataTestId='workspace-dropdown'
|
||||||
aria-label="Workspace Dropdown"
|
aria-label="Workspace Dropdown"
|
||||||
ref={dropdownRef}
|
ref={dropdownRef}
|
||||||
closeOnSelect={false}
|
closeOnSelect={false}
|
||||||
|
Loading…
Reference in New Issue
Block a user