diff --git a/tests/e2e/specs/drupal/webforms.spec.ts b/tests/e2e/specs/drupal/webforms.spec.ts index d4fb48a29..d099cd505 100644 --- a/tests/e2e/specs/drupal/webforms.spec.ts +++ b/tests/e2e/specs/drupal/webforms.spec.ts @@ -8,6 +8,7 @@ test('Webforms work', async ({ page }) => { // Webform can be submitted. await page .frameLocator('.silverback-iframe iframe') + .last() .getByRole('button', { name: 'Send message' }) .click(); @@ -29,6 +30,7 @@ test('Webforms work', async ({ page }) => { await page.goto(websiteUrl('/de/blocks-complete')); await page .frameLocator('.silverback-iframe iframe') + .last() .getByRole('button', { name: 'Send message' }) .click(); // TODO: Find out why it does not work.