-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explore E2E pass 1 - Fix metrics editing in tests
- Loading branch information
1 parent
611836e
commit c15acf2
Showing
12 changed files
with
175 additions
and
214 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,11 @@ | ||
import { createMetricsViewFromModel } from "web-local/tests/utils/metricsViewHelpers"; | ||
import { createExploreFromModel } from "web-local/tests/utils/exploreHelpers"; | ||
import { createAdBidsModel } from "web-local/tests/utils/dataSpecifcHelpers"; | ||
import { test } from "../utils/test"; | ||
import { waitForFileNavEntry } from "../utils/waitHelpers"; | ||
|
||
export function useDashboardFlowTestSetup() { | ||
test.beforeEach(async ({ page }) => { | ||
test.setTimeout(45000); | ||
await createAdBidsModel(page); | ||
|
||
await Promise.all([ | ||
waitForFileNavEntry( | ||
page, | ||
`/dashboards/AdBids_model_dashboard.yaml`, | ||
true, | ||
), | ||
createMetricsViewFromModel(page, "/models/AdBids_model.sql"), | ||
]); | ||
await createExploreFromModel(page); | ||
}); | ||
} |
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
Oops, something went wrong.