Function matButtonHarnessWithIcon

  • Returns a predicate to query for MatButtonHarness that contains a specific icon. Respects all filter options of MatButtonHarness itself, and adds the option to specify the name of an icon which must exist inside the button. If no icon name is specified, finds buttons with any icon.

    const saveButton =
    await loader.getHarness(matButtonHarnessWithIcon({ name: 'save' }));

    Parameters

    Returns HarnessPredicate<MatButtonHarness>