File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -986,6 +986,23 @@ describe('Page.reload', function() {
986
986
} ) ;
987
987
} ) ;
988
988
989
+ describe ( 'Click navigation' , function ( ) {
990
+ it ( 'should work with _blank target' , async ( { page, server} ) => {
991
+ server . setRoute ( '/empty.html' , ( req , res ) => {
992
+ res . end ( `<a href="${ server . EMPTY_PAGE } " target="_blank">Click me</a>` ) ;
993
+ } ) ;
994
+ await page . goto ( server . EMPTY_PAGE ) ;
995
+ await page . click ( '"Click me"' ) ;
996
+ } ) ;
997
+ it . fail ( WEBKIT ) ( 'should work with cross-process _blank target' , async ( { page, server} ) => {
998
+ server . setRoute ( '/empty.html' , ( req , res ) => {
999
+ res . end ( `<a href="${ server . CROSS_PROCESS_PREFIX } /empty.html" target="_blank">Click me</a>` ) ;
1000
+ } ) ;
1001
+ await page . goto ( server . EMPTY_PAGE ) ;
1002
+ await page . click ( '"Click me"' ) ;
1003
+ } ) ;
1004
+ } ) ;
1005
+
989
1006
function expectSSLError ( errorMessage ) {
990
1007
if ( CHROMIUM ) {
991
1008
expect ( errorMessage ) . toContain ( 'net::ERR_CERT_AUTHORITY_INVALID' ) ;
You can’t perform that action at this time.
0 commit comments