Skip to content

Commit 12bf839

Browse files
feat: additional test for movie details page
1 parent 023472c commit 12bf839

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

platforms/web/test-e2e/tests/language_test.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,21 @@ Scenario('Spanish title and description are displayed when the locale is `es-ES`
107107
I.see(constants.elephantsDreamDescriptionSpanish);
108108
});
109109

110+
Scenario('Changing language to Spanish on movie details page updates title and description', async ({ I }) => {
111+
I.restartBrowser({ locale: 'en-GB' });
112+
I.useConfig(testConfigs.basicNoAuth);
113+
await assertActiveLanguage(I, 'en');
114+
115+
I.amOnPage(constants.baseUrl);
116+
await I.openVideoCard(constants.agent327Title);
117+
I.see(constants.agent327Title);
118+
I.see(constants.agent327Description);
119+
120+
switchLanguage(I, 'es');
121+
I.see(constants.agent327TitleSpanish);
122+
I.see(constants.agent327DescriptionSpanish);
123+
});
124+
110125
Scenario('Changing the language is persisted in the localStorage`', async ({ I }) => {
111126
I.restartBrowser({ locale: 'en-US' });
112127
I.useConfig(testConfigs.basicNoAuth);

0 commit comments

Comments
 (0)