@@ -22,13 +22,13 @@ export async function waitForFoundryReady(page, timeout = 30000) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Attend que le module Video View Manager soit actif
|
||||
* Attend que le module Scrying Pool soit actif
|
||||
* @param {import('@playwright/test').Page} page - La page Playwright
|
||||
* @param {number} timeout - Timeout en ms (défaut: 15000)
|
||||
*/
|
||||
export async function waitForVVMModule(page, timeout = 15000) {
|
||||
await page.waitForFunction(() => {
|
||||
const module = game.modules?.get?.('video-view-manager');
|
||||
const module = game.modules?.get?.('scrying-pool');
|
||||
return module?.active === true;
|
||||
}, { timeout });
|
||||
}
|
||||
@@ -100,7 +100,7 @@ export async function openPlayerPrivacyPanel(page, userId) {
|
||||
await openFoundrySidebar(page);
|
||||
|
||||
// Naviguer vers les paramètres du module
|
||||
await clickFoundryButton(page, 'button:has-text("Video View Manager")');
|
||||
await clickFoundryButton(page, 'button:has-text("Scrying Pool")');
|
||||
await page.waitForTimeout(1000);
|
||||
|
||||
// Cliquer sur le bouton Player Privacy
|
||||
|
||||
Reference in New Issue
Block a user