@@ -2198,20 +2198,13 @@ describe("Interaction", () => {
2198
2198
2199
2199
describe ( "Textfield with a Blur callback" , ( ) => {
2200
2200
let pages ;
2201
- let otherPages ;
2202
2201
2203
2202
beforeAll ( async ( ) => {
2204
- otherPages = await Promise . all (
2205
- global . integrationSessions . map ( async session =>
2206
- session . browser . newPage ( )
2207
- )
2208
- ) ;
2209
2203
pages = await loadAndWait ( "bug1863910.pdf" , getSelector ( "25R" ) ) ;
2210
2204
} ) ;
2211
2205
2212
2206
afterAll ( async ( ) => {
2213
2207
await closePages ( pages ) ;
2214
- await Promise . all ( otherPages . map ( page => page . close ( ) ) ) ;
2215
2208
} ) ;
2216
2209
2217
2210
it ( "must check that blur callback is called" , async ( ) => {
@@ -2237,20 +2230,13 @@ describe("Interaction", () => {
2237
2230
2238
2231
describe ( "Radio button without T value" , ( ) => {
2239
2232
let pages ;
2240
- let otherPages ;
2241
2233
2242
2234
beforeAll ( async ( ) => {
2243
- otherPages = await Promise . all (
2244
- global . integrationSessions . map ( async session =>
2245
- session . browser . newPage ( )
2246
- )
2247
- ) ;
2248
2235
pages = await loadAndWait ( "bug1860602.pdf" , getSelector ( "22R" ) ) ;
2249
2236
} ) ;
2250
2237
2251
2238
afterAll ( async ( ) => {
2252
2239
await closePages ( pages ) ;
2253
- await Promise . all ( otherPages . map ( page => page . close ( ) ) ) ;
2254
2240
} ) ;
2255
2241
2256
2242
it ( "must check that only one radio is selected" , async ( ) => {
@@ -2301,20 +2287,13 @@ describe("Interaction", () => {
2301
2287
2302
2288
describe ( "Textfield with a number and some decimals" , ( ) => {
2303
2289
let pages ;
2304
- let otherPages ;
2305
2290
2306
2291
beforeAll ( async ( ) => {
2307
- otherPages = await Promise . all (
2308
- global . integrationSessions . map ( async session =>
2309
- session . browser . newPage ( )
2310
- )
2311
- ) ;
2312
2292
pages = await loadAndWait ( "issue17540.pdf" , getSelector ( "15R" ) ) ;
2313
2293
} ) ;
2314
2294
2315
2295
afterAll ( async ( ) => {
2316
2296
await closePages ( pages ) ;
2317
- await Promise . all ( otherPages . map ( page => page . close ( ) ) ) ;
2318
2297
} ) ;
2319
2298
2320
2299
it ( "must check the number has the correct number of decimals" , async ( ) => {
@@ -2341,20 +2320,13 @@ describe("Interaction", () => {
2341
2320
2342
2321
describe ( "Textfield with a zip code starting with 0" , ( ) => {
2343
2322
let pages ;
2344
- let otherPages ;
2345
2323
2346
2324
beforeAll ( async ( ) => {
2347
- otherPages = await Promise . all (
2348
- global . integrationSessions . map ( async session =>
2349
- session . browser . newPage ( )
2350
- )
2351
- ) ;
2352
2325
pages = await loadAndWait ( "bug1889122.pdf" , getSelector ( "24R" ) ) ;
2353
2326
} ) ;
2354
2327
2355
2328
afterAll ( async ( ) => {
2356
2329
await closePages ( pages ) ;
2357
- await Promise . all ( otherPages . map ( page => page . close ( ) ) ) ;
2358
2330
} ) ;
2359
2331
2360
2332
it ( "must check the zip code is correctly formatted" , async ( ) => {
@@ -2376,20 +2348,13 @@ describe("Interaction", () => {
2376
2348
2377
2349
describe ( "Value of event.change when a choice list is modified" , ( ) => {
2378
2350
let pages ;
2379
- let otherPages ;
2380
2351
2381
2352
beforeAll ( async ( ) => {
2382
- otherPages = await Promise . all (
2383
- global . integrationSessions . map ( async session =>
2384
- session . browser . newPage ( )
2385
- )
2386
- ) ;
2387
2353
pages = await loadAndWait ( "issue17998.pdf" , getSelector ( "7R" ) ) ;
2388
2354
} ) ;
2389
2355
2390
2356
afterAll ( async ( ) => {
2391
2357
await closePages ( pages ) ;
2392
- await Promise . all ( otherPages . map ( page => page . close ( ) ) ) ;
2393
2358
} ) ;
2394
2359
2395
2360
it ( "must check the properties of the event" , async ( ) => {
@@ -2417,20 +2382,13 @@ describe("Interaction", () => {
2417
2382
2418
2383
describe ( "PageOpen and PageClose actions in fields" , ( ) => {
2419
2384
let pages ;
2420
- let otherPages ;
2421
2385
2422
2386
beforeAll ( async ( ) => {
2423
- otherPages = await Promise . all (
2424
- global . integrationSessions . map ( async session =>
2425
- session . browser . newPage ( )
2426
- )
2427
- ) ;
2428
2387
pages = await loadAndWait ( "issue18305.pdf" , getSelector ( "7R" ) ) ;
2429
2388
} ) ;
2430
2389
2431
2390
afterAll ( async ( ) => {
2432
2391
await closePages ( pages ) ;
2433
- await Promise . all ( otherPages . map ( page => page . close ( ) ) ) ;
2434
2392
} ) ;
2435
2393
2436
2394
it ( "must check that PageOpen/PageClose actions are correctly executed" , async ( ) => {
@@ -2469,20 +2427,13 @@ describe("Interaction", () => {
2469
2427
2470
2428
describe ( "Compute product of different fields" , ( ) => {
2471
2429
let pages ;
2472
- let otherPages ;
2473
2430
2474
2431
beforeAll ( async ( ) => {
2475
- otherPages = await Promise . all (
2476
- global . integrationSessions . map ( async session =>
2477
- session . browser . newPage ( )
2478
- )
2479
- ) ;
2480
2432
pages = await loadAndWait ( "issue18536.pdf" , getSelector ( "34R" ) ) ;
2481
2433
} ) ;
2482
2434
2483
2435
afterAll ( async ( ) => {
2484
2436
await closePages ( pages ) ;
2485
- await Promise . all ( otherPages . map ( page => page . close ( ) ) ) ;
2486
2437
} ) ;
2487
2438
2488
2439
it ( "must check that the product are null" , async ( ) => {
0 commit comments