From bd3f3325c3968ee57c9e00c4c9dfecc36d3f4307 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Gonza=CC=81lez?= Date: Wed, 28 Aug 2024 15:00:20 +0200 Subject: [PATCH] LPD-32763 Back to english language after translation test --- .../playwright/tests/blogs-web/blogEntry.spec.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/test/playwright/tests/blogs-web/blogEntry.spec.ts b/modules/test/playwright/tests/blogs-web/blogEntry.spec.ts index 839d3a5e2d28a7..1436778db077f0 100644 --- a/modules/test/playwright/tests/blogs-web/blogEntry.spec.ts +++ b/modules/test/playwright/tests/blogs-web/blogEntry.spec.ts @@ -317,6 +317,18 @@ test( .map((category) => category.name_i18n['ES-es']) .join('/')}/${title}` ); + + // change back to english language + + await page + .locator('.alert-info', { + hasText: 'InformaciĆ³n: This page is displayed in Spanish', + }) + .waitFor(); + + await page + .getByRole('link', {name: 'Display the page in English'}) + .click(); } );