File tree Expand file tree Collapse file tree
AudioCuesheetEditor.End2EndTests/Models Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,17 +48,23 @@ internal async Task EditTrackAsync(string? artist = null, string? title = null)
4848 {
4949 await _page . Locator ( "td:nth-child(3)" ) . ClickAsync ( ) ;
5050 await _page . Locator ( "td:nth-child(3)" ) . Last . GetByRole ( AriaRole . Textbox ) . FillAsync ( artist ) ;
51+ // Autocomplete overlay will pop up, so we close it
5152 await _page . Locator ( ".mud-popover-open" ) . WaitForAsync ( new ( ) { State = WaitForSelectorState . Visible } ) ;
5253 await _page . Keyboard . PressAsync ( "Escape" ) ;
54+ await _page . Locator ( ".mud-popover-open" ) . WaitForAsync ( new ( ) { State = WaitForSelectorState . Detached } ) ;
55+ // Click outside the autocomplete to have an focus lost event for getting the value written to model
5356 await _page . GetByRole ( AriaRole . Heading , new ( ) { Name = "Playback" } ) . ClickAsync ( ) ;
5457 await _page . WaitForTimeoutAsync ( 100 ) ;
5558 }
5659 if ( title != null )
5760 {
5861 await _page . Locator ( "td:nth-child(4)" ) . ClickAsync ( ) ;
5962 await _page . Locator ( "td:nth-child(4)" ) . Last . GetByRole ( AriaRole . Textbox ) . FillAsync ( title ) ;
63+ // Autocomplete overlay will pop up, so we close it
6064 await _page . Locator ( ".mud-popover-open" ) . WaitForAsync ( new ( ) { State = WaitForSelectorState . Visible } ) ;
6165 await _page . Keyboard . PressAsync ( "Escape" ) ;
66+ await _page . Locator ( ".mud-popover-open" ) . WaitForAsync ( new ( ) { State = WaitForSelectorState . Detached } ) ;
67+ // Click outside the autocomplete to have an focus lost event for getting the value written to model
6268 await _page . GetByRole ( AriaRole . Heading , new ( ) { Name = "Playback" } ) . ClickAsync ( ) ;
6369 await _page . WaitForTimeoutAsync ( 100 ) ;
6470 }
You can’t perform that action at this time.
0 commit comments