Testing Collaborator Invitation Workflow in Insomnia
This test suite validates the user invitation functionality in the Insomnia application using Playwright. It focuses on testing the collaborative features by verifying invitation workflows and handling edge cases in the user management system.
Test Coverage Overview
Implementation Analysis
Technical Details
Best Practices Demonstrated
kong/insomnia
packages/insomnia-smoke-test/tests/smoke/invite.test.ts
import { expect } from '@playwright/test';
import { test } from '../../playwright/test';
test('Can invite users in app', async ({ page }) => {
await page.getByLabel('Invite collaborators').click();
// have 5 members
await expect(page.getByLabel('Invitation list').getByRole('option')).toHaveCount(5);
// invite a new member
await page.getByPlaceholder('Enter emails, separated by').click();
await page.getByPlaceholder('Enter emails, separated by').fill('[email protected]');
await page.getByRole('button', { name: 'Invite', exact: true }).click();
await expect(page.getByRole('dialog')).toContainText('Failed to fetch available seats');
});