mirror of
https://github.com/penpot/penpot.git
synced 2025-06-01 02:51:40 +02:00
🐛 Fix libraries context menu (#5854)
* ✨ Add integration test for Bug #10421 * 🐛 Fix dashboard library item menu * ✨ Fixup integration test
This commit is contained in:
parent
8c81d48858
commit
cad7d75590
11 changed files with 197 additions and 85 deletions
|
@ -72,7 +72,7 @@ export class DashboardPage extends BaseWebSocketPage {
|
|||
|
||||
this.draftsLink = this.sidebar.getByText("Drafts");
|
||||
this.fontsLink = this.sidebar.getByText("Fonts");
|
||||
this.libsLink = this.sidebar.getByText("Libraries");
|
||||
this.librariesLink = this.sidebar.getByText("Libraries");
|
||||
|
||||
this.searchButton = page.getByRole("button", { name: "dashboard-search" });
|
||||
this.searchInput = page.getByPlaceholder("Search…");
|
||||
|
@ -281,6 +281,13 @@ export class DashboardPage extends BaseWebSocketPage {
|
|||
|
||||
await this.userProfileOption.click();
|
||||
}
|
||||
|
||||
async goToLibraries() {
|
||||
await this.page.goto(
|
||||
`#/dashboard/libraries?team-id=${DashboardPage.anyTeamId}`,
|
||||
);
|
||||
await expect(this.mainHeading).toHaveText("Libraries");
|
||||
}
|
||||
}
|
||||
|
||||
export default DashboardPage;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue