insomnia/packages/insomnia-smoke-test/tests/prerelease/preferences-interactions.test.ts
kreosus 6dffc7fcf2
Preferences prelease test (#5603)
* Added Open Generate code and copy as curl test

* Improvements to the Generate code test

* added tests for preferences

* fixed selectors

* fixed test selectors

* removed extra whitespace

* fix lint

* Improve a bit the preferences tests

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2023-01-04 17:10:31 +00:00

16 lines
532 B
TypeScript

import { test } from '../../playwright/test';
test('Preferences through click', async ({ page }) => {
await page.locator('[data-testid="settings-button"]').click();
await page.locator('text=Insomnia Preferences').first().click();
});
test('Preferences through keyboard shortcut', async ({ page }) => {
if (process.platform === 'darwin') {
await page.locator('.app').press('Meta+,');
} else {
await page.locator('.app').press('Control+,');
}
await page.locator('text=Insomnia Preferences').first().click();
});