File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
platforms/web/test-e2e/tests Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,21 @@ Scenario('Spanish title and description are displayed when the locale is `es-ES`
107
107
I . see ( constants . elephantsDreamDescriptionSpanish ) ;
108
108
} ) ;
109
109
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
+
110
125
Scenario ( 'Changing the language is persisted in the localStorage`' , async ( { I } ) => {
111
126
I . restartBrowser ( { locale : 'en-US' } ) ;
112
127
I . useConfig ( testConfigs . basicNoAuth ) ;
You can’t perform that action at this time.
0 commit comments