@workday/canvas-kit-docs 11.0.0-alpha.716-next.0 → 11.0.0-alpha.721-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/es6/lib/specs.js
CHANGED
|
@@ -4339,89 +4339,247 @@ module.exports = {specifications: [
|
|
|
4339
4339
|
"children": [
|
|
4340
4340
|
{
|
|
4341
4341
|
"type": "describe",
|
|
4342
|
-
"name": "
|
|
4342
|
+
"name": "Select With Menu Height",
|
|
4343
4343
|
"children": [
|
|
4344
|
-
{
|
|
4345
|
-
"type": "it",
|
|
4346
|
-
"name": "should not have any axe errors"
|
|
4347
|
-
},
|
|
4348
|
-
{
|
|
4349
|
-
"type": "it",
|
|
4350
|
-
"name": "should not have an aria-activedescendant attribute"
|
|
4351
|
-
},
|
|
4352
4344
|
{
|
|
4353
4345
|
"type": "describe",
|
|
4354
|
-
"name": "
|
|
4346
|
+
"name": "given the \"Menu Height\" story is rendered",
|
|
4355
4347
|
"children": [
|
|
4356
|
-
{
|
|
4357
|
-
"type": "it",
|
|
4358
|
-
"name": "should not have any axe errors"
|
|
4359
|
-
},
|
|
4360
4348
|
{
|
|
4361
4349
|
"type": "describe",
|
|
4362
|
-
"name": "the select",
|
|
4350
|
+
"name": "when the select input is focused",
|
|
4363
4351
|
"children": [
|
|
4364
4352
|
{
|
|
4365
|
-
"type": "
|
|
4366
|
-
"name": "
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4353
|
+
"type": "describe",
|
|
4354
|
+
"name": "when a character is typed (provided no other characters have been typed in the last 500ms), the select should select the first matching option beyond the currently selected option (cycling back to the beginning of the options if necessary)",
|
|
4355
|
+
"children": [
|
|
4356
|
+
{
|
|
4357
|
+
"type": "describe",
|
|
4358
|
+
"name": "when \"s\" is typed",
|
|
4359
|
+
"children": [
|
|
4360
|
+
{
|
|
4361
|
+
"type": "describe",
|
|
4362
|
+
"name": "the select button",
|
|
4363
|
+
"children": [
|
|
4364
|
+
{
|
|
4365
|
+
"type": "it",
|
|
4366
|
+
"name": "should read the first option beginning with \"s\" (\"San Francisco (United States)\")"
|
|
4367
|
+
}
|
|
4368
|
+
]
|
|
4369
|
+
}
|
|
4370
|
+
]
|
|
4371
|
+
},
|
|
4372
|
+
{
|
|
4373
|
+
"type": "describe",
|
|
4374
|
+
"name": "when \"s{500ms delay}s\" is typed",
|
|
4375
|
+
"children": [
|
|
4376
|
+
{
|
|
4377
|
+
"type": "describe",
|
|
4378
|
+
"name": "the select button",
|
|
4379
|
+
"children": [
|
|
4380
|
+
{
|
|
4381
|
+
"type": "it",
|
|
4382
|
+
"name": "should read the second option beginning with \"s\" (\"San Mateo (United States)\")"
|
|
4383
|
+
}
|
|
4384
|
+
]
|
|
4385
|
+
}
|
|
4386
|
+
]
|
|
4387
|
+
},
|
|
4388
|
+
{
|
|
4389
|
+
"type": "describe",
|
|
4390
|
+
"name": "when \"s{500ms delay}d\" is typed",
|
|
4391
|
+
"children": [
|
|
4392
|
+
{
|
|
4393
|
+
"type": "describe",
|
|
4394
|
+
"name": "the select button",
|
|
4395
|
+
"children": [
|
|
4396
|
+
{
|
|
4397
|
+
"type": "it",
|
|
4398
|
+
"name": "should read the first option beginning with \"d\" (\"Dallas (United States)\")"
|
|
4399
|
+
}
|
|
4400
|
+
]
|
|
4401
|
+
}
|
|
4402
|
+
]
|
|
4403
|
+
}
|
|
4404
|
+
]
|
|
4377
4405
|
},
|
|
4378
4406
|
{
|
|
4379
|
-
"type": "
|
|
4380
|
-
"name": "
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4407
|
+
"type": "describe",
|
|
4408
|
+
"name": "when multiple characters are typed in rapid succession (<500ms between keystrokes), thus forming a string, and multiple options begin with that string, the select should retain the currently selected option for as long as possible (instead of cycling selection between matching options with each keystroke)",
|
|
4409
|
+
"children": [
|
|
4410
|
+
{
|
|
4411
|
+
"type": "describe",
|
|
4412
|
+
"name": "when \"sa\" is typed",
|
|
4413
|
+
"children": [
|
|
4414
|
+
{
|
|
4415
|
+
"type": "describe",
|
|
4416
|
+
"name": "the select button",
|
|
4417
|
+
"children": [
|
|
4418
|
+
{
|
|
4419
|
+
"type": "it",
|
|
4420
|
+
"name": "should read \"San Francisco (United States)\""
|
|
4421
|
+
}
|
|
4422
|
+
]
|
|
4423
|
+
}
|
|
4424
|
+
]
|
|
4425
|
+
},
|
|
4426
|
+
{
|
|
4427
|
+
"type": "describe",
|
|
4428
|
+
"name": "when \"san \" is typed",
|
|
4429
|
+
"children": [
|
|
4430
|
+
{
|
|
4431
|
+
"type": "describe",
|
|
4432
|
+
"name": "the select button",
|
|
4433
|
+
"children": [
|
|
4434
|
+
{
|
|
4435
|
+
"type": "it",
|
|
4436
|
+
"name": "should read \"San Francisco (United States)\""
|
|
4437
|
+
}
|
|
4438
|
+
]
|
|
4439
|
+
}
|
|
4440
|
+
]
|
|
4441
|
+
},
|
|
4442
|
+
{
|
|
4443
|
+
"type": "describe",
|
|
4444
|
+
"name": "when \"san m\" is typed",
|
|
4445
|
+
"children": [
|
|
4446
|
+
{
|
|
4447
|
+
"type": "describe",
|
|
4448
|
+
"name": "the select button",
|
|
4449
|
+
"children": [
|
|
4450
|
+
{
|
|
4451
|
+
"type": "it",
|
|
4452
|
+
"name": "should read \"San Mateo (United States)\""
|
|
4453
|
+
}
|
|
4454
|
+
]
|
|
4455
|
+
}
|
|
4456
|
+
]
|
|
4457
|
+
}
|
|
4458
|
+
]
|
|
4391
4459
|
}
|
|
4392
4460
|
]
|
|
4393
4461
|
},
|
|
4394
4462
|
{
|
|
4395
4463
|
"type": "describe",
|
|
4396
|
-
"name": "when the
|
|
4464
|
+
"name": "when the menu is opened",
|
|
4397
4465
|
"children": [
|
|
4398
4466
|
{
|
|
4399
4467
|
"type": "describe",
|
|
4400
|
-
"name": "the select
|
|
4468
|
+
"name": "when a character is typed (provided no other characters have been typed in the last 500ms), the select should advance assistive focus to the first matching option beyond the currently selected option (cycling back to the beginning of the options if necessary) and scroll that option into view",
|
|
4401
4469
|
"children": [
|
|
4402
4470
|
{
|
|
4403
|
-
"type": "
|
|
4404
|
-
"name": "
|
|
4471
|
+
"type": "describe",
|
|
4472
|
+
"name": "when \"s\" is typed",
|
|
4473
|
+
"children": [
|
|
4474
|
+
{
|
|
4475
|
+
"type": "describe",
|
|
4476
|
+
"name": "the menu",
|
|
4477
|
+
"children": [
|
|
4478
|
+
{
|
|
4479
|
+
"type": "it",
|
|
4480
|
+
"name": "should scroll so that the \"San Francisco (United States)\" option is fully visible"
|
|
4481
|
+
}
|
|
4482
|
+
]
|
|
4483
|
+
}
|
|
4484
|
+
]
|
|
4405
4485
|
},
|
|
4406
4486
|
{
|
|
4407
|
-
"type": "
|
|
4408
|
-
"name": "
|
|
4487
|
+
"type": "describe",
|
|
4488
|
+
"name": "when \"s{500ms delay}s\" is typed",
|
|
4489
|
+
"children": [
|
|
4490
|
+
{
|
|
4491
|
+
"type": "describe",
|
|
4492
|
+
"name": "the menu",
|
|
4493
|
+
"children": [
|
|
4494
|
+
{
|
|
4495
|
+
"type": "it",
|
|
4496
|
+
"name": "should scroll so that the \"San Mateo (United States)\" option is fully visible"
|
|
4497
|
+
}
|
|
4498
|
+
]
|
|
4499
|
+
}
|
|
4500
|
+
]
|
|
4501
|
+
},
|
|
4502
|
+
{
|
|
4503
|
+
"type": "describe",
|
|
4504
|
+
"name": "when \"s{500ms delay}d\" is typed",
|
|
4505
|
+
"children": [
|
|
4506
|
+
{
|
|
4507
|
+
"type": "describe",
|
|
4508
|
+
"name": "the menu",
|
|
4509
|
+
"children": [
|
|
4510
|
+
{
|
|
4511
|
+
"type": "it",
|
|
4512
|
+
"name": "should scroll so that the \"Dallas (United States)\" option is fully visible"
|
|
4513
|
+
}
|
|
4514
|
+
]
|
|
4515
|
+
}
|
|
4516
|
+
]
|
|
4409
4517
|
}
|
|
4410
4518
|
]
|
|
4411
4519
|
},
|
|
4412
4520
|
{
|
|
4413
4521
|
"type": "describe",
|
|
4414
|
-
"name": "the
|
|
4522
|
+
"name": "when multiple characters are typed in rapid succession (<500ms between keystrokes), thus forming a string, and multiple options begin with that string, the select should retain assistive focus on the currently focused option for as long as possible (instead of cycling focus between matching options with each keystroke)",
|
|
4415
4523
|
"children": [
|
|
4416
4524
|
{
|
|
4417
|
-
"type": "
|
|
4418
|
-
"name": "
|
|
4525
|
+
"type": "describe",
|
|
4526
|
+
"name": "when \"sa\" is typed",
|
|
4527
|
+
"children": [
|
|
4528
|
+
{
|
|
4529
|
+
"type": "describe",
|
|
4530
|
+
"name": "the menu",
|
|
4531
|
+
"children": [
|
|
4532
|
+
{
|
|
4533
|
+
"type": "it",
|
|
4534
|
+
"name": "should set assistive focus to the \"San Francisco (United States)\" option"
|
|
4535
|
+
}
|
|
4536
|
+
]
|
|
4537
|
+
}
|
|
4538
|
+
]
|
|
4539
|
+
},
|
|
4540
|
+
{
|
|
4541
|
+
"type": "describe",
|
|
4542
|
+
"name": "when \"san \" is typed",
|
|
4543
|
+
"children": [
|
|
4544
|
+
{
|
|
4545
|
+
"type": "describe",
|
|
4546
|
+
"name": "the select input",
|
|
4547
|
+
"children": [
|
|
4548
|
+
{
|
|
4549
|
+
"type": "it",
|
|
4550
|
+
"name": "should set assistive focus to the \"San Francisco (United States)\" option"
|
|
4551
|
+
}
|
|
4552
|
+
]
|
|
4553
|
+
}
|
|
4554
|
+
]
|
|
4555
|
+
},
|
|
4556
|
+
{
|
|
4557
|
+
"type": "describe",
|
|
4558
|
+
"name": "when \"san m\" is typed",
|
|
4559
|
+
"children": [
|
|
4560
|
+
{
|
|
4561
|
+
"type": "describe",
|
|
4562
|
+
"name": "the select input",
|
|
4563
|
+
"children": [
|
|
4564
|
+
{
|
|
4565
|
+
"type": "it",
|
|
4566
|
+
"name": "should set assistive focus to the \"San Mateo (United States)\" option"
|
|
4567
|
+
}
|
|
4568
|
+
]
|
|
4569
|
+
}
|
|
4570
|
+
]
|
|
4419
4571
|
}
|
|
4420
4572
|
]
|
|
4421
|
-
}
|
|
4573
|
+
}
|
|
4574
|
+
]
|
|
4575
|
+
},
|
|
4576
|
+
{
|
|
4577
|
+
"type": "describe",
|
|
4578
|
+
"name": "when the menu is opened and the selected option is initially out of view, the menu should scroll the selected option into view and center it if possible",
|
|
4579
|
+
"children": [
|
|
4422
4580
|
{
|
|
4423
4581
|
"type": "describe",
|
|
4424
|
-
"name": "when the menu is opened
|
|
4582
|
+
"name": "when \"Dallas (United States)\" is selected and the menu is opened",
|
|
4425
4583
|
"children": [
|
|
4426
4584
|
{
|
|
4427
4585
|
"type": "describe",
|
|
@@ -4429,7 +4587,7 @@ module.exports = {specifications: [
|
|
|
4429
4587
|
"children": [
|
|
4430
4588
|
{
|
|
4431
4589
|
"type": "it",
|
|
4432
|
-
"name": "should
|
|
4590
|
+
"name": "should scroll so that the \"Dallas (United States)\" option is centered in view"
|
|
4433
4591
|
}
|
|
4434
4592
|
]
|
|
4435
4593
|
}
|
|
@@ -4438,34 +4596,30 @@ module.exports = {specifications: [
|
|
|
4438
4596
|
]
|
|
4439
4597
|
}
|
|
4440
4598
|
]
|
|
4441
|
-
}
|
|
4599
|
+
}
|
|
4600
|
+
]
|
|
4601
|
+
},
|
|
4602
|
+
{
|
|
4603
|
+
"type": "describe",
|
|
4604
|
+
"name": "given the \"Basic\" story is rendered",
|
|
4605
|
+
"children": [
|
|
4442
4606
|
{
|
|
4443
4607
|
"type": "describe",
|
|
4444
|
-
"name": "when the
|
|
4608
|
+
"name": "when the menu is opened",
|
|
4445
4609
|
"children": [
|
|
4446
|
-
{
|
|
4447
|
-
"type": "describe",
|
|
4448
|
-
"name": "the select input",
|
|
4449
|
-
"children": [
|
|
4450
|
-
{
|
|
4451
|
-
"type": "it",
|
|
4452
|
-
"name": "should have an aria-expanded attribute set to \"true\""
|
|
4453
|
-
}
|
|
4454
|
-
]
|
|
4455
|
-
},
|
|
4456
4610
|
{
|
|
4457
4611
|
"type": "describe",
|
|
4458
4612
|
"name": "the menu",
|
|
4459
4613
|
"children": [
|
|
4460
4614
|
{
|
|
4461
4615
|
"type": "it",
|
|
4462
|
-
"name": "should
|
|
4616
|
+
"name": "should set assistive focus to the first option (\"E-mail\")"
|
|
4463
4617
|
}
|
|
4464
4618
|
]
|
|
4465
4619
|
},
|
|
4466
4620
|
{
|
|
4467
4621
|
"type": "describe",
|
|
4468
|
-
"name": "when
|
|
4622
|
+
"name": "when focus is advanced to the second option (\"Phone\")",
|
|
4469
4623
|
"children": [
|
|
4470
4624
|
{
|
|
4471
4625
|
"type": "describe",
|
|
@@ -4473,21 +4627,31 @@ module.exports = {specifications: [
|
|
|
4473
4627
|
"children": [
|
|
4474
4628
|
{
|
|
4475
4629
|
"type": "it",
|
|
4476
|
-
"name": "should set assistive focus to the \"Phone\"
|
|
4630
|
+
"name": "should set assistive focus to the second option (\"Phone\")"
|
|
4477
4631
|
}
|
|
4478
4632
|
]
|
|
4479
4633
|
},
|
|
4480
4634
|
{
|
|
4481
4635
|
"type": "describe",
|
|
4482
|
-
"name": "when the
|
|
4636
|
+
"name": "when the menu is closed WITHOUT selecting the newly focused option (\"Phone\")",
|
|
4483
4637
|
"children": [
|
|
4638
|
+
{
|
|
4639
|
+
"type": "it",
|
|
4640
|
+
"name": "should not have an aria-activedescendant attribute"
|
|
4641
|
+
},
|
|
4484
4642
|
{
|
|
4485
4643
|
"type": "describe",
|
|
4486
|
-
"name": "the menu",
|
|
4644
|
+
"name": "when the menu is re-opened AFTER it has fully closed",
|
|
4487
4645
|
"children": [
|
|
4488
4646
|
{
|
|
4489
|
-
"type": "
|
|
4490
|
-
"name": "
|
|
4647
|
+
"type": "describe",
|
|
4648
|
+
"name": "the menu",
|
|
4649
|
+
"children": [
|
|
4650
|
+
{
|
|
4651
|
+
"type": "it",
|
|
4652
|
+
"name": "should set assistive focus to the second option (\"Phone\") that is where the cursor was"
|
|
4653
|
+
}
|
|
4654
|
+
]
|
|
4491
4655
|
}
|
|
4492
4656
|
]
|
|
4493
4657
|
}
|
|
@@ -4496,316 +4660,272 @@ module.exports = {specifications: [
|
|
|
4496
4660
|
]
|
|
4497
4661
|
}
|
|
4498
4662
|
]
|
|
4499
|
-
}
|
|
4663
|
+
}
|
|
4664
|
+
]
|
|
4665
|
+
},
|
|
4666
|
+
{
|
|
4667
|
+
"type": "describe",
|
|
4668
|
+
"name": "given the \"Disabled Options\" story with a disabled option",
|
|
4669
|
+
"children": [
|
|
4500
4670
|
{
|
|
4501
4671
|
"type": "describe",
|
|
4502
|
-
"name": "when the
|
|
4672
|
+
"name": "when the menu is opened",
|
|
4503
4673
|
"children": [
|
|
4504
4674
|
{
|
|
4505
4675
|
"type": "describe",
|
|
4506
|
-
"name": "the
|
|
4676
|
+
"name": "the \"Fax (disabled)\" option",
|
|
4507
4677
|
"children": [
|
|
4508
4678
|
{
|
|
4509
4679
|
"type": "it",
|
|
4510
|
-
"name": "should
|
|
4511
|
-
},
|
|
4512
|
-
{
|
|
4513
|
-
"type": "it",
|
|
4514
|
-
"name": "should have E-Mail selected"
|
|
4680
|
+
"name": "should have an aria-disabled attribute set to \"true\""
|
|
4515
4681
|
}
|
|
4516
4682
|
]
|
|
4517
4683
|
},
|
|
4518
4684
|
{
|
|
4519
4685
|
"type": "describe",
|
|
4520
|
-
"name": "when
|
|
4686
|
+
"name": "when the down arrow key is pressed",
|
|
4521
4687
|
"children": [
|
|
4522
4688
|
{
|
|
4523
|
-
"type": "
|
|
4524
|
-
"name": "
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4689
|
+
"type": "describe",
|
|
4690
|
+
"name": "the menu",
|
|
4691
|
+
"children": [
|
|
4692
|
+
{
|
|
4693
|
+
"type": "it",
|
|
4694
|
+
"name": "should set assistive focus to second enabled option (\"Phone\")"
|
|
4695
|
+
}
|
|
4696
|
+
]
|
|
4529
4697
|
},
|
|
4530
4698
|
{
|
|
4531
|
-
"type": "
|
|
4532
|
-
"name": "the
|
|
4699
|
+
"type": "describe",
|
|
4700
|
+
"name": "when the down arrow key is pressed 1 more times",
|
|
4701
|
+
"children": [
|
|
4702
|
+
{
|
|
4703
|
+
"type": "describe",
|
|
4704
|
+
"name": "the menu",
|
|
4705
|
+
"children": [
|
|
4706
|
+
{
|
|
4707
|
+
"type": "it",
|
|
4708
|
+
"name": "should set assistive focus to the fourth option down (\"Mail\") since focus will have skipped one disabled option (\"Fax\")"
|
|
4709
|
+
}
|
|
4710
|
+
]
|
|
4711
|
+
}
|
|
4712
|
+
]
|
|
4533
4713
|
}
|
|
4534
4714
|
]
|
|
4535
4715
|
}
|
|
4536
4716
|
]
|
|
4717
|
+
}
|
|
4718
|
+
]
|
|
4719
|
+
},
|
|
4720
|
+
{
|
|
4721
|
+
"type": "describe",
|
|
4722
|
+
"name": "given the \"Disabled\" story is rendered",
|
|
4723
|
+
"children": [
|
|
4724
|
+
{
|
|
4725
|
+
"type": "it",
|
|
4726
|
+
"name": "should not have any axe errors"
|
|
4537
4727
|
},
|
|
4538
4728
|
{
|
|
4539
4729
|
"type": "describe",
|
|
4540
|
-
"name": "
|
|
4730
|
+
"name": "the select input",
|
|
4541
4731
|
"children": [
|
|
4542
4732
|
{
|
|
4543
|
-
"type": "
|
|
4544
|
-
"name": "
|
|
4545
|
-
"children": [
|
|
4546
|
-
{
|
|
4547
|
-
"type": "it",
|
|
4548
|
-
"name": "should set assistive focus to the \"E-mail\" option"
|
|
4549
|
-
}
|
|
4550
|
-
]
|
|
4733
|
+
"type": "it",
|
|
4734
|
+
"name": "should be disabled"
|
|
4551
4735
|
}
|
|
4552
4736
|
]
|
|
4553
4737
|
}
|
|
4554
4738
|
]
|
|
4555
|
-
}
|
|
4556
|
-
]
|
|
4557
|
-
},
|
|
4558
|
-
{
|
|
4559
|
-
"type": "describe",
|
|
4560
|
-
"name": "given the \"Basic\" story is rendered",
|
|
4561
|
-
"children": [
|
|
4739
|
+
},
|
|
4562
4740
|
{
|
|
4563
4741
|
"type": "describe",
|
|
4564
|
-
"name": "
|
|
4742
|
+
"name": "given the \"FetchingDynamicItems\" story is rendered",
|
|
4565
4743
|
"children": [
|
|
4566
4744
|
{
|
|
4567
4745
|
"type": "describe",
|
|
4568
|
-
"name": "
|
|
4746
|
+
"name": "when Get Items is clicked",
|
|
4569
4747
|
"children": [
|
|
4570
4748
|
{
|
|
4571
4749
|
"type": "it",
|
|
4572
|
-
"name": "should
|
|
4750
|
+
"name": "should change the value of the select to 456 (the id) after 1.5 seconds"
|
|
4573
4751
|
}
|
|
4574
4752
|
]
|
|
4575
|
-
}
|
|
4753
|
+
}
|
|
4754
|
+
]
|
|
4755
|
+
},
|
|
4756
|
+
{
|
|
4757
|
+
"type": "describe",
|
|
4758
|
+
"name": "given the \"MenuHeight\" story is rendered",
|
|
4759
|
+
"children": [
|
|
4576
4760
|
{
|
|
4577
4761
|
"type": "describe",
|
|
4578
|
-
"name": "when
|
|
4762
|
+
"name": "when down arrow is typed enough times to scroll",
|
|
4579
4763
|
"children": [
|
|
4580
4764
|
{
|
|
4581
4765
|
"type": "describe",
|
|
4582
|
-
"name": "the
|
|
4766
|
+
"name": "when Boulder is reached via the arrow key",
|
|
4583
4767
|
"children": [
|
|
4584
4768
|
{
|
|
4585
4769
|
"type": "it",
|
|
4586
|
-
"name": "should
|
|
4587
|
-
}
|
|
4588
|
-
]
|
|
4589
|
-
},
|
|
4590
|
-
{
|
|
4591
|
-
"type": "describe",
|
|
4592
|
-
"name": "when the menu is closed WITHOUT selecting the newly focused option (\"Phone\")",
|
|
4593
|
-
"children": [
|
|
4594
|
-
{
|
|
4595
|
-
"type": "it",
|
|
4596
|
-
"name": "should not have an aria-activedescendant attribute"
|
|
4597
|
-
},
|
|
4598
|
-
{
|
|
4599
|
-
"type": "describe",
|
|
4600
|
-
"name": "when the menu is re-opened AFTER it has fully closed",
|
|
4601
|
-
"children": [
|
|
4602
|
-
{
|
|
4603
|
-
"type": "describe",
|
|
4604
|
-
"name": "the menu",
|
|
4605
|
-
"children": [
|
|
4606
|
-
{
|
|
4607
|
-
"type": "it",
|
|
4608
|
-
"name": "should set assistive focus to the second option (\"Phone\") that is where the cursor was"
|
|
4609
|
-
}
|
|
4610
|
-
]
|
|
4611
|
-
}
|
|
4612
|
-
]
|
|
4770
|
+
"name": "should show Boulder (United States)"
|
|
4613
4771
|
}
|
|
4614
4772
|
]
|
|
4615
4773
|
}
|
|
4616
4774
|
]
|
|
4617
4775
|
}
|
|
4618
4776
|
]
|
|
4619
|
-
}
|
|
4620
|
-
]
|
|
4621
|
-
},
|
|
4622
|
-
{
|
|
4623
|
-
"type": "describe",
|
|
4624
|
-
"name": "given the \"Disabled\" story is rendered",
|
|
4625
|
-
"children": [
|
|
4626
|
-
{
|
|
4627
|
-
"type": "it",
|
|
4628
|
-
"name": "should not have any axe errors"
|
|
4629
4777
|
},
|
|
4630
4778
|
{
|
|
4631
4779
|
"type": "describe",
|
|
4632
|
-
"name": "the
|
|
4780
|
+
"name": "given the \"Disabled Options\" story is rendered",
|
|
4633
4781
|
"children": [
|
|
4634
4782
|
{
|
|
4635
4783
|
"type": "it",
|
|
4636
|
-
"name": "should
|
|
4637
|
-
}
|
|
4638
|
-
]
|
|
4639
|
-
}
|
|
4640
|
-
]
|
|
4641
|
-
},
|
|
4642
|
-
{
|
|
4643
|
-
"type": "describe",
|
|
4644
|
-
"name": "given the \"Disabled Options\" story with a disabled option",
|
|
4645
|
-
"children": [
|
|
4646
|
-
{
|
|
4647
|
-
"type": "describe",
|
|
4648
|
-
"name": "when the menu is opened",
|
|
4649
|
-
"children": [
|
|
4784
|
+
"name": "should not have any axe errors"
|
|
4785
|
+
},
|
|
4650
4786
|
{
|
|
4651
|
-
"type": "
|
|
4652
|
-
"name": "
|
|
4653
|
-
"children": [
|
|
4654
|
-
{
|
|
4655
|
-
"type": "it",
|
|
4656
|
-
"name": "should have an aria-disabled attribute set to \"true\""
|
|
4657
|
-
}
|
|
4658
|
-
]
|
|
4787
|
+
"type": "it",
|
|
4788
|
+
"name": "should not have an aria-activedescendant attribute"
|
|
4659
4789
|
},
|
|
4660
4790
|
{
|
|
4661
4791
|
"type": "describe",
|
|
4662
|
-
"name": "when the
|
|
4792
|
+
"name": "when the select button is clicked",
|
|
4663
4793
|
"children": [
|
|
4794
|
+
{
|
|
4795
|
+
"type": "it",
|
|
4796
|
+
"name": "should not have any axe errors"
|
|
4797
|
+
},
|
|
4798
|
+
{
|
|
4799
|
+
"type": "describe",
|
|
4800
|
+
"name": "the select",
|
|
4801
|
+
"children": [
|
|
4802
|
+
{
|
|
4803
|
+
"type": "it",
|
|
4804
|
+
"name": "should have an aria-expanded attribute set to \"true\""
|
|
4805
|
+
}
|
|
4806
|
+
]
|
|
4807
|
+
},
|
|
4664
4808
|
{
|
|
4665
4809
|
"type": "describe",
|
|
4666
4810
|
"name": "the menu",
|
|
4667
4811
|
"children": [
|
|
4668
4812
|
{
|
|
4669
4813
|
"type": "it",
|
|
4670
|
-
"name": "should
|
|
4814
|
+
"name": "should be visible"
|
|
4815
|
+
},
|
|
4816
|
+
{
|
|
4817
|
+
"type": "it",
|
|
4818
|
+
"name": "should have an aria-activedescendant attribute with the same value as the id of the first option (\"E-mail\")"
|
|
4671
4819
|
}
|
|
4672
4820
|
]
|
|
4673
4821
|
},
|
|
4674
4822
|
{
|
|
4675
4823
|
"type": "describe",
|
|
4676
|
-
"name": "
|
|
4824
|
+
"name": "the first option (\"E-Mail\")",
|
|
4677
4825
|
"children": [
|
|
4678
4826
|
{
|
|
4679
|
-
"type": "
|
|
4680
|
-
"name": "
|
|
4681
|
-
"children": [
|
|
4682
|
-
{
|
|
4683
|
-
"type": "it",
|
|
4684
|
-
"name": "should set assistive focus to the fourth option down (\"Mail\") since focus will have skipped one disabled option (\"Fax\")"
|
|
4685
|
-
}
|
|
4686
|
-
]
|
|
4827
|
+
"type": "it",
|
|
4828
|
+
"name": "should have an aria-selected attribute set to \"true\""
|
|
4687
4829
|
}
|
|
4688
4830
|
]
|
|
4689
|
-
}
|
|
4690
|
-
]
|
|
4691
|
-
}
|
|
4692
|
-
]
|
|
4693
|
-
}
|
|
4694
|
-
]
|
|
4695
|
-
},
|
|
4696
|
-
{
|
|
4697
|
-
"type": "describe",
|
|
4698
|
-
"name": "Select With Menu Height",
|
|
4699
|
-
"children": [
|
|
4700
|
-
{
|
|
4701
|
-
"type": "describe",
|
|
4702
|
-
"name": "given the \"Menu Height\" story is rendered",
|
|
4703
|
-
"children": [
|
|
4704
|
-
{
|
|
4705
|
-
"type": "describe",
|
|
4706
|
-
"name": "when the select input is focused",
|
|
4707
|
-
"children": [
|
|
4831
|
+
},
|
|
4708
4832
|
{
|
|
4709
4833
|
"type": "describe",
|
|
4710
|
-
"name": "when
|
|
4834
|
+
"name": "when the \"Phone\" option (with the value \"phone\") is clicked",
|
|
4711
4835
|
"children": [
|
|
4712
4836
|
{
|
|
4713
4837
|
"type": "describe",
|
|
4714
|
-
"name": "
|
|
4838
|
+
"name": "the select input",
|
|
4715
4839
|
"children": [
|
|
4716
4840
|
{
|
|
4717
|
-
"type": "
|
|
4718
|
-
"name": "
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
}
|
|
4724
|
-
]
|
|
4841
|
+
"type": "it",
|
|
4842
|
+
"name": "should read \"Phone\""
|
|
4843
|
+
},
|
|
4844
|
+
{
|
|
4845
|
+
"type": "it",
|
|
4846
|
+
"name": "should re-acquire focus"
|
|
4725
4847
|
}
|
|
4726
4848
|
]
|
|
4727
4849
|
},
|
|
4728
4850
|
{
|
|
4729
4851
|
"type": "describe",
|
|
4730
|
-
"name": "
|
|
4852
|
+
"name": "the menu",
|
|
4731
4853
|
"children": [
|
|
4732
4854
|
{
|
|
4733
|
-
"type": "
|
|
4734
|
-
"name": "
|
|
4735
|
-
"children": [
|
|
4736
|
-
{
|
|
4737
|
-
"type": "it",
|
|
4738
|
-
"name": "should read the second option beginning with \"s\" (\"San Mateo (United States)\")"
|
|
4739
|
-
}
|
|
4740
|
-
]
|
|
4855
|
+
"type": "it",
|
|
4856
|
+
"name": "should not be visible"
|
|
4741
4857
|
}
|
|
4742
4858
|
]
|
|
4743
4859
|
},
|
|
4744
4860
|
{
|
|
4745
4861
|
"type": "describe",
|
|
4746
|
-
"name": "when
|
|
4862
|
+
"name": "when the menu is opened again",
|
|
4747
4863
|
"children": [
|
|
4748
4864
|
{
|
|
4749
4865
|
"type": "describe",
|
|
4750
|
-
"name": "the
|
|
4866
|
+
"name": "the menu",
|
|
4751
4867
|
"children": [
|
|
4752
4868
|
{
|
|
4753
4869
|
"type": "it",
|
|
4754
|
-
"name": "should
|
|
4870
|
+
"name": "should set assistive focus to the \"Phone\" option"
|
|
4755
4871
|
}
|
|
4756
4872
|
]
|
|
4757
4873
|
}
|
|
4758
4874
|
]
|
|
4759
4875
|
}
|
|
4760
4876
|
]
|
|
4877
|
+
}
|
|
4878
|
+
]
|
|
4879
|
+
},
|
|
4880
|
+
{
|
|
4881
|
+
"type": "describe",
|
|
4882
|
+
"name": "when the select input is focused and down arrow key is pressed",
|
|
4883
|
+
"children": [
|
|
4884
|
+
{
|
|
4885
|
+
"type": "describe",
|
|
4886
|
+
"name": "the select input",
|
|
4887
|
+
"children": [
|
|
4888
|
+
{
|
|
4889
|
+
"type": "it",
|
|
4890
|
+
"name": "should have an aria-expanded attribute set to \"true\""
|
|
4891
|
+
}
|
|
4892
|
+
]
|
|
4761
4893
|
},
|
|
4762
4894
|
{
|
|
4763
4895
|
"type": "describe",
|
|
4764
|
-
"name": "
|
|
4896
|
+
"name": "the menu",
|
|
4765
4897
|
"children": [
|
|
4766
4898
|
{
|
|
4767
|
-
"type": "
|
|
4768
|
-
"name": "
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
"name": "should read \"San Francisco (United States)\""
|
|
4777
|
-
}
|
|
4778
|
-
]
|
|
4779
|
-
}
|
|
4780
|
-
]
|
|
4781
|
-
},
|
|
4899
|
+
"type": "it",
|
|
4900
|
+
"name": "should be visible"
|
|
4901
|
+
}
|
|
4902
|
+
]
|
|
4903
|
+
},
|
|
4904
|
+
{
|
|
4905
|
+
"type": "describe",
|
|
4906
|
+
"name": "when the down arrow key is pressed for a second time",
|
|
4907
|
+
"children": [
|
|
4782
4908
|
{
|
|
4783
4909
|
"type": "describe",
|
|
4784
|
-
"name": "
|
|
4910
|
+
"name": "the menu",
|
|
4785
4911
|
"children": [
|
|
4786
4912
|
{
|
|
4787
|
-
"type": "
|
|
4788
|
-
"name": "the
|
|
4789
|
-
"children": [
|
|
4790
|
-
{
|
|
4791
|
-
"type": "it",
|
|
4792
|
-
"name": "should read \"San Francisco (United States)\""
|
|
4793
|
-
}
|
|
4794
|
-
]
|
|
4913
|
+
"type": "it",
|
|
4914
|
+
"name": "should set assistive focus to the \"Phone\" option"
|
|
4795
4915
|
}
|
|
4796
4916
|
]
|
|
4797
4917
|
},
|
|
4798
4918
|
{
|
|
4799
4919
|
"type": "describe",
|
|
4800
|
-
"name": "when
|
|
4920
|
+
"name": "when the down arrow key is pressed for a third time",
|
|
4801
4921
|
"children": [
|
|
4802
4922
|
{
|
|
4803
4923
|
"type": "describe",
|
|
4804
|
-
"name": "the
|
|
4924
|
+
"name": "the menu",
|
|
4805
4925
|
"children": [
|
|
4806
4926
|
{
|
|
4807
4927
|
"type": "it",
|
|
4808
|
-
"name": "should
|
|
4928
|
+
"name": "should set assistive focus to the \"Mail\" option and skip disabled fax"
|
|
4809
4929
|
}
|
|
4810
4930
|
]
|
|
4811
4931
|
}
|
|
@@ -4817,113 +4937,37 @@ module.exports = {specifications: [
|
|
|
4817
4937
|
},
|
|
4818
4938
|
{
|
|
4819
4939
|
"type": "describe",
|
|
4820
|
-
"name": "when the
|
|
4940
|
+
"name": "when the enter key is pressed",
|
|
4821
4941
|
"children": [
|
|
4822
4942
|
{
|
|
4823
4943
|
"type": "describe",
|
|
4824
|
-
"name": "
|
|
4944
|
+
"name": "the menu",
|
|
4825
4945
|
"children": [
|
|
4826
4946
|
{
|
|
4827
|
-
"type": "
|
|
4828
|
-
"name": "
|
|
4829
|
-
"children": [
|
|
4830
|
-
{
|
|
4831
|
-
"type": "describe",
|
|
4832
|
-
"name": "the menu",
|
|
4833
|
-
"children": [
|
|
4834
|
-
{
|
|
4835
|
-
"type": "it",
|
|
4836
|
-
"name": "should scroll so that the \"San Francisco (United States)\" option is fully visible"
|
|
4837
|
-
}
|
|
4838
|
-
]
|
|
4839
|
-
}
|
|
4840
|
-
]
|
|
4841
|
-
},
|
|
4842
|
-
{
|
|
4843
|
-
"type": "describe",
|
|
4844
|
-
"name": "when \"s{500ms delay}s\" is typed",
|
|
4845
|
-
"children": [
|
|
4846
|
-
{
|
|
4847
|
-
"type": "describe",
|
|
4848
|
-
"name": "the menu",
|
|
4849
|
-
"children": [
|
|
4850
|
-
{
|
|
4851
|
-
"type": "it",
|
|
4852
|
-
"name": "should scroll so that the \"San Mateo (United States)\" option is fully visible"
|
|
4853
|
-
}
|
|
4854
|
-
]
|
|
4855
|
-
}
|
|
4856
|
-
]
|
|
4947
|
+
"type": "it",
|
|
4948
|
+
"name": "should be visible"
|
|
4857
4949
|
},
|
|
4858
4950
|
{
|
|
4859
|
-
"type": "
|
|
4860
|
-
"name": "
|
|
4861
|
-
"children": [
|
|
4862
|
-
{
|
|
4863
|
-
"type": "describe",
|
|
4864
|
-
"name": "the menu",
|
|
4865
|
-
"children": [
|
|
4866
|
-
{
|
|
4867
|
-
"type": "it",
|
|
4868
|
-
"name": "should scroll so that the \"Dallas (United States)\" option is fully visible"
|
|
4869
|
-
}
|
|
4870
|
-
]
|
|
4871
|
-
}
|
|
4872
|
-
]
|
|
4951
|
+
"type": "it",
|
|
4952
|
+
"name": "should have E-Mail selected"
|
|
4873
4953
|
}
|
|
4874
4954
|
]
|
|
4875
4955
|
},
|
|
4876
4956
|
{
|
|
4877
4957
|
"type": "describe",
|
|
4878
|
-
"name": "when
|
|
4958
|
+
"name": "when mail option is selected using arrow keys",
|
|
4879
4959
|
"children": [
|
|
4880
4960
|
{
|
|
4881
|
-
"type": "
|
|
4882
|
-
"name": "
|
|
4883
|
-
"children": [
|
|
4884
|
-
{
|
|
4885
|
-
"type": "describe",
|
|
4886
|
-
"name": "the menu",
|
|
4887
|
-
"children": [
|
|
4888
|
-
{
|
|
4889
|
-
"type": "it",
|
|
4890
|
-
"name": "should set assistive focus to the \"San Francisco (United States)\" option"
|
|
4891
|
-
}
|
|
4892
|
-
]
|
|
4893
|
-
}
|
|
4894
|
-
]
|
|
4961
|
+
"type": "it",
|
|
4962
|
+
"name": "should read \"Mail\""
|
|
4895
4963
|
},
|
|
4896
4964
|
{
|
|
4897
|
-
"type": "
|
|
4898
|
-
"name": "
|
|
4899
|
-
"children": [
|
|
4900
|
-
{
|
|
4901
|
-
"type": "describe",
|
|
4902
|
-
"name": "the select input",
|
|
4903
|
-
"children": [
|
|
4904
|
-
{
|
|
4905
|
-
"type": "it",
|
|
4906
|
-
"name": "should set assistive focus to the \"San Francisco (United States)\" option"
|
|
4907
|
-
}
|
|
4908
|
-
]
|
|
4909
|
-
}
|
|
4910
|
-
]
|
|
4965
|
+
"type": "it",
|
|
4966
|
+
"name": "should re-acquire focus"
|
|
4911
4967
|
},
|
|
4912
4968
|
{
|
|
4913
|
-
"type": "
|
|
4914
|
-
"name": "
|
|
4915
|
-
"children": [
|
|
4916
|
-
{
|
|
4917
|
-
"type": "describe",
|
|
4918
|
-
"name": "the select input",
|
|
4919
|
-
"children": [
|
|
4920
|
-
{
|
|
4921
|
-
"type": "it",
|
|
4922
|
-
"name": "should set assistive focus to the \"San Mateo (United States)\" option"
|
|
4923
|
-
}
|
|
4924
|
-
]
|
|
4925
|
-
}
|
|
4926
|
-
]
|
|
4969
|
+
"type": "it",
|
|
4970
|
+
"name": "the menu should not be visible after selection"
|
|
4927
4971
|
}
|
|
4928
4972
|
]
|
|
4929
4973
|
}
|
|
@@ -4931,21 +4975,15 @@ module.exports = {specifications: [
|
|
|
4931
4975
|
},
|
|
4932
4976
|
{
|
|
4933
4977
|
"type": "describe",
|
|
4934
|
-
"name": "when the
|
|
4978
|
+
"name": "when the up arrow key is pressed",
|
|
4935
4979
|
"children": [
|
|
4936
4980
|
{
|
|
4937
4981
|
"type": "describe",
|
|
4938
|
-
"name": "
|
|
4982
|
+
"name": "the menu",
|
|
4939
4983
|
"children": [
|
|
4940
4984
|
{
|
|
4941
|
-
"type": "
|
|
4942
|
-
"name": "the
|
|
4943
|
-
"children": [
|
|
4944
|
-
{
|
|
4945
|
-
"type": "it",
|
|
4946
|
-
"name": "should scroll so that the \"Dallas (United States)\" option is centered in view"
|
|
4947
|
-
}
|
|
4948
|
-
]
|
|
4985
|
+
"type": "it",
|
|
4986
|
+
"name": "should set assistive focus to the \"E-mail\" option"
|
|
4949
4987
|
}
|
|
4950
4988
|
]
|
|
4951
4989
|
}
|
|
@@ -4954,22 +4992,6 @@ module.exports = {specifications: [
|
|
|
4954
4992
|
]
|
|
4955
4993
|
}
|
|
4956
4994
|
]
|
|
4957
|
-
},
|
|
4958
|
-
{
|
|
4959
|
-
"type": "describe",
|
|
4960
|
-
"name": "given the \"FetchingDynamicItems\" story is rendered",
|
|
4961
|
-
"children": [
|
|
4962
|
-
{
|
|
4963
|
-
"type": "describe",
|
|
4964
|
-
"name": "when Get Items is clicked",
|
|
4965
|
-
"children": [
|
|
4966
|
-
{
|
|
4967
|
-
"type": "it",
|
|
4968
|
-
"name": "should change the value of the select to 456 (the id) after 1.5 seconds"
|
|
4969
|
-
}
|
|
4970
|
-
]
|
|
4971
|
-
}
|
|
4972
|
-
]
|
|
4973
4995
|
}
|
|
4974
4996
|
]
|
|
4975
4997
|
},
|