File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,16 @@ public async Task ShouldWork()
1919 Assert . Equal ( 36 , result ) ;
2020 }
2121
22+ [ Fact ]
23+ public async Task ShouldBeCallableFromInsideEvaluateOnNewDocument ( )
24+ {
25+ var called = false ;
26+ await Page . ExposeFunctionAsync ( "woof" , ( ) => called = true ) ;
27+ await Page . EvaluateOnNewDocumentAsync ( "() => woof()" ) ;
28+ await Page . ReloadAsync ( ) ;
29+ Assert . True ( called ) ;
30+ }
31+
2232 [ Fact ]
2333 public async Task ShouldSurviveNavigation ( )
2434 {
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ public async Task ShouldHaveDefaultUrlWhenLaunchingBrowser()
5757 }
5858 }
5959
60- [ Fact ( Skip = "Skipped in Puppeteer" ) ]
60+ [ Fact ]
6161 public async Task HeadlessShouldBeAbleToReadCookiesWrittenByHeadful ( )
6262 {
6363 using ( var userDataDir = new TempDirectory ( ) )
You can’t perform that action at this time.
0 commit comments