API reference for Angular Material progress-spinner-testing

import {MatProgressSpinnerHarness} from '@angular/material/progress-spinner/testing';

Harness for interacting with a standard mat-progress-spinner in tests.

Properties
Name Description

static hostSelector: '.mat-progress-spinner'

The selector for the host element of a MatProgressSpinner instance.

Methods
async
getMode

Gets the progress spinner's mode.

Returns
Promise<ProgressSpinnerMode>

async
getValue

Gets the progress spinner's value.

Returns
Promise<number | null>

async
host

Gets a Promise for the TestElement representing the host element of the component.

Returns
Promise<TestElement>

static
with

Gets a HarnessPredicate that can be used to search for a MatProgressSpinnerHarness that meets certain criteria.

Parameters

options

ProgressSpinnerHarnessFilters = {}

Returns
HarnessPredicate<MatProgressSpinnerHarness>

a HarnessPredicate configured with the given options.

A set of criteria that can be used to filter a list of MatProgressSpinnerHarness instances.