Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

test(settings): await desktop footer actions before measuring [skip version]

Juan Denis2fd6f3c97c32
diff --git a/frontend/scripts/settings-ui-browser.mjs b/frontend/scripts/settings-ui-browser.mjs
index 7b2d55bc..f1a1215b 100644
--- a/frontend/scripts/settings-ui-browser.mjs
+++ b/frontend/scripts/settings-ui-browser.mjs
@@ -157,6 +157,10 @@ try {
await page.getByRole('heading', { name: 'Notification Channels' }).waitFor();
assert.equal(await page.getByRole('switch', { name: 'Slack', exact: true }).count(), 0);
assert.equal(await page.getByRole('checkbox').count(), 0);
+ await Promise.all([
+ page.getByRole('button', { name: 'Send Test Notification' }).waitFor({ state: 'visible' }),
+ page.getByRole('button', { name: 'Save Preferences' }).waitFor({ state: 'visible' }),
+ ]);
const testButton = await page.getByRole('button', { name: 'Send Test Notification' }).boundingBox();
const saveButton = await page.getByRole('button', { name: 'Save Preferences' }).boundingBox();
const footer = await page.locator('.settings-actions--footer').boundingBox();