@skyux/popovers 7.21.3 → 7.22.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.
@@ -17,7 +17,12 @@
17
17
  "SkyPopoverPlacement": "type-alias-skypopoverplacement",
18
18
  "SkyPopoverTrigger": "type-alias-skypopovertrigger",
19
19
  "SkyPopoverType": "type-alias-skypopovertype",
20
- "SkyPopoversFixtureDropdownItem": "interface-skypopoversfixturedropdownitem"
20
+ "SkyDropdownHarness": "class-skydropdownharness",
21
+ "SkyDropdownItemHarness": "class-skydropdownitemharness",
22
+ "SkyDropdownMenuHarness": "class-skydropdownmenuharness",
23
+ "SkyDropdownHarnessFilters": "interface-skydropdownharnessfilters",
24
+ "SkyDropdownItemHarnessFilters": "interface-skydropdownitemharnessfilters",
25
+ "SkyDropdownMenuHarnessFilters": "interface-skydropdownmenuharnessfilters"
21
26
  },
22
27
  "typedoc": {
23
28
  "id": 0,
@@ -4012,22 +4017,1403 @@
4012
4017
  }
4013
4018
  },
4014
4019
  {
4015
- "id": 457,
4016
- "name": "SkyPopoversFixtureDropdownItem",
4020
+ "id": 499,
4021
+ "name": "SkyDropdownHarness",
4022
+ "kind": 128,
4023
+ "kindString": "Class",
4024
+ "flags": {},
4025
+ "children": [
4026
+ {
4027
+ "id": 514,
4028
+ "name": "clickDropdownButton",
4029
+ "kind": 2048,
4030
+ "kindString": "Method",
4031
+ "flags": {
4032
+ "isPublic": true
4033
+ },
4034
+ "sources": [
4035
+ {
4036
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-harness.ts",
4037
+ "line": 30,
4038
+ "character": 15
4039
+ }
4040
+ ],
4041
+ "signatures": [
4042
+ {
4043
+ "id": 515,
4044
+ "name": "clickDropdownButton",
4045
+ "kind": 4096,
4046
+ "kindString": "Call signature",
4047
+ "flags": {},
4048
+ "comment": {
4049
+ "shortText": "Clicks the dropdown button."
4050
+ },
4051
+ "type": {
4052
+ "type": "reference",
4053
+ "typeArguments": [
4054
+ {
4055
+ "type": "intrinsic",
4056
+ "name": "void"
4057
+ }
4058
+ ],
4059
+ "qualifiedName": "Promise",
4060
+ "package": "typescript",
4061
+ "name": "Promise"
4062
+ }
4063
+ }
4064
+ ]
4065
+ },
4066
+ {
4067
+ "id": 516,
4068
+ "name": "getAriaLabel",
4069
+ "kind": 2048,
4070
+ "kindString": "Method",
4071
+ "flags": {
4072
+ "isPublic": true
4073
+ },
4074
+ "sources": [
4075
+ {
4076
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-harness.ts",
4077
+ "line": 37,
4078
+ "character": 15
4079
+ }
4080
+ ],
4081
+ "signatures": [
4082
+ {
4083
+ "id": 517,
4084
+ "name": "getAriaLabel",
4085
+ "kind": 4096,
4086
+ "kindString": "Call signature",
4087
+ "flags": {},
4088
+ "comment": {
4089
+ "shortText": "Gets the aria-label value."
4090
+ },
4091
+ "type": {
4092
+ "type": "reference",
4093
+ "typeArguments": [
4094
+ {
4095
+ "type": "intrinsic",
4096
+ "name": "string"
4097
+ }
4098
+ ],
4099
+ "qualifiedName": "Promise",
4100
+ "package": "typescript",
4101
+ "name": "Promise"
4102
+ }
4103
+ }
4104
+ ]
4105
+ },
4106
+ {
4107
+ "id": 518,
4108
+ "name": "getButtonStyle",
4109
+ "kind": 2048,
4110
+ "kindString": "Method",
4111
+ "flags": {
4112
+ "isPublic": true
4113
+ },
4114
+ "sources": [
4115
+ {
4116
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-harness.ts",
4117
+ "line": 44,
4118
+ "character": 15
4119
+ }
4120
+ ],
4121
+ "signatures": [
4122
+ {
4123
+ "id": 519,
4124
+ "name": "getButtonStyle",
4125
+ "kind": 4096,
4126
+ "kindString": "Call signature",
4127
+ "flags": {},
4128
+ "comment": {
4129
+ "shortText": "Gets the dropdown button style."
4130
+ },
4131
+ "type": {
4132
+ "type": "reference",
4133
+ "typeArguments": [
4134
+ {
4135
+ "type": "intrinsic",
4136
+ "name": "string"
4137
+ }
4138
+ ],
4139
+ "qualifiedName": "Promise",
4140
+ "package": "typescript",
4141
+ "name": "Promise"
4142
+ }
4143
+ }
4144
+ ]
4145
+ },
4146
+ {
4147
+ "id": 520,
4148
+ "name": "getButtonType",
4149
+ "kind": 2048,
4150
+ "kindString": "Method",
4151
+ "flags": {
4152
+ "isPublic": true
4153
+ },
4154
+ "sources": [
4155
+ {
4156
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-harness.ts",
4157
+ "line": 61,
4158
+ "character": 15
4159
+ }
4160
+ ],
4161
+ "signatures": [
4162
+ {
4163
+ "id": 521,
4164
+ "name": "getButtonType",
4165
+ "kind": 4096,
4166
+ "kindString": "Call signature",
4167
+ "flags": {},
4168
+ "comment": {
4169
+ "shortText": "Gets the dropdown button type."
4170
+ },
4171
+ "type": {
4172
+ "type": "reference",
4173
+ "typeArguments": [
4174
+ {
4175
+ "type": "intrinsic",
4176
+ "name": "string"
4177
+ }
4178
+ ],
4179
+ "qualifiedName": "Promise",
4180
+ "package": "typescript",
4181
+ "name": "Promise"
4182
+ }
4183
+ }
4184
+ ]
4185
+ },
4186
+ {
4187
+ "id": 522,
4188
+ "name": "getDropdownMenu",
4189
+ "kind": 2048,
4190
+ "kindString": "Method",
4191
+ "flags": {
4192
+ "isPublic": true
4193
+ },
4194
+ "sources": [
4195
+ {
4196
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-harness.ts",
4197
+ "line": 74,
4198
+ "character": 15
4199
+ }
4200
+ ],
4201
+ "signatures": [
4202
+ {
4203
+ "id": 523,
4204
+ "name": "getDropdownMenu",
4205
+ "kind": 4096,
4206
+ "kindString": "Call signature",
4207
+ "flags": {},
4208
+ "comment": {
4209
+ "shortText": "Gets the dropdown menu component."
4210
+ },
4211
+ "type": {
4212
+ "type": "reference",
4213
+ "typeArguments": [
4214
+ {
4215
+ "type": "reference",
4216
+ "id": 559,
4217
+ "name": "SkyDropdownMenuHarness"
4218
+ }
4219
+ ],
4220
+ "qualifiedName": "Promise",
4221
+ "package": "typescript",
4222
+ "name": "Promise"
4223
+ }
4224
+ }
4225
+ ]
4226
+ },
4227
+ {
4228
+ "id": 524,
4229
+ "name": "getTitle",
4230
+ "kind": 2048,
4231
+ "kindString": "Method",
4232
+ "flags": {
4233
+ "isPublic": true
4234
+ },
4235
+ "sources": [
4236
+ {
4237
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-harness.ts",
4238
+ "line": 91,
4239
+ "character": 15
4240
+ }
4241
+ ],
4242
+ "signatures": [
4243
+ {
4244
+ "id": 525,
4245
+ "name": "getTitle",
4246
+ "kind": 4096,
4247
+ "kindString": "Call signature",
4248
+ "flags": {},
4249
+ "comment": {
4250
+ "shortText": "Gets the hover tooltip text."
4251
+ },
4252
+ "type": {
4253
+ "type": "reference",
4254
+ "typeArguments": [
4255
+ {
4256
+ "type": "intrinsic",
4257
+ "name": "string"
4258
+ }
4259
+ ],
4260
+ "qualifiedName": "Promise",
4261
+ "package": "typescript",
4262
+ "name": "Promise"
4263
+ }
4264
+ }
4265
+ ]
4266
+ },
4267
+ {
4268
+ "id": 535,
4269
+ "name": "host",
4270
+ "kind": 2048,
4271
+ "kindString": "Method",
4272
+ "flags": {},
4273
+ "sources": [
4274
+ {
4275
+ "fileName": "node_modules/@angular/cdk/testing/index.d.ts",
4276
+ "line": 40,
4277
+ "character": 4
4278
+ }
4279
+ ],
4280
+ "signatures": [
4281
+ {
4282
+ "id": 536,
4283
+ "name": "host",
4284
+ "kind": 4096,
4285
+ "kindString": "Call signature",
4286
+ "flags": {},
4287
+ "comment": {
4288
+ "shortText": "Gets a `Promise` for the `TestElement` representing the host element of the component."
4289
+ },
4290
+ "type": {
4291
+ "type": "reference",
4292
+ "typeArguments": [
4293
+ {
4294
+ "type": "reference",
4295
+ "qualifiedName": "TestElement",
4296
+ "package": "@angular/cdk",
4297
+ "name": "TestElement"
4298
+ }
4299
+ ],
4300
+ "qualifiedName": "Promise",
4301
+ "package": "typescript",
4302
+ "name": "Promise"
4303
+ },
4304
+ "inheritedFrom": {
4305
+ "type": "reference",
4306
+ "name": "SkyComponentHarness.host"
4307
+ }
4308
+ }
4309
+ ],
4310
+ "inheritedFrom": {
4311
+ "type": "reference",
4312
+ "name": "SkyComponentHarness.host"
4313
+ }
4314
+ },
4315
+ {
4316
+ "id": 526,
4317
+ "name": "isDisabled",
4318
+ "kind": 2048,
4319
+ "kindString": "Method",
4320
+ "flags": {
4321
+ "isPublic": true
4322
+ },
4323
+ "sources": [
4324
+ {
4325
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-harness.ts",
4326
+ "line": 98,
4327
+ "character": 15
4328
+ }
4329
+ ],
4330
+ "signatures": [
4331
+ {
4332
+ "id": 527,
4333
+ "name": "isDisabled",
4334
+ "kind": 4096,
4335
+ "kindString": "Call signature",
4336
+ "flags": {},
4337
+ "comment": {
4338
+ "shortText": "Gets whether the dropdown is disabled."
4339
+ },
4340
+ "type": {
4341
+ "type": "reference",
4342
+ "typeArguments": [
4343
+ {
4344
+ "type": "intrinsic",
4345
+ "name": "boolean"
4346
+ }
4347
+ ],
4348
+ "qualifiedName": "Promise",
4349
+ "package": "typescript",
4350
+ "name": "Promise"
4351
+ }
4352
+ }
4353
+ ]
4354
+ },
4355
+ {
4356
+ "id": 528,
4357
+ "name": "isOpen",
4358
+ "kind": 2048,
4359
+ "kindString": "Method",
4360
+ "flags": {
4361
+ "isPublic": true
4362
+ },
4363
+ "sources": [
4364
+ {
4365
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-harness.ts",
4366
+ "line": 107,
4367
+ "character": 15
4368
+ }
4369
+ ],
4370
+ "signatures": [
4371
+ {
4372
+ "id": 529,
4373
+ "name": "isOpen",
4374
+ "kind": 4096,
4375
+ "kindString": "Call signature",
4376
+ "flags": {},
4377
+ "comment": {
4378
+ "shortText": "Gets whether the dropdown menu is open."
4379
+ },
4380
+ "type": {
4381
+ "type": "reference",
4382
+ "typeArguments": [
4383
+ {
4384
+ "type": "intrinsic",
4385
+ "name": "boolean"
4386
+ }
4387
+ ],
4388
+ "qualifiedName": "Promise",
4389
+ "package": "typescript",
4390
+ "name": "Promise"
4391
+ }
4392
+ }
4393
+ ]
4394
+ },
4395
+ {
4396
+ "id": 501,
4397
+ "name": "with",
4398
+ "kind": 2048,
4399
+ "kindString": "Method",
4400
+ "flags": {
4401
+ "isPublic": true,
4402
+ "isStatic": true
4403
+ },
4404
+ "sources": [
4405
+ {
4406
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-harness.ts",
4407
+ "line": 21,
4408
+ "character": 16
4409
+ }
4410
+ ],
4411
+ "signatures": [
4412
+ {
4413
+ "id": 502,
4414
+ "name": "with",
4415
+ "kind": 4096,
4416
+ "kindString": "Call signature",
4417
+ "flags": {},
4418
+ "comment": {
4419
+ "shortText": "Gets a `HarnessPredicate` that can be used to search for a\n`SkyDropdownHarness` that meets certain criteria."
4420
+ },
4421
+ "parameters": [
4422
+ {
4423
+ "id": 503,
4424
+ "name": "filters",
4425
+ "kind": 32768,
4426
+ "kindString": "Parameter",
4427
+ "flags": {},
4428
+ "type": {
4429
+ "type": "reference",
4430
+ "id": 555,
4431
+ "name": "SkyDropdownHarnessFilters"
4432
+ }
4433
+ }
4434
+ ],
4435
+ "type": {
4436
+ "type": "reference",
4437
+ "typeArguments": [
4438
+ {
4439
+ "type": "reference",
4440
+ "id": 499,
4441
+ "name": "SkyDropdownHarness"
4442
+ }
4443
+ ],
4444
+ "qualifiedName": "HarnessPredicate",
4445
+ "package": "@angular/cdk",
4446
+ "name": "HarnessPredicate"
4447
+ }
4448
+ }
4449
+ ]
4450
+ }
4451
+ ],
4452
+ "groups": [
4453
+ {
4454
+ "title": "Constructors",
4455
+ "kind": 512,
4456
+ "children": [
4457
+ 509
4458
+ ]
4459
+ },
4460
+ {
4461
+ "title": "Methods",
4462
+ "kind": 2048,
4463
+ "children": [
4464
+ 514,
4465
+ 516,
4466
+ 518,
4467
+ 520,
4468
+ 522,
4469
+ 524,
4470
+ 535,
4471
+ 526,
4472
+ 528,
4473
+ 501
4474
+ ]
4475
+ }
4476
+ ],
4477
+ "sources": [
4478
+ {
4479
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-harness.ts",
4480
+ "line": 7,
4481
+ "character": 13
4482
+ }
4483
+ ],
4484
+ "extendedTypes": [
4485
+ {
4486
+ "type": "reference",
4487
+ "name": "SkyComponentHarness"
4488
+ }
4489
+ ]
4490
+ },
4491
+ {
4492
+ "id": 611,
4493
+ "name": "SkyDropdownItemHarness",
4494
+ "kind": 128,
4495
+ "kindString": "Class",
4496
+ "flags": {},
4497
+ "children": [
4498
+ {
4499
+ "id": 626,
4500
+ "name": "click",
4501
+ "kind": 2048,
4502
+ "kindString": "Method",
4503
+ "flags": {
4504
+ "isPublic": true
4505
+ },
4506
+ "sources": [
4507
+ {
4508
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-item-harness.ts",
4509
+ "line": 34,
4510
+ "character": 15
4511
+ }
4512
+ ],
4513
+ "signatures": [
4514
+ {
4515
+ "id": 627,
4516
+ "name": "click",
4517
+ "kind": 4096,
4518
+ "kindString": "Call signature",
4519
+ "flags": {},
4520
+ "comment": {
4521
+ "shortText": "Clicks the dropdown item."
4522
+ },
4523
+ "type": {
4524
+ "type": "reference",
4525
+ "typeArguments": [
4526
+ {
4527
+ "type": "intrinsic",
4528
+ "name": "void"
4529
+ }
4530
+ ],
4531
+ "qualifiedName": "Promise",
4532
+ "package": "typescript",
4533
+ "name": "Promise"
4534
+ }
4535
+ }
4536
+ ]
4537
+ },
4538
+ {
4539
+ "id": 628,
4540
+ "name": "getAriaRole",
4541
+ "kind": 2048,
4542
+ "kindString": "Method",
4543
+ "flags": {
4544
+ "isPublic": true
4545
+ },
4546
+ "sources": [
4547
+ {
4548
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-item-harness.ts",
4549
+ "line": 41,
4550
+ "character": 15
4551
+ }
4552
+ ],
4553
+ "signatures": [
4554
+ {
4555
+ "id": 629,
4556
+ "name": "getAriaRole",
4557
+ "kind": 4096,
4558
+ "kindString": "Call signature",
4559
+ "flags": {},
4560
+ "comment": {
4561
+ "shortText": "Gets the dropdown item role."
4562
+ },
4563
+ "type": {
4564
+ "type": "reference",
4565
+ "typeArguments": [
4566
+ {
4567
+ "type": "intrinsic",
4568
+ "name": "string"
4569
+ }
4570
+ ],
4571
+ "qualifiedName": "Promise",
4572
+ "package": "typescript",
4573
+ "name": "Promise"
4574
+ }
4575
+ }
4576
+ ]
4577
+ },
4578
+ {
4579
+ "id": 630,
4580
+ "name": "getText",
4581
+ "kind": 2048,
4582
+ "kindString": "Method",
4583
+ "flags": {
4584
+ "isPublic": true
4585
+ },
4586
+ "sources": [
4587
+ {
4588
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-item-harness.ts",
4589
+ "line": 48,
4590
+ "character": 15
4591
+ }
4592
+ ],
4593
+ "signatures": [
4594
+ {
4595
+ "id": 631,
4596
+ "name": "getText",
4597
+ "kind": 4096,
4598
+ "kindString": "Call signature",
4599
+ "flags": {},
4600
+ "comment": {
4601
+ "shortText": "Gets the menu item text."
4602
+ },
4603
+ "type": {
4604
+ "type": "reference",
4605
+ "typeArguments": [
4606
+ {
4607
+ "type": "intrinsic",
4608
+ "name": "string"
4609
+ }
4610
+ ],
4611
+ "qualifiedName": "Promise",
4612
+ "package": "typescript",
4613
+ "name": "Promise"
4614
+ }
4615
+ }
4616
+ ]
4617
+ },
4618
+ {
4619
+ "id": 635,
4620
+ "name": "host",
4621
+ "kind": 2048,
4622
+ "kindString": "Method",
4623
+ "flags": {},
4624
+ "sources": [
4625
+ {
4626
+ "fileName": "node_modules/@angular/cdk/testing/index.d.ts",
4627
+ "line": 40,
4628
+ "character": 4
4629
+ }
4630
+ ],
4631
+ "signatures": [
4632
+ {
4633
+ "id": 636,
4634
+ "name": "host",
4635
+ "kind": 4096,
4636
+ "kindString": "Call signature",
4637
+ "flags": {},
4638
+ "comment": {
4639
+ "shortText": "Gets a `Promise` for the `TestElement` representing the host element of the component."
4640
+ },
4641
+ "type": {
4642
+ "type": "reference",
4643
+ "typeArguments": [
4644
+ {
4645
+ "type": "reference",
4646
+ "qualifiedName": "TestElement",
4647
+ "package": "@angular/cdk",
4648
+ "name": "TestElement"
4649
+ }
4650
+ ],
4651
+ "qualifiedName": "Promise",
4652
+ "package": "typescript",
4653
+ "name": "Promise"
4654
+ },
4655
+ "inheritedFrom": {
4656
+ "type": "reference",
4657
+ "name": "SkyComponentHarness.host"
4658
+ }
4659
+ }
4660
+ ],
4661
+ "inheritedFrom": {
4662
+ "type": "reference",
4663
+ "name": "SkyComponentHarness.host"
4664
+ }
4665
+ },
4666
+ {
4667
+ "id": 613,
4668
+ "name": "with",
4669
+ "kind": 2048,
4670
+ "kindString": "Method",
4671
+ "flags": {
4672
+ "isPublic": true,
4673
+ "isStatic": true
4674
+ },
4675
+ "sources": [
4676
+ {
4677
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-item-harness.ts",
4678
+ "line": 19,
4679
+ "character": 16
4680
+ }
4681
+ ],
4682
+ "signatures": [
4683
+ {
4684
+ "id": 614,
4685
+ "name": "with",
4686
+ "kind": 4096,
4687
+ "kindString": "Call signature",
4688
+ "flags": {},
4689
+ "comment": {
4690
+ "shortText": "Gets a `HarnessPredicate` that can be used to search for a\n`SkyAutocompleteHarness` that meets certain criteria."
4691
+ },
4692
+ "parameters": [
4693
+ {
4694
+ "id": 615,
4695
+ "name": "filters",
4696
+ "kind": 32768,
4697
+ "kindString": "Parameter",
4698
+ "flags": {},
4699
+ "type": {
4700
+ "type": "reference",
4701
+ "id": 655,
4702
+ "name": "SkyDropdownItemHarnessFilters"
4703
+ }
4704
+ }
4705
+ ],
4706
+ "type": {
4707
+ "type": "reference",
4708
+ "typeArguments": [
4709
+ {
4710
+ "type": "reference",
4711
+ "id": 611,
4712
+ "name": "SkyDropdownItemHarness"
4713
+ }
4714
+ ],
4715
+ "qualifiedName": "HarnessPredicate",
4716
+ "package": "@angular/cdk",
4717
+ "name": "HarnessPredicate"
4718
+ }
4719
+ }
4720
+ ]
4721
+ }
4722
+ ],
4723
+ "groups": [
4724
+ {
4725
+ "title": "Constructors",
4726
+ "kind": 512,
4727
+ "children": [
4728
+ 621
4729
+ ]
4730
+ },
4731
+ {
4732
+ "title": "Methods",
4733
+ "kind": 2048,
4734
+ "children": [
4735
+ 626,
4736
+ 628,
4737
+ 630,
4738
+ 635,
4739
+ 613
4740
+ ]
4741
+ }
4742
+ ],
4743
+ "sources": [
4744
+ {
4745
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-item-harness.ts",
4746
+ "line": 6,
4747
+ "character": 13
4748
+ }
4749
+ ],
4750
+ "extendedTypes": [
4751
+ {
4752
+ "type": "reference",
4753
+ "name": "SkyComponentHarness"
4754
+ }
4755
+ ]
4756
+ },
4757
+ {
4758
+ "id": 559,
4759
+ "name": "SkyDropdownMenuHarness",
4760
+ "kind": 128,
4761
+ "kindString": "Class",
4762
+ "flags": {},
4763
+ "comment": {
4764
+ "shortText": "Harness for interacting with dropdown menu in tests."
4765
+ },
4766
+ "children": [
4767
+ {
4768
+ "id": 573,
4769
+ "name": "clickOut",
4770
+ "kind": 2048,
4771
+ "kindString": "Method",
4772
+ "flags": {
4773
+ "isPublic": true
4774
+ },
4775
+ "sources": [
4776
+ {
4777
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-menu-harness.ts",
4778
+ "line": 33,
4779
+ "character": 15
4780
+ }
4781
+ ],
4782
+ "signatures": [
4783
+ {
4784
+ "id": 574,
4785
+ "name": "clickOut",
4786
+ "kind": 4096,
4787
+ "kindString": "Call signature",
4788
+ "flags": {},
4789
+ "comment": {
4790
+ "shortText": "Clicks out of the dropdown menu. If `dismissOnBlur` property is set to false, then the dropdown menu does not close."
4791
+ },
4792
+ "type": {
4793
+ "type": "reference",
4794
+ "typeArguments": [
4795
+ {
4796
+ "type": "intrinsic",
4797
+ "name": "void"
4798
+ }
4799
+ ],
4800
+ "qualifiedName": "Promise",
4801
+ "package": "typescript",
4802
+ "name": "Promise"
4803
+ }
4804
+ }
4805
+ ]
4806
+ },
4807
+ {
4808
+ "id": 575,
4809
+ "name": "getAriaLabelledBy",
4810
+ "kind": 2048,
4811
+ "kindString": "Method",
4812
+ "flags": {
4813
+ "isPublic": true
4814
+ },
4815
+ "sources": [
4816
+ {
4817
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-menu-harness.ts",
4818
+ "line": 40,
4819
+ "character": 15
4820
+ }
4821
+ ],
4822
+ "signatures": [
4823
+ {
4824
+ "id": 576,
4825
+ "name": "getAriaLabelledBy",
4826
+ "kind": 4096,
4827
+ "kindString": "Call signature",
4828
+ "flags": {},
4829
+ "comment": {
4830
+ "shortText": "Gets the `aria-labelledby` value."
4831
+ },
4832
+ "type": {
4833
+ "type": "reference",
4834
+ "typeArguments": [
4835
+ {
4836
+ "type": "intrinsic",
4837
+ "name": "string"
4838
+ }
4839
+ ],
4840
+ "qualifiedName": "Promise",
4841
+ "package": "typescript",
4842
+ "name": "Promise"
4843
+ }
4844
+ }
4845
+ ]
4846
+ },
4847
+ {
4848
+ "id": 577,
4849
+ "name": "getAriaRole",
4850
+ "kind": 2048,
4851
+ "kindString": "Method",
4852
+ "flags": {
4853
+ "isPublic": true
4854
+ },
4855
+ "sources": [
4856
+ {
4857
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-menu-harness.ts",
4858
+ "line": 47,
4859
+ "character": 15
4860
+ }
4861
+ ],
4862
+ "signatures": [
4863
+ {
4864
+ "id": 578,
4865
+ "name": "getAriaRole",
4866
+ "kind": 4096,
4867
+ "kindString": "Call signature",
4868
+ "flags": {},
4869
+ "comment": {
4870
+ "shortText": "Gets the dropdown menu role."
4871
+ },
4872
+ "type": {
4873
+ "type": "reference",
4874
+ "typeArguments": [
4875
+ {
4876
+ "type": "intrinsic",
4877
+ "name": "string"
4878
+ }
4879
+ ],
4880
+ "qualifiedName": "Promise",
4881
+ "package": "typescript",
4882
+ "name": "Promise"
4883
+ }
4884
+ }
4885
+ ]
4886
+ },
4887
+ {
4888
+ "id": 582,
4889
+ "name": "getItem",
4890
+ "kind": 2048,
4891
+ "kindString": "Method",
4892
+ "flags": {
4893
+ "isPublic": true
4894
+ },
4895
+ "sources": [
4896
+ {
4897
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-menu-harness.ts",
4898
+ "line": 83,
4899
+ "character": 15
4900
+ }
4901
+ ],
4902
+ "signatures": [
4903
+ {
4904
+ "id": 583,
4905
+ "name": "getItem",
4906
+ "kind": 4096,
4907
+ "kindString": "Call signature",
4908
+ "flags": {},
4909
+ "comment": {
4910
+ "shortText": "Gets the first item that matches the given filters"
4911
+ },
4912
+ "parameters": [
4913
+ {
4914
+ "id": 584,
4915
+ "name": "filters",
4916
+ "kind": 32768,
4917
+ "kindString": "Parameter",
4918
+ "flags": {},
4919
+ "comment": {
4920
+ "shortText": "filter for which menu item to return\n"
4921
+ },
4922
+ "type": {
4923
+ "type": "reference",
4924
+ "id": 655,
4925
+ "name": "SkyDropdownItemHarnessFilters"
4926
+ }
4927
+ }
4928
+ ],
4929
+ "type": {
4930
+ "type": "reference",
4931
+ "typeArguments": [
4932
+ {
4933
+ "type": "reference",
4934
+ "id": 611,
4935
+ "name": "SkyDropdownItemHarness"
4936
+ }
4937
+ ],
4938
+ "qualifiedName": "Promise",
4939
+ "package": "typescript",
4940
+ "name": "Promise"
4941
+ }
4942
+ }
4943
+ ]
4944
+ },
4945
+ {
4946
+ "id": 579,
4947
+ "name": "getItems",
4948
+ "kind": 2048,
4949
+ "kindString": "Method",
4950
+ "flags": {
4951
+ "isPublic": true
4952
+ },
4953
+ "sources": [
4954
+ {
4955
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-menu-harness.ts",
4956
+ "line": 55,
4957
+ "character": 15
4958
+ }
4959
+ ],
4960
+ "signatures": [
4961
+ {
4962
+ "id": 580,
4963
+ "name": "getItems",
4964
+ "kind": 4096,
4965
+ "kindString": "Call signature",
4966
+ "flags": {},
4967
+ "comment": {
4968
+ "shortText": "Gets an array of dropdown menu item harnesses."
4969
+ },
4970
+ "parameters": [
4971
+ {
4972
+ "id": 581,
4973
+ "name": "filters",
4974
+ "kind": 32768,
4975
+ "kindString": "Parameter",
4976
+ "flags": {
4977
+ "isOptional": true
4978
+ },
4979
+ "comment": {
4980
+ "shortText": "Optional filter for which menu items to return\n"
4981
+ },
4982
+ "type": {
4983
+ "type": "reference",
4984
+ "id": 655,
4985
+ "name": "SkyDropdownItemHarnessFilters"
4986
+ }
4987
+ }
4988
+ ],
4989
+ "type": {
4990
+ "type": "reference",
4991
+ "typeArguments": [
4992
+ {
4993
+ "type": "array",
4994
+ "elementType": {
4995
+ "type": "reference",
4996
+ "id": 611,
4997
+ "name": "SkyDropdownItemHarness"
4998
+ }
4999
+ }
5000
+ ],
5001
+ "qualifiedName": "Promise",
5002
+ "package": "typescript",
5003
+ "name": "Promise"
5004
+ }
5005
+ }
5006
+ ]
5007
+ },
5008
+ {
5009
+ "id": 588,
5010
+ "name": "host",
5011
+ "kind": 2048,
5012
+ "kindString": "Method",
5013
+ "flags": {},
5014
+ "sources": [
5015
+ {
5016
+ "fileName": "node_modules/@angular/cdk/testing/index.d.ts",
5017
+ "line": 40,
5018
+ "character": 4
5019
+ }
5020
+ ],
5021
+ "signatures": [
5022
+ {
5023
+ "id": 589,
5024
+ "name": "host",
5025
+ "kind": 4096,
5026
+ "kindString": "Call signature",
5027
+ "flags": {},
5028
+ "comment": {
5029
+ "shortText": "Gets a `Promise` for the `TestElement` representing the host element of the component."
5030
+ },
5031
+ "type": {
5032
+ "type": "reference",
5033
+ "typeArguments": [
5034
+ {
5035
+ "type": "reference",
5036
+ "qualifiedName": "TestElement",
5037
+ "package": "@angular/cdk",
5038
+ "name": "TestElement"
5039
+ }
5040
+ ],
5041
+ "qualifiedName": "Promise",
5042
+ "package": "typescript",
5043
+ "name": "Promise"
5044
+ },
5045
+ "inheritedFrom": {
5046
+ "type": "reference",
5047
+ "name": "SkyComponentHarness.host"
5048
+ }
5049
+ }
5050
+ ],
5051
+ "inheritedFrom": {
5052
+ "type": "reference",
5053
+ "name": "SkyComponentHarness.host"
5054
+ }
5055
+ },
5056
+ {
5057
+ "id": 561,
5058
+ "name": "with",
5059
+ "kind": 2048,
5060
+ "kindString": "Method",
5061
+ "flags": {
5062
+ "isPublic": true,
5063
+ "isStatic": true
5064
+ },
5065
+ "sources": [
5066
+ {
5067
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-menu-harness.ts",
5068
+ "line": 24,
5069
+ "character": 16
5070
+ }
5071
+ ],
5072
+ "signatures": [
5073
+ {
5074
+ "id": 562,
5075
+ "name": "with",
5076
+ "kind": 4096,
5077
+ "kindString": "Call signature",
5078
+ "flags": {},
5079
+ "comment": {
5080
+ "shortText": "Gets a `HarnessPredicate` that can be used to search for a\n`SkyDropdownMenuHarness` that meets certain criteria."
5081
+ },
5082
+ "parameters": [
5083
+ {
5084
+ "id": 563,
5085
+ "name": "filters",
5086
+ "kind": 32768,
5087
+ "kindString": "Parameter",
5088
+ "flags": {},
5089
+ "type": {
5090
+ "type": "reference",
5091
+ "id": 608,
5092
+ "name": "SkyDropdownMenuHarnessFilters"
5093
+ }
5094
+ }
5095
+ ],
5096
+ "type": {
5097
+ "type": "reference",
5098
+ "typeArguments": [
5099
+ {
5100
+ "type": "reference",
5101
+ "id": 559,
5102
+ "name": "SkyDropdownMenuHarness"
5103
+ }
5104
+ ],
5105
+ "qualifiedName": "HarnessPredicate",
5106
+ "package": "@angular/cdk",
5107
+ "name": "HarnessPredicate"
5108
+ }
5109
+ }
5110
+ ]
5111
+ }
5112
+ ],
5113
+ "groups": [
5114
+ {
5115
+ "title": "Constructors",
5116
+ "kind": 512,
5117
+ "children": [
5118
+ 569
5119
+ ]
5120
+ },
5121
+ {
5122
+ "title": "Methods",
5123
+ "kind": 2048,
5124
+ "children": [
5125
+ 573,
5126
+ 575,
5127
+ 577,
5128
+ 582,
5129
+ 579,
5130
+ 588,
5131
+ 561
5132
+ ]
5133
+ }
5134
+ ],
5135
+ "sources": [
5136
+ {
5137
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-menu-harness.ts",
5138
+ "line": 11,
5139
+ "character": 13
5140
+ }
5141
+ ],
5142
+ "extendedTypes": [
5143
+ {
5144
+ "type": "reference",
5145
+ "name": "SkyComponentHarness"
5146
+ }
5147
+ ]
5148
+ },
5149
+ {
5150
+ "id": 555,
5151
+ "name": "SkyDropdownHarnessFilters",
5152
+ "kind": 256,
5153
+ "kindString": "Interface",
5154
+ "flags": {},
5155
+ "comment": {
5156
+ "shortText": "A set of criteria that can be used to filter a list of `SkyDropdownHarness` instances."
5157
+ },
5158
+ "children": [
5159
+ {
5160
+ "id": 558,
5161
+ "name": "ancestor",
5162
+ "kind": 1024,
5163
+ "kindString": "Property",
5164
+ "flags": {
5165
+ "isOptional": true
5166
+ },
5167
+ "comment": {
5168
+ "shortText": "Only find instances that are nested under an element with the given selector."
5169
+ },
5170
+ "sources": [
5171
+ {
5172
+ "fileName": "node_modules/@angular/cdk/testing/index.d.ts",
5173
+ "line": 28,
5174
+ "character": 4
5175
+ }
5176
+ ],
5177
+ "type": {
5178
+ "type": "intrinsic",
5179
+ "name": "string"
5180
+ },
5181
+ "inheritedFrom": {
5182
+ "type": "reference",
5183
+ "name": "SkyHarnessFilters.ancestor"
5184
+ }
5185
+ },
5186
+ {
5187
+ "id": 556,
5188
+ "name": "dataSkyId",
5189
+ "kind": 1024,
5190
+ "kindString": "Property",
5191
+ "flags": {
5192
+ "isOptional": true
5193
+ },
5194
+ "comment": {
5195
+ "shortText": "Only find instances whose `data-sky-id` attribute matches the given value."
5196
+ },
5197
+ "sources": [
5198
+ {
5199
+ "fileName": "libs/components/core/testing/src/shared/harness-filters.ts",
5200
+ "line": 11,
5201
+ "character": 2
5202
+ }
5203
+ ],
5204
+ "type": {
5205
+ "type": "union",
5206
+ "types": [
5207
+ {
5208
+ "type": "intrinsic",
5209
+ "name": "string"
5210
+ },
5211
+ {
5212
+ "type": "reference",
5213
+ "qualifiedName": "RegExp",
5214
+ "package": "typescript",
5215
+ "name": "RegExp"
5216
+ }
5217
+ ]
5218
+ },
5219
+ "inheritedFrom": {
5220
+ "type": "reference",
5221
+ "name": "SkyHarnessFilters.dataSkyId"
5222
+ }
5223
+ },
5224
+ {
5225
+ "id": 557,
5226
+ "name": "selector",
5227
+ "kind": 1024,
5228
+ "kindString": "Property",
5229
+ "flags": {
5230
+ "isOptional": true
5231
+ },
5232
+ "comment": {
5233
+ "shortText": "Only find instances whose host element matches the given selector."
5234
+ },
5235
+ "sources": [
5236
+ {
5237
+ "fileName": "node_modules/@angular/cdk/testing/index.d.ts",
5238
+ "line": 26,
5239
+ "character": 4
5240
+ }
5241
+ ],
5242
+ "type": {
5243
+ "type": "intrinsic",
5244
+ "name": "string"
5245
+ },
5246
+ "inheritedFrom": {
5247
+ "type": "reference",
5248
+ "name": "SkyHarnessFilters.selector"
5249
+ }
5250
+ }
5251
+ ],
5252
+ "groups": [
5253
+ {
5254
+ "title": "Properties",
5255
+ "kind": 1024,
5256
+ "children": [
5257
+ 558,
5258
+ 556,
5259
+ 557
5260
+ ]
5261
+ }
5262
+ ],
5263
+ "sources": [
5264
+ {
5265
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-harness.filters.ts",
5266
+ "line": 7,
5267
+ "character": 17
5268
+ }
5269
+ ],
5270
+ "extendedTypes": [
5271
+ {
5272
+ "type": "reference",
5273
+ "name": "SkyHarnessFilters"
5274
+ }
5275
+ ]
5276
+ },
5277
+ {
5278
+ "id": 655,
5279
+ "name": "SkyDropdownItemHarnessFilters",
4017
5280
  "kind": 256,
4018
5281
  "kindString": "Interface",
4019
5282
  "flags": {},
5283
+ "comment": {
5284
+ "shortText": "A set of criteria that can be used to filter a list of `SkyDropdownItemHarness` instances."
5285
+ },
4020
5286
  "children": [
4021
5287
  {
4022
- "id": 458,
5288
+ "id": 660,
5289
+ "name": "ancestor",
5290
+ "kind": 1024,
5291
+ "kindString": "Property",
5292
+ "flags": {
5293
+ "isOptional": true
5294
+ },
5295
+ "comment": {
5296
+ "shortText": "Only find instances that are nested under an element with the given selector."
5297
+ },
5298
+ "sources": [
5299
+ {
5300
+ "fileName": "node_modules/@angular/cdk/testing/index.d.ts",
5301
+ "line": 28,
5302
+ "character": 4
5303
+ }
5304
+ ],
5305
+ "type": {
5306
+ "type": "intrinsic",
5307
+ "name": "string"
5308
+ },
5309
+ "inheritedFrom": {
5310
+ "type": "reference",
5311
+ "name": "SkyHarnessFilters.ancestor"
5312
+ }
5313
+ },
5314
+ {
5315
+ "id": 656,
4023
5316
  "name": "ariaRole",
4024
5317
  "kind": 1024,
4025
5318
  "kindString": "Property",
4026
- "flags": {},
5319
+ "flags": {
5320
+ "isOptional": true
5321
+ },
5322
+ "comment": {
5323
+ "shortText": "Only find instances whose role matches the given value."
5324
+ },
5325
+ "sources": [
5326
+ {
5327
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-item-harness.filters.ts",
5328
+ "line": 11,
5329
+ "character": 2
5330
+ }
5331
+ ],
5332
+ "type": {
5333
+ "type": "intrinsic",
5334
+ "name": "string"
5335
+ }
5336
+ },
5337
+ {
5338
+ "id": 658,
5339
+ "name": "dataSkyId",
5340
+ "kind": 1024,
5341
+ "kindString": "Property",
5342
+ "flags": {
5343
+ "isOptional": true
5344
+ },
5345
+ "comment": {
5346
+ "shortText": "Only find instances whose `data-sky-id` attribute matches the given value."
5347
+ },
5348
+ "sources": [
5349
+ {
5350
+ "fileName": "libs/components/core/testing/src/shared/harness-filters.ts",
5351
+ "line": 11,
5352
+ "character": 2
5353
+ }
5354
+ ],
5355
+ "type": {
5356
+ "type": "union",
5357
+ "types": [
5358
+ {
5359
+ "type": "intrinsic",
5360
+ "name": "string"
5361
+ },
5362
+ {
5363
+ "type": "reference",
5364
+ "qualifiedName": "RegExp",
5365
+ "package": "typescript",
5366
+ "name": "RegExp"
5367
+ }
5368
+ ]
5369
+ },
5370
+ "inheritedFrom": {
5371
+ "type": "reference",
5372
+ "name": "SkyHarnessFilters.dataSkyId"
5373
+ }
5374
+ },
5375
+ {
5376
+ "id": 659,
5377
+ "name": "selector",
5378
+ "kind": 1024,
5379
+ "kindString": "Property",
5380
+ "flags": {
5381
+ "isOptional": true
5382
+ },
5383
+ "comment": {
5384
+ "shortText": "Only find instances whose host element matches the given selector."
5385
+ },
5386
+ "sources": [
5387
+ {
5388
+ "fileName": "node_modules/@angular/cdk/testing/index.d.ts",
5389
+ "line": 26,
5390
+ "character": 4
5391
+ }
5392
+ ],
5393
+ "type": {
5394
+ "type": "intrinsic",
5395
+ "name": "string"
5396
+ },
5397
+ "inheritedFrom": {
5398
+ "type": "reference",
5399
+ "name": "SkyHarnessFilters.selector"
5400
+ }
5401
+ },
5402
+ {
5403
+ "id": 657,
5404
+ "name": "text",
5405
+ "kind": 1024,
5406
+ "kindString": "Property",
5407
+ "flags": {
5408
+ "isOptional": true
5409
+ },
5410
+ "comment": {
5411
+ "shortText": "Only find instances whose text content matches the given value."
5412
+ },
4027
5413
  "sources": [
4028
5414
  {
4029
- "fileName": "projects/popovers/src/testing/dropdown/popovers-fixture-dropdown-item.ts",
4030
- "line": 2,
5415
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-item-harness.filters.ts",
5416
+ "line": 16,
4031
5417
  "character": 2
4032
5418
  }
4033
5419
  ],
@@ -4042,16 +5428,117 @@
4042
5428
  "title": "Properties",
4043
5429
  "kind": 1024,
4044
5430
  "children": [
4045
- 458
5431
+ 660,
5432
+ 656,
5433
+ 658,
5434
+ 659,
5435
+ 657
4046
5436
  ]
4047
5437
  }
4048
5438
  ],
4049
5439
  "sources": [
4050
5440
  {
4051
- "fileName": "projects/popovers/src/testing/dropdown/popovers-fixture-dropdown-item.ts",
4052
- "line": 1,
5441
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-item-harness.filters.ts",
5442
+ "line": 7,
5443
+ "character": 17
5444
+ }
5445
+ ],
5446
+ "extendedTypes": [
5447
+ {
5448
+ "type": "reference",
5449
+ "name": "SkyHarnessFilters"
5450
+ }
5451
+ ]
5452
+ },
5453
+ {
5454
+ "id": 608,
5455
+ "name": "SkyDropdownMenuHarnessFilters",
5456
+ "kind": 256,
5457
+ "kindString": "Interface",
5458
+ "flags": {},
5459
+ "comment": {
5460
+ "shortText": "A set of criteria that can be used to filter a list of `SkyDropdownMenuHarness` instances."
5461
+ },
5462
+ "children": [
5463
+ {
5464
+ "id": 610,
5465
+ "name": "ancestor",
5466
+ "kind": 1024,
5467
+ "kindString": "Property",
5468
+ "flags": {
5469
+ "isOptional": true
5470
+ },
5471
+ "comment": {
5472
+ "shortText": "Only find instances that are nested under an element with the given selector."
5473
+ },
5474
+ "sources": [
5475
+ {
5476
+ "fileName": "node_modules/@angular/cdk/testing/index.d.ts",
5477
+ "line": 28,
5478
+ "character": 4
5479
+ }
5480
+ ],
5481
+ "type": {
5482
+ "type": "intrinsic",
5483
+ "name": "string"
5484
+ },
5485
+ "inheritedFrom": {
5486
+ "type": "reference",
5487
+ "name": "BaseHarnessFilters.ancestor"
5488
+ }
5489
+ },
5490
+ {
5491
+ "id": 609,
5492
+ "name": "selector",
5493
+ "kind": 1024,
5494
+ "kindString": "Property",
5495
+ "flags": {
5496
+ "isOptional": true
5497
+ },
5498
+ "comment": {
5499
+ "shortText": "Only find instances whose host element matches the given selector."
5500
+ },
5501
+ "sources": [
5502
+ {
5503
+ "fileName": "node_modules/@angular/cdk/testing/index.d.ts",
5504
+ "line": 26,
5505
+ "character": 4
5506
+ }
5507
+ ],
5508
+ "type": {
5509
+ "type": "intrinsic",
5510
+ "name": "string"
5511
+ },
5512
+ "inheritedFrom": {
5513
+ "type": "reference",
5514
+ "name": "BaseHarnessFilters.selector"
5515
+ }
5516
+ }
5517
+ ],
5518
+ "groups": [
5519
+ {
5520
+ "title": "Properties",
5521
+ "kind": 1024,
5522
+ "children": [
5523
+ 610,
5524
+ 609
5525
+ ]
5526
+ }
5527
+ ],
5528
+ "sources": [
5529
+ {
5530
+ "fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-menu-harness.filters.ts",
5531
+ "line": 7,
4053
5532
  "character": 17
4054
5533
  }
5534
+ ],
5535
+ "extendedTypes": [
5536
+ {
5537
+ "type": "reference",
5538
+ "qualifiedName": "BaseHarnessFilters",
5539
+ "package": "@angular/cdk",
5540
+ "name": "BaseHarnessFilters"
5541
+ }
4055
5542
  ]
4056
5543
  }
4057
5544
  ],
@@ -4075,7 +5562,12 @@
4075
5562
  {
4076
5563
  "fileName": "dropdown-demo.component.html",
4077
5564
  "filePath": "/projects/popovers/documentation/code-examples/dropdown/basic/dropdown-demo.component.html",
4078
- "rawContents": "<sky-dropdown>\n <sky-dropdown-button> Show dropdown </sky-dropdown-button>\n <sky-dropdown-menu>\n <sky-dropdown-item *ngFor=\"let item of items\">\n <button\n type=\"button\"\n [attr.disabled]=\"item.disabled ? '' : null\"\n (click)=\"actionClicked(item.name)\"\n >\n {{ item.name }}\n </button>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n</sky-dropdown>\n"
5565
+ "rawContents": "<sky-dropdown data-sky-id=\"dropdown-demo\">\n <sky-dropdown-button> Show dropdown </sky-dropdown-button>\n <sky-dropdown-menu>\n <sky-dropdown-item *ngFor=\"let item of items\">\n <button\n type=\"button\"\n [attr.disabled]=\"item.disabled ? '' : null\"\n (click)=\"actionClicked(item.name)\"\n >\n {{ item.name }}\n </button>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n</sky-dropdown>\n"
5566
+ },
5567
+ {
5568
+ "fileName": "dropdown-demo.component.spec.ts",
5569
+ "filePath": "/projects/popovers/documentation/code-examples/dropdown/basic/dropdown-demo.component.spec.ts",
5570
+ "rawContents": "import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';\nimport { ComponentFixture, TestBed } from '@angular/core/testing';\nimport { expect } from '@skyux-sdk/testing';\nimport { SkyDropdownHarness } from '@skyux/popovers/testing';\n\nimport { DropdownDemoComponent } from './dropdown-demo.component';\nimport { DropdownDemoModule } from './dropdown-demo.module';\n\ndescribe('Basic dropdown', () => {\n async function setupTest(): Promise<{\n dropdownHarness: SkyDropdownHarness;\n fixture: ComponentFixture<DropdownDemoComponent>;\n }> {\n const fixture = TestBed.createComponent(DropdownDemoComponent);\n const loader = TestbedHarnessEnvironment.documentRootLoader(fixture);\n const dropdownHarness = await loader.getHarness(\n SkyDropdownHarness.with({\n dataSkyId: 'dropdown-demo',\n })\n );\n\n return { dropdownHarness, fixture };\n }\n\n beforeEach(() => {\n TestBed.configureTestingModule({\n imports: [DropdownDemoModule],\n });\n });\n\n it('should display the correct dropdown', async () => {\n const { dropdownHarness, fixture } = await setupTest();\n\n fixture.detectChanges();\n\n await expectAsync(dropdownHarness.getButtonStyle()).toBeResolvedTo(\n 'default'\n );\n await expectAsync(dropdownHarness.getButtonType()).toBeResolvedTo('select');\n await expectAsync(dropdownHarness.isDisabled()).toBeResolvedTo(false);\n await expectAsync(dropdownHarness.getAriaLabel()).toBeResolvedTo(\n 'Context menu'\n );\n await expectAsync(dropdownHarness.getTitle()).toBeResolvedTo(null);\n await expectAsync(dropdownHarness.isOpen()).toBeResolvedTo(false);\n });\n\n it('should open the correct dropdown menu', async () => {\n const { dropdownHarness, fixture } = await setupTest();\n\n fixture.detectChanges();\n await dropdownHarness.clickDropdownButton();\n fixture.detectChanges();\n\n const dropdownMenu = await dropdownHarness.getDropdownMenu();\n const dropdownMenuItems = await dropdownMenu.getItems();\n\n await expectAsync(dropdownHarness.isOpen()).toBeResolvedTo(true);\n await expectAsync(dropdownMenu.getAriaRole()).toBeResolvedTo('menu');\n\n await expectAsync(dropdownMenuItems?.[0].getText()).toBeResolvedTo(\n 'Option 1'\n );\n });\n\n it('should click the correct dropdown menu item', async () => {\n const { dropdownHarness, fixture } = await setupTest();\n\n const clickSpy = spyOn(fixture.componentInstance, 'actionClicked');\n fixture.detectChanges();\n await dropdownHarness.clickDropdownButton();\n fixture.detectChanges();\n\n const dropdownMenu = await dropdownHarness.getDropdownMenu();\n const dropdownMenuItem = await dropdownMenu.getItem({ text: 'Option 1' });\n\n await dropdownMenuItem?.click();\n\n expect(clickSpy).toHaveBeenCalledWith('Option 1');\n });\n});\n"
4079
5571
  },
4080
5572
  {
4081
5573
  "fileName": "dropdown-demo.component.ts",