add: full multi-tenancy control

This commit is contained in:
Cauê Faleiros
2026-02-02 15:31:15 -03:00
commit c6ec92802b
1711 changed files with 258106 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
/**
* Confirm the modal dialog.
*/
export function confirmModal(message, page) {
return new Promise(async (resolve, reject) => {
await page.waitForSelector("text=" + message);
const agreeButton = await page.locator(
'button.primary-button:has-text("Agree")'
);
if (await agreeButton.isVisible()) {
await agreeButton.click();
resolve(true);
} else {
reject("Agree button not found or not visible.");
}
});
}