@skyux/indicators 13.0.0-alpha.1 → 13.0.0-alpha.11
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.
|
@@ -187,7 +187,7 @@ class SkyIllustrationHarness extends SkyComponentHarness {
|
|
|
187
187
|
* @internal
|
|
188
188
|
*/
|
|
189
189
|
static { this.hostSelector = 'sky-illustration'; }
|
|
190
|
-
#
|
|
190
|
+
#getIllustrationWrapper = this.locatorFor('.sky-illustration-wrapper');
|
|
191
191
|
/**
|
|
192
192
|
* Gets a `HarnessPredicate` that can be used to search for a
|
|
193
193
|
* `SkyIllustrationHarness` that meets certain criteria.
|
|
@@ -199,8 +199,8 @@ class SkyIllustrationHarness extends SkyComponentHarness {
|
|
|
199
199
|
* Gets the specified name of the illustration.
|
|
200
200
|
*/
|
|
201
201
|
async getName() {
|
|
202
|
-
const
|
|
203
|
-
const name = await
|
|
202
|
+
const wrapper = await this.#getIllustrationWrapper();
|
|
203
|
+
const name = await wrapper.getAttribute('data-sky-illustration-name');
|
|
204
204
|
if (name === null) {
|
|
205
205
|
throw new Error('Name was not set.');
|
|
206
206
|
}
|
|
@@ -210,10 +210,10 @@ class SkyIllustrationHarness extends SkyComponentHarness {
|
|
|
210
210
|
* Gets the specified size of the illustration.
|
|
211
211
|
*/
|
|
212
212
|
async getSize() {
|
|
213
|
-
const
|
|
213
|
+
const wrapper = await this.#getIllustrationWrapper();
|
|
214
214
|
let foundSize;
|
|
215
215
|
for (const size of ['sm', 'md', 'lg', 'xl']) {
|
|
216
|
-
if (await
|
|
216
|
+
if (await wrapper.hasClass(`sky-illustration-${size}`)) {
|
|
217
217
|
foundSize = size;
|
|
218
218
|
}
|
|
219
219
|
}
|
|
@@ -611,7 +611,16 @@ class SkyTokensHarness extends SkyComponentHarness {
|
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
613
|
/**
|
|
614
|
-
*
|
|
614
|
+
* Gets a specific token based on the filter criteria.
|
|
615
|
+
* @param filter The filter criteria.
|
|
616
|
+
*/
|
|
617
|
+
async getToken(filter) {
|
|
618
|
+
return await this.locatorFor(SkyTokenHarness.with(filter))();
|
|
619
|
+
}
|
|
620
|
+
/**
|
|
621
|
+
* Gets an array of tokens based on the filter criteria.
|
|
622
|
+
* If no filter is provided, returns all tokens.
|
|
623
|
+
* @param filters The optional filter criteria.
|
|
615
624
|
*/
|
|
616
625
|
async getTokens(filters) {
|
|
617
626
|
return await this.locatorForAll(SkyTokenHarness.with(filters || {}))();
|
|
@@ -758,6 +767,7 @@ class SkyAlertFixture {
|
|
|
758
767
|
|
|
759
768
|
/**
|
|
760
769
|
* Allows interaction with a SKY UX label component.
|
|
770
|
+
* @deprecated Use `SkyLabelHarness` instead.
|
|
761
771
|
* @internal
|
|
762
772
|
*/
|
|
763
773
|
class SkyLabelFixture {
|
|
@@ -797,6 +807,7 @@ class SkyLabelFixture {
|
|
|
797
807
|
}
|
|
798
808
|
|
|
799
809
|
/**
|
|
810
|
+
* @deprecated Use `SkyWaitHarness` instead.
|
|
800
811
|
* @internal
|
|
801
812
|
*/
|
|
802
813
|
class SkyWaitFixture {
|