MCPcopy Create free account
hub / github.com/angular/components / close

Method close

src/material/dialog/testing/dialog-harness.ts:82–84  ·  view source on GitHub ↗

* Closes the dialog by pressing escape. * * Note: this method does nothing if `disableClose` has been set to `true` for the dialog.

()

Source from the content-addressed store, hash-verified

80 * Note: this method does nothing if `disableClose` has been set to `true` for the dialog.
81 */
82 async close(): Promise<void> {
83 await (await this.host()).sendKeys(TestKey.ESCAPE);
84 }
85
86 /** Gets the dialog's text. */
87 async getText() {

Callers 1

Calls 1

sendKeysMethod · 0.65

Tested by

no test coverage detected