feat(KAN-52): add server selection and isolated native sessions

This commit is contained in:
2026-09-16 18:58:49 +02:00
parent 0f62445c3e
commit 1be2d06ff4
13 changed files with 988 additions and 183 deletions
+7 -9
View File
@@ -68,16 +68,14 @@ try {
]) {
await open(path);
await page
.getByRole('button', {
name: theme === 'light' ? 'Light' : 'Dark',
exact: true,
.getByRole('radio', {
name: theme === 'light' ? /^Light / : /^Dark /,
})
.click();
.press('Space');
await page
.getByRole('button', {
name: theme === 'light' ? 'Light' : 'Dark',
exact: true,
pressed: true,
.getByRole('radio', {
name: theme === 'light' ? /^Light / : /^Dark /,
checked: true,
})
.waitFor();
assert.equal(
@@ -118,7 +116,7 @@ try {
}
await page.setViewportSize({ width: 390, height: 480 });
await open('/login');
await page.getByRole('button', { name: 'System', exact: true }).click();
await page.getByRole('radio', { name: /^System / }).press('Space');
await page.emulateMedia({ colorScheme: 'light' });
await page.waitForFunction(
() => !document.documentElement.classList.contains('dark'),