You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							38 lines
						
					
					
						
							1.7 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							38 lines
						
					
					
						
							1.7 KiB
						
					
					
				
								/**
							 | 
						|
								 * @license
							 | 
						|
								 * Copyright Google LLC All Rights Reserved.
							 | 
						|
								 *
							 | 
						|
								 * Use of this source code is governed by an MIT-style license that can be
							 | 
						|
								 * found in the LICENSE file at https://angular.io/license
							 | 
						|
								 */
							 | 
						|
								import { ContentContainerComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
							 | 
						|
								import { DialogRole } from '@angular/material/dialog';
							 | 
						|
								import { DialogHarnessFilters } from './dialog-harness-filters';
							 | 
						|
								/** Harness for interacting with a standard `MatDialog` in tests. */
							 | 
						|
								export declare class MatDialogHarness extends ContentContainerComponentHarness<string> {
							 | 
						|
								    /** The selector for the host element of a `MatDialog` instance. */
							 | 
						|
								    static hostSelector: string;
							 | 
						|
								    /**
							 | 
						|
								     * Gets a `HarnessPredicate` that can be used to search for a `MatDialogHarness` that meets
							 | 
						|
								     * certain criteria.
							 | 
						|
								     * @param options Options for filtering which dialog instances are considered a match.
							 | 
						|
								     * @return a `HarnessPredicate` configured with the given options.
							 | 
						|
								     */
							 | 
						|
								    static with(options?: DialogHarnessFilters): HarnessPredicate<MatDialogHarness>;
							 | 
						|
								    /** Gets the id of the dialog. */
							 | 
						|
								    getId(): Promise<string | null>;
							 | 
						|
								    /** Gets the role of the dialog. */
							 | 
						|
								    getRole(): Promise<DialogRole | null>;
							 | 
						|
								    /** Gets the value of the dialog's "aria-label" attribute. */
							 | 
						|
								    getAriaLabel(): Promise<string | null>;
							 | 
						|
								    /** Gets the value of the dialog's "aria-labelledby" attribute. */
							 | 
						|
								    getAriaLabelledby(): Promise<string | null>;
							 | 
						|
								    /** Gets the value of the dialog's "aria-describedby" attribute. */
							 | 
						|
								    getAriaDescribedby(): Promise<string | null>;
							 | 
						|
								    /**
							 | 
						|
								     * Closes the dialog by pressing escape.
							 | 
						|
								     *
							 | 
						|
								     * Note: this method does nothing if `disableClose` has been set to `true` for the dialog.
							 | 
						|
								     */
							 | 
						|
								    close(): Promise<void>;
							 | 
						|
								}
							 |