API reference for Angular Material progress-bar-testing

import {MatProgressBarHarness} from '@angular/material/progress-bar/testing';

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

Properties
Name Description

static hostSelector: '.mat-progress-bar'

The selector for the host element of a MatProgressBar instance.

Methods
async
getMode

Gets the progress bar's mode.

Returns
Promise<string | null>

async
getValue

Gets the progress bar'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 MatProgressBarHarness that meets certain criteria.

Parameters

options

ProgressBarHarnessFilters = {}

Returns
HarnessPredicate<MatProgressBarHarness>

a HarnessPredicate configured with the given options.

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