diff options
Diffstat (limited to 'plugins/PrivacyManager/tests/UI/PrivacyManager_spec.js')
-rw-r--r-- | plugins/PrivacyManager/tests/UI/PrivacyManager_spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/PrivacyManager/tests/UI/PrivacyManager_spec.js b/plugins/PrivacyManager/tests/UI/PrivacyManager_spec.js index 746006d906..a0c7447cb2 100644 --- a/plugins/PrivacyManager/tests/UI/PrivacyManager_spec.js +++ b/plugins/PrivacyManager/tests/UI/PrivacyManager_spec.js @@ -63,7 +63,7 @@ describe("PrivacyManager", function () { async function deleteDataSubjects() { - await page.click('.deleteDataSubjects input'); + await page.evaluate(() => $('.deleteDataSubjects input').click()); await page.waitFor(500); // wait for animation } @@ -267,7 +267,7 @@ describe("PrivacyManager", function () { it('should ask for confirmation before deleting any visit', async function() { await deleteDataSubjects(); - const modal = await page.$('.modal.open'); + const modal = await page.waitFor('.modal.open', { visible: true }); expect(await modal.screenshot()).to.matchImage('gdpr_tools_delete_visit_unconfirmed'); }); |