Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/app/tests/e2e/page-objects/DashboardPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,10 @@ export class DashboardPage {
async createNewDashboard() {
await this.createDashboardButton.click();
await this.page.waitForURL(/\/dashboards\/.+/);
// The URL changes before the temporary dashboard page is swapped for the
// saved one. A rename typed in between lands on the temporary dashboard
// and is lost. The save button only exists on the temporary page.
await expect(this.createDashboardButton).toBeHidden({ timeout: 15000 });
}

async changeGranularity(granularity: string) {
Expand Down Expand Up @@ -564,6 +568,10 @@ export class DashboardPage {
async openNewTileEditor() {
await this.createDashboardButton.click();
await this.page.waitForURL(/\/dashboards\/.+/);
// The URL changes before the temporary dashboard page is swapped for the
// saved one. A rename typed in between lands on the temporary dashboard
// and is lost. The save button only exists on the temporary page.
await expect(this.createDashboardButton).toBeHidden({ timeout: 15000 });
await this.addDropdownButton.click();
await this.addTileMenuItem.click();
await expect(this.chartEditor.nameInput).toBeVisible();
Expand Down
Loading