Gets the id of the dialog.
()
| 48 | |
| 49 | /** Gets the id of the dialog. */ |
| 50 | async getId(): Promise<string | null> { |
| 51 | const id = await (await this.host()).getAttribute('id'); |
| 52 | // In case no id has been specified, the "id" property always returns |
| 53 | // an empty string. To make this method more explicit, we return null. |
| 54 | return id !== '' ? id : null; |
| 55 | } |
| 56 | |
| 57 | /** Gets the role of the dialog. */ |
| 58 | async getRole(): Promise<DialogRole | null> { |
no test coverage detected