@@ -23,6 +23,8 @@ const typingDelay = 0;
23
23
const tokenProcessingWait = 200 ;
24
24
25
25
describe ( 'Editor' , function ( ) {
26
+ this . timeout ( 50000 ) ;
27
+
26
28
before ( utils . launchBrowser ) ;
27
29
28
30
after ( utils . closeBrowser ) ;
@@ -437,7 +439,7 @@ describe('Editor', function() {
437
439
438
440
for ( const alg of algs ) {
439
441
it ( alg . toUpperCase ( ) , async function ( ) {
440
- this . timeout ( 20000 ) ;
442
+ // this.timeout(20000);
441
443
442
444
await this . page . click ( '.js-input' ) ;
443
445
await this . page . keyboard . down ( 'ControlLeft' ) ;
@@ -478,7 +480,7 @@ describe('Editor', function() {
478
480
describe ( 'Encodes RS/ES/PS tokens' , function ( ) {
479
481
describe ( 'RS/PS' , async function ( ) {
480
482
before ( async function ( ) {
481
- this . timeout ( 30000 ) ;
483
+ // this.timeout(30000);
482
484
483
485
await this . page . select ( '#algorithm-select' , 'RS256' ) ;
484
486
@@ -505,7 +507,7 @@ describe('Editor', function() {
505
507
506
508
for ( const alg of algs ) {
507
509
it ( alg . toUpperCase ( ) , async function ( ) {
508
- this . timeout ( 30000 ) ;
510
+ // this.timeout(30000);
509
511
510
512
await this . page . evaluate ( token => {
511
513
window . test . tokenEditor . setValue ( token ) ;
@@ -561,7 +563,7 @@ describe('Editor', function() {
561
563
562
564
describe ( 'ES' , async function ( ) {
563
565
before ( async function ( ) {
564
- this . timeout ( 30000 ) ;
566
+ // this.timeout(30000);
565
567
566
568
await this . page . select ( '#algorithm-select' , 'ES256' ) ;
567
569
@@ -587,7 +589,7 @@ describe('Editor', function() {
587
589
588
590
for ( const alg of algs ) {
589
591
it ( alg . toUpperCase ( ) , async function ( ) {
590
- this . timeout ( 30000 ) ;
592
+ // this.timeout(30000);
591
593
592
594
await this . page . evaluate ( token => {
593
595
window . test . tokenEditor . setValue ( token ) ;
@@ -670,7 +672,7 @@ describe('Editor', function() {
670
672
} ) ;
671
673
672
674
it ( 'iss URL + .well-known' , async function ( ) {
673
- this . timeout ( 20000 ) ;
675
+ // this.timeout(20000);
674
676
675
677
const key = await jose . JWK . asKey ( defaultTokens . rs256 . privateKey , 'pem' ) ;
676
678
const token = await jose . JWS . createSign ( {
@@ -711,7 +713,7 @@ describe('Editor', function() {
711
713
} ) ;
712
714
713
715
it ( 'jku' , async function ( ) {
714
- this . timeout ( 20000 ) ;
716
+ // this.timeout(20000);
715
717
716
718
const key = await jose . JWK . asKey ( defaultTokens . rs256 . privateKey , 'pem' ) ;
717
719
const token = await jose . JWS . createSign ( {
@@ -752,7 +754,7 @@ describe('Editor', function() {
752
754
} ) ;
753
755
754
756
it ( 'x5c' , async function ( ) {
755
- this . timeout ( 35000 ) ;
757
+ // this.timeout(35000);
756
758
757
759
const key = await jose . JWK . asKey ( defaultTokens . rs256 . privateKey , 'pem' ) ;
758
760
const token = await jose . JWS . createSign ( {
@@ -861,7 +863,7 @@ describe('Editor', function() {
861
863
} ) ;
862
864
863
865
it ( 'Marks token as invalid when there is no public key' , async function ( ) {
864
- this . timeout ( 20000 ) ;
866
+ // this.timeout(20000);
865
867
866
868
await this . page . select ( '#algorithm-select' , 'RS256' ) ;
867
869
@@ -910,7 +912,7 @@ describe('Editor', function() {
910
912
} ) ;
911
913
912
914
it ( 'Marks token as invalid when the public key is wrong' , async function ( ) {
913
- this . timeout ( 20000 ) ;
915
+ // this.timeout(20000);
914
916
915
917
await this . page . select ( '#algorithm-select' , 'RS256' ) ;
916
918
@@ -959,7 +961,7 @@ describe('Editor', function() {
959
961
960
962
it ( 'Marks token as valid when the public key is OK and private ' +
961
963
'key is wrong' , async function ( ) {
962
- this . timeout ( 30000 ) ;
964
+ // this.timeout(30000);
963
965
964
966
await this . page . select ( '#algorithm-select' , 'RS256' ) ;
965
967
@@ -1005,7 +1007,7 @@ describe('Editor', function() {
1005
1007
1006
1008
it ( 'Marks token as valid when the public key is OK and private ' +
1007
1009
'key is missing' , async function ( ) {
1008
- this . timeout ( 30000 ) ;
1010
+ // this.timeout(30000);
1009
1011
1010
1012
await this . page . select ( '#algorithm-select' , 'RS256' ) ;
1011
1013
@@ -1066,7 +1068,7 @@ describe('Editor', function() {
1066
1068
} ) ;
1067
1069
1068
1070
it ( 'Marks token as invalid when "alg" is "none"' , async function ( ) {
1069
- this . timeout ( 20000 ) ;
1071
+ // this.timeout(20000);
1070
1072
1071
1073
await this . page . click ( '.js-input' ) ;
1072
1074
await this . page . keyboard . down ( 'ControlLeft' ) ;
@@ -1172,7 +1174,7 @@ describe('Editor', function() {
1172
1174
1173
1175
it ( 'Copies an RSA token to the clipboard (with public-key)' ,
1174
1176
async function ( ) {
1175
- this . timeout ( 30000 ) ;
1177
+ // this.timeout(30000);
1176
1178
1177
1179
await this . page . select ( '#algorithm-select' , 'RS256' ) ;
1178
1180
@@ -1253,7 +1255,7 @@ describe('Editor', function() {
1253
1255
`/?foo=bar&${ key } =${ token } ` ,
1254
1256
`/#foo=bar&${ key } =${ token } `
1255
1257
] . forEach ( ( searchStr , i ) => {
1256
- this . timeout ( 20000 ) ;
1258
+ // this.timeout(20000);
1257
1259
1258
1260
it ( `Should parse ${ key } from window.location.href [${ i } ]` ,
1259
1261
async function ( ) {
@@ -1272,7 +1274,7 @@ describe('Editor', function() {
1272
1274
} ) ;
1273
1275
1274
1276
it ( 'Parses shared token' , async function ( ) {
1275
- this . timeout ( 20000 ) ;
1277
+ // this.timeout(20000);
1276
1278
1277
1279
const page = await this . browser . newPage ( ) ;
1278
1280
0 commit comments