Notification permissions (#9449)

* Updated type hints

* Fix tooltip bug

* Check user when sending notification

* Fix test

* Update unit test

* More unit test fixes

* Tweak playwright tests
This commit is contained in:
Oliver authored and GitHub committed 2025-04-05 10:30:58 +11:00
1 parent f66efa7733
commit 544a3c6263
10 files changed
+141 -59

No files matched your search

+8 -3
View File
@@ -75,9 +75,14 @@ test('Plugins - Functionality', async ({ browser }) => {
// Activate the plugin
const cell = await page.getByText('Sample API Caller', { exact: true });
await clickOnRowMenu(cell);
await page.getByRole('menuitem', { name: 'Activate' }).click();
await page.getByRole('button', { name: 'Submit' }).click();
await page.getByText('The plugin was activated').waitFor();
await page.waitForTimeout(100);
// Activate the plugin (unless already activated)
if ((await page.getByRole('menuitem', { name: 'Deactivate' }).count()) == 0) {
await page.getByRole('menuitem', { name: 'Activate' }).click();
await page.getByRole('button', { name: 'Submit' }).click();
await page.getByText('The plugin was activated').waitFor();
}
// Deactivate the plugin again
await clickOnRowMenu(cell);