@@ -23,6 +23,8 @@ const typingDelay = 0;
2323const tokenProcessingWait = 200 ;
2424
2525describe ( 'Editor' , function ( ) {
26+ this . timeout ( 50000 ) ;
27+
2628 before ( utils . launchBrowser ) ;
2729
2830 after ( utils . closeBrowser ) ;
@@ -437,7 +439,7 @@ describe('Editor', function() {
437439
438440 for ( const alg of algs ) {
439441 it ( alg . toUpperCase ( ) , async function ( ) {
440- this . timeout ( 20000 ) ;
442+ // this.timeout(20000);
441443
442444 await this . page . click ( '.js-input' ) ;
443445 await this . page . keyboard . down ( 'ControlLeft' ) ;
@@ -478,7 +480,7 @@ describe('Editor', function() {
478480 describe ( 'Encodes RS/ES/PS tokens' , function ( ) {
479481 describe ( 'RS/PS' , async function ( ) {
480482 before ( async function ( ) {
481- this . timeout ( 30000 ) ;
483+ // this.timeout(30000);
482484
483485 await this . page . select ( '#algorithm-select' , 'RS256' ) ;
484486
@@ -505,7 +507,7 @@ describe('Editor', function() {
505507
506508 for ( const alg of algs ) {
507509 it ( alg . toUpperCase ( ) , async function ( ) {
508- this . timeout ( 30000 ) ;
510+ // this.timeout(30000);
509511
510512 await this . page . evaluate ( token => {
511513 window . test . tokenEditor . setValue ( token ) ;
@@ -561,7 +563,7 @@ describe('Editor', function() {
561563
562564 describe ( 'ES' , async function ( ) {
563565 before ( async function ( ) {
564- this . timeout ( 30000 ) ;
566+ // this.timeout(30000);
565567
566568 await this . page . select ( '#algorithm-select' , 'ES256' ) ;
567569
@@ -587,7 +589,7 @@ describe('Editor', function() {
587589
588590 for ( const alg of algs ) {
589591 it ( alg . toUpperCase ( ) , async function ( ) {
590- this . timeout ( 30000 ) ;
592+ // this.timeout(30000);
591593
592594 await this . page . evaluate ( token => {
593595 window . test . tokenEditor . setValue ( token ) ;
@@ -670,7 +672,7 @@ describe('Editor', function() {
670672 } ) ;
671673
672674 it ( 'iss URL + .well-known' , async function ( ) {
673- this . timeout ( 20000 ) ;
675+ // this.timeout(20000);
674676
675677 const key = await jose . JWK . asKey ( defaultTokens . rs256 . privateKey , 'pem' ) ;
676678 const token = await jose . JWS . createSign ( {
@@ -711,7 +713,7 @@ describe('Editor', function() {
711713 } ) ;
712714
713715 it ( 'jku' , async function ( ) {
714- this . timeout ( 20000 ) ;
716+ // this.timeout(20000);
715717
716718 const key = await jose . JWK . asKey ( defaultTokens . rs256 . privateKey , 'pem' ) ;
717719 const token = await jose . JWS . createSign ( {
@@ -752,7 +754,7 @@ describe('Editor', function() {
752754 } ) ;
753755
754756 it ( 'x5c' , async function ( ) {
755- this . timeout ( 35000 ) ;
757+ // this.timeout(35000);
756758
757759 const key = await jose . JWK . asKey ( defaultTokens . rs256 . privateKey , 'pem' ) ;
758760 const token = await jose . JWS . createSign ( {
@@ -861,7 +863,7 @@ describe('Editor', function() {
861863 } ) ;
862864
863865 it ( 'Marks token as invalid when there is no public key' , async function ( ) {
864- this . timeout ( 20000 ) ;
866+ // this.timeout(20000);
865867
866868 await this . page . select ( '#algorithm-select' , 'RS256' ) ;
867869
@@ -910,7 +912,7 @@ describe('Editor', function() {
910912 } ) ;
911913
912914 it ( 'Marks token as invalid when the public key is wrong' , async function ( ) {
913- this . timeout ( 20000 ) ;
915+ // this.timeout(20000);
914916
915917 await this . page . select ( '#algorithm-select' , 'RS256' ) ;
916918
@@ -959,7 +961,7 @@ describe('Editor', function() {
959961
960962 it ( 'Marks token as valid when the public key is OK and private ' +
961963 'key is wrong' , async function ( ) {
962- this . timeout ( 30000 ) ;
964+ // this.timeout(30000);
963965
964966 await this . page . select ( '#algorithm-select' , 'RS256' ) ;
965967
@@ -1005,7 +1007,7 @@ describe('Editor', function() {
10051007
10061008 it ( 'Marks token as valid when the public key is OK and private ' +
10071009 'key is missing' , async function ( ) {
1008- this . timeout ( 30000 ) ;
1010+ // this.timeout(30000);
10091011
10101012 await this . page . select ( '#algorithm-select' , 'RS256' ) ;
10111013
@@ -1066,7 +1068,7 @@ describe('Editor', function() {
10661068 } ) ;
10671069
10681070 it ( 'Marks token as invalid when "alg" is "none"' , async function ( ) {
1069- this . timeout ( 20000 ) ;
1071+ // this.timeout(20000);
10701072
10711073 await this . page . click ( '.js-input' ) ;
10721074 await this . page . keyboard . down ( 'ControlLeft' ) ;
@@ -1172,7 +1174,7 @@ describe('Editor', function() {
11721174
11731175 it ( 'Copies an RSA token to the clipboard (with public-key)' ,
11741176 async function ( ) {
1175- this . timeout ( 30000 ) ;
1177+ // this.timeout(30000);
11761178
11771179 await this . page . select ( '#algorithm-select' , 'RS256' ) ;
11781180
@@ -1253,7 +1255,7 @@ describe('Editor', function() {
12531255 `/?foo=bar&${ key } =${ token } ` ,
12541256 `/#foo=bar&${ key } =${ token } `
12551257 ] . forEach ( ( searchStr , i ) => {
1256- this . timeout ( 20000 ) ;
1258+ // this.timeout(20000);
12571259
12581260 it ( `Should parse ${ key } from window.location.href [${ i } ]` ,
12591261 async function ( ) {
@@ -1272,7 +1274,7 @@ describe('Editor', function() {
12721274 } ) ;
12731275
12741276 it ( 'Parses shared token' , async function ( ) {
1275- this . timeout ( 20000 ) ;
1277+ // this.timeout(20000);
12761278
12771279 const page = await this . browser . newPage ( ) ;
12781280
0 commit comments