File tree Expand file tree Collapse file tree
AudioCuesheetEditor.End2EndTests/Pages Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,7 +75,19 @@ public async Task Record()
7575 await Expect ( Page . GetByRole ( AriaRole . Cell , new ( ) { Name = "Test Track 2 Artist Clear" } ) ) . ToBeVisibleAsync ( ) ;
7676 await Expect ( Page . GetByRole ( AriaRole . Cell , new ( ) { Name = "Test Track 2 Title Clear" } ) ) . ToBeVisibleAsync ( ) ;
7777 }
78- //TODO: Change language test
78+
79+ [ TestMethod ]
80+ public async Task ChangeLanguage ( )
81+ {
82+ // We need to use a new context because the default one doesn't work with changing a language
83+ var context = await Browser . NewContextAsync ( ) ;
84+ var page = await context . NewPageAsync ( ) ;
85+ await page . GotoAsync ( "http://localhost:5132/" ) ;
86+ await page . GetByRole ( AriaRole . Button , new ( ) { Name = "Change language" } ) . ClickAsync ( ) ;
87+ await page . Locator ( "div" ) . Filter ( new ( ) { HasTextRegex = new Regex ( "^German \\ (Germany\\ )$" ) } ) . ClickAsync ( ) ;
88+ await Expect ( page . Locator ( "#app" ) ) . ToContainTextAsync ( "Allgemeine Informationen" ) ;
89+ }
90+
7991 //TODO: Import sample cuesheet test
8092 }
8193}
You can’t perform that action at this time.
0 commit comments