-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(Run Menu): Add private/protected modifiers and create test harness
- Loading branch information
1 parent
13ccc92
commit 328dc03
Showing
4 changed files
with
69 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { ComponentHarness } from '@angular/cdk/testing'; | ||
import { MatMenuHarness } from '@angular/material/menu/testing'; | ||
|
||
export class RunMenuHarness extends ComponentHarness { | ||
static hostSelector = 'app-run-menu'; | ||
protected getMenu = this.locatorFor(MatMenuHarness); | ||
|
||
async clickMenuButton(menuButtonText: string): Promise<void> { | ||
const menu = await this.getMenu(); | ||
await menu.open(); | ||
return menu.clickItem({ text: menuButtonText }); | ||
} | ||
|
||
async clickArchiveMenuButton(): Promise<void> { | ||
return await this.clickMenuButton('folderArchive'); | ||
} | ||
|
||
async clickUnarchiveMenuButton(): Promise<void> { | ||
return await this.clickMenuButton('folder_offUnarchive'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters