@gravitee/ui-particles-angular 16.0.0-card-selection-harness-f5c417f → 16.0.0-renovate-digests-pin-00059aa

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.
@@ -7366,8 +7366,7 @@ class GioFormSelectionInlineCardHarness extends ComponentHarness {
7366
7366
  }
7367
7367
  async getValue() {
7368
7368
  const host = await this.host();
7369
- const value = (await host.getAttribute('value')) ?? (await host.getAttribute('ng-reflect-value'));
7370
- return value ?? null;
7369
+ return (await host.getAttribute('value')) ?? null;
7371
7370
  }
7372
7371
  async isSelected() {
7373
7372
  return (await this.host()).hasClass('selected');
@@ -7400,6 +7399,7 @@ class GioFormSelectionInlineHarness extends ComponentHarness {
7400
7399
  constructor() {
7401
7400
  super(...arguments);
7402
7401
  this.getCards = this.locatorForAll(GioFormSelectionInlineCardHarness);
7402
+ this.getCardByValue = (value) => this.locatorFor(`gio-form-selection-inline-card[value="${value}"]`)();
7403
7403
  }
7404
7404
  static { this.hostSelector = 'gio-form-selection-inline'; }
7405
7405
  /**
@@ -7412,18 +7412,6 @@ class GioFormSelectionInlineHarness extends ComponentHarness {
7412
7412
  static with(options = {}) {
7413
7413
  return new HarnessPredicate(GioFormSelectionInlineHarness, options);
7414
7414
  }
7415
- async getCardByValue(value) {
7416
- const primaryLocator = await this.locatorForOptional(`gio-form-selection-inline-card[value="${value}"]`)();
7417
- if (primaryLocator) {
7418
- return primaryLocator;
7419
- }
7420
- // fallback
7421
- const secondaryLocator = await this.locatorForOptional(`gio-form-selection-inline-card[ng-reflect-value="${value}"]`)();
7422
- if (secondaryLocator) {
7423
- return secondaryLocator;
7424
- }
7425
- throw new Error(`No card found with value or ng-reflect-value "${value}"`);
7426
- }
7427
7415
  async getSelectedValue() {
7428
7416
  const cards = await this.getCards();
7429
7417
  const cardsAttr = await parallel(() => cards.map(async (row) => ({ class: await row.isSelected(), value: await row.getValue() })));