Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
4 changes: 2 additions & 2 deletions e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "commonjs",
"scripts": {
"lint": "pnpm prettier --check './tests/**.ts' './utils/**/*.ts' && pnpm eslint './tests/**.ts' './utils/**/*.ts'",
"fix": "pnpm prettier -w './tests/**.ts' './utils/**/*.ts' && pnpm eslint --fix ./tests/**/*.ts ./utils/**/*.ts",
"fix": "pnpm prettier -w ./tests/**/*.ts ./utils/**/*.ts && pnpm eslint --fix ./tests/**/*.ts ./utils/**/*.ts",
"test": "pnpm playwright test"
},
"keywords": [],
Expand Down Expand Up @@ -42,4 +42,4 @@
"volta": {
"node": "19.9.0"
}
}
}
2 changes: 1 addition & 1 deletion e2e/tests/vpn/networkdevice.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ test.describe('Network devices', () => {

// Check if the device is really there
await page.goto(routes.base + routes.admin.devices);
const deviceList = await page.locator('#devices-page-devices-list').first();
const deviceList = page.locator('#devices-page-devices-list').first();
const deviceRows = deviceList.locator('.device-row');
await expect(deviceRows).toHaveCount(1);
const deviceRow = await getDeviceRow({ page, deviceName });
Expand Down
7 changes: 5 additions & 2 deletions e2e/utils/controllers/vpn/createNetworkDevice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,14 @@ export const createNetworkDevice = async (
const context = await browser.newContext();
const page = await context.newPage();
await loginBasic(page, user);
await page.goto(routes.base + routes.admin.devices);
await page.goto(routes.base + routes.admin.devices, {
waitUntil: 'networkidle',
});
await page.getByRole('button', { name: 'Add new' }).click();
const configCard = page.locator('#add-standalone-device-modal');
await configCard.waitFor({ state: 'visible' });
// select native-wg method
await configCard.getByTestId('standalone-device-choice-card-manual').click();
await page.getByTestId('standalone-device-choice-card-manual').click();
await configCard.getByRole('button', { name: 'Next' }).click();
const deviceNameInput = configCard.getByTestId('field-name');
await deviceNameInput.fill(device.name);
Expand Down