@@ -8,7 +8,7 @@ namespace AudioCuesheetEditor.End2EndTests.Pages
88 public class IndexTest : PageTest
99 {
1010 [ TestInitialize ]
11- public async Task TestInitialize ( )
11+ public async Task TestInitializeAsync ( )
1212 {
1313 await Context . Tracing . StartAsync ( new ( )
1414 {
@@ -20,7 +20,7 @@ await Context.Tracing.StartAsync(new()
2020 }
2121
2222 [ TestCleanup ]
23- public async Task TestCleanup ( )
23+ public async Task TestCleanupAsync ( )
2424 {
2525 var failed = new [ ] { UnitTestOutcome . Failed , UnitTestOutcome . Error , UnitTestOutcome . Timeout , UnitTestOutcome . Aborted } . Contains ( TestContext . CurrentTestOutcome ) ;
2626
@@ -35,15 +35,15 @@ await Context.Tracing.StopAsync(new()
3535 }
3636
3737 [ TestMethod ]
38- public async Task HasTitle ( )
38+ public async Task HasTitleAsync ( )
3939 {
4040 await Page . GotoAsync ( "http://localhost:5132/" ) ;
4141 await Expect ( Page ) . ToHaveTitleAsync ( "AudioCuesheetEditor" ) ;
4242 await Expect ( Page . GetByRole ( AriaRole . Button , new ( ) { Name = "AudioCuesheetEditor" } ) ) . ToBeVisibleAsync ( ) ;
4343 }
4444
4545 [ TestMethod ]
46- public async Task CheckSettings ( )
46+ public async Task CheckSettingsAsync ( )
4747 {
4848 await Page . GotoAsync ( "http://localhost:5132/" ) ;
4949 await Page . GetByRole ( AriaRole . Toolbar ) . GetByRole ( AriaRole . Button ) . Filter ( new ( ) { HasTextRegex = new Regex ( "^$" ) } ) . Nth ( 3 ) . ClickAsync ( ) ;
@@ -52,7 +52,7 @@ public async Task CheckSettings()
5252 }
5353
5454 [ TestMethod ]
55- public async Task Record ( )
55+ public async Task RecordAsync ( )
5656 {
5757 await Page . GotoAsync ( "http://localhost:5132/" ) ;
5858 await Page . GetByText ( "Record view" ) . ClickAsync ( ) ;
@@ -76,7 +76,7 @@ public async Task Record()
7676 }
7777
7878 [ TestMethod ]
79- public async Task Import ( )
79+ public async Task ImportAsync ( )
8080 {
8181 await Page . GotoAsync ( "http://localhost:5132/" ) ;
8282 await Page . GetByText ( "Import view" ) . ClickAsync ( ) ;
@@ -88,5 +88,18 @@ public async Task Import()
8888 await Page . GetByRole ( AriaRole . Textbox , new ( ) { Name = "Cuesheet title" } ) . ClickAsync ( ) ;
8989 await Expect ( Page . GetByRole ( AriaRole . Group ) . Filter ( new ( ) { HasText = "AudiofileAudiofile Search" } ) . Locator ( "input[type=\" file\" ]" ) ) . ToBeEmptyAsync ( ) ;
9090 }
91+
92+ [ TestMethod ]
93+ public async Task ChangeLanguageAsync ( )
94+ {
95+ await Page . GotoAsync ( "http://localhost:5132/" ) ;
96+ await Page . GetByRole ( AriaRole . Button , new ( ) { Name = "Change language" } ) . ClickAsync ( ) ;
97+ await Page . GetByText ( "German (Germany)" ) . ClickAsync ( ) ;
98+ await Expect ( Page . GetByRole ( AriaRole . Heading , new ( ) { Name = "Abschnitte" } ) ) . ToBeVisibleAsync ( ) ;
99+ await Expect ( Page . GetByRole ( AriaRole . Heading , new ( ) { Name = "Allgemeine Informationen" } ) ) . ToBeVisibleAsync ( ) ;
100+ await Expect ( Page . GetByText ( "Aufnahmeansicht" ) ) . ToBeVisibleAsync ( ) ;
101+ await Expect ( Page . GetByRole ( AriaRole . Heading , new ( ) { Name = "Titel" } ) ) . ToBeVisibleAsync ( ) ;
102+ await Expect ( Page . GetByRole ( AriaRole . Heading , new ( ) { Name = "Wiedergabe" } ) ) . ToBeVisibleAsync ( ) ;
103+ }
91104 }
92105}
0 commit comments