File tree Expand file tree Collapse file tree
AudioCuesheetEditor.End2EndTests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,15 +34,22 @@ jobs:
3434 - name : Wait for app to be ready
3535 run : |
3636 echo "Waiting for http://localhost:5132 to respond..."
37+ success_count=0
3738 for i in {1..60}; do
3839 if curl -sSf http://localhost:5132 >/dev/null; then
39- echo "App is ready"
40+ success_count=$((success_count+1))
41+ echo "Health check passed ($success_count/5)"
42+ if [ "$success_count" -ge 5 ]; then
43+ echo "App is stable and ready"
4044 exit 0
4145 fi
42- echo "Waiting for app to start ($i/60)..."
46+ else
47+ success_count=0
48+ echo "Not ready yet ($i/60)..."
49+ fi
4350 sleep 2
4451 done
45- echo "App failed to start after waiting " >&2
52+ echo "App never became ready " >&2
4653 exit 1
4754 shell : bash
4855
Original file line number Diff line number Diff line change 1- [ assembly: Parallelize ( Scope = ExecutionScope . ClassLevel ) ]
1+ [ assembly: Parallelize ( Scope = ExecutionScope . MethodLevel ) ]
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ internal async Task GotoAsync()
3030 await _page . GotoAsync ( BaseUrl ) ;
3131 await _page . WaitForURLAsync ( BaseUrl ) ;
3232 await _page . WaitForLoadStateAsync ( LoadState . NetworkIdle ) ;
33+ await _page . WaitForFunctionAsync ( @"() => window.Blazor !== undefined" ) ;
3334 }
3435 }
3536}
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ internal async Task GotoAsync()
3737 await _page . GotoAsync ( BaseUrl ) ;
3838 await _page . WaitForURLAsync ( BaseUrl ) ;
3939 await _page . WaitForLoadStateAsync ( LoadState . NetworkIdle ) ;
40+ await _page . WaitForFunctionAsync ( @"() => window.Blazor !== undefined" ) ;
4041 }
4142
4243 internal async Task AddTrackAsync ( )
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ internal async Task GotoAsync()
3939 await _page . GotoAsync ( BaseUrl ) ;
4040 await _page . WaitForURLAsync ( BaseUrl ) ;
4141 await _page . WaitForLoadStateAsync ( LoadState . NetworkIdle ) ;
42+ await _page . WaitForFunctionAsync ( @"() => window.Blazor !== undefined" ) ;
4243 await _page . GetByText ( "Import view" ) . ClickAsync ( ) ;
4344 }
4445
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ internal async Task GotoAsync()
2828 await _page . GotoAsync ( BaseUrl ) ;
2929 await _page . WaitForURLAsync ( BaseUrl ) ;
3030 await _page . WaitForLoadStateAsync ( LoadState . NetworkIdle ) ;
31+ await _page . WaitForFunctionAsync ( @"() => window.Blazor !== undefined" ) ;
3132 await _page . GetByText ( "Record view" ) . ClickAsync ( ) ;
3233 }
3334
You can’t perform that action at this time.
0 commit comments