mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-23 18:26:55 +00:00
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:
1 parent
f66efa7733
commit
544a3c6263
10 files changed
+141
-59
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user