mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
6dffc7fcf2
* 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>
16 lines
532 B
TypeScript
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();
|
|
});
|