Skip to content

Commit

Permalink
fix: some more testing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mindspank committed Feb 4, 2025
1 parent 1781c5b commit d3a1ed0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
13 changes: 8 additions & 5 deletions web-local/tests/explores/explores.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ test.describe("explores", () => {
assertLeaderboards(page, [
{
label: "Publisher",
values: ["null", "Facebook", "Google", "Yahoo", "Microsoft"],
values: ["null", "Facebook", "Microsoft", "Google", "Yahoo"],
},
{
label: "Domain",
Expand Down Expand Up @@ -74,6 +74,9 @@ test.describe("explores", () => {
await page.getByRole("menuitem", { name: "All Time" }).click();
});

// Turn on comparison
await page.getByRole("button", { name: "Comparing" }).click();

// Check the total records are 100k
await expect(page.getByText("Total records 100k")).toBeVisible();

Expand Down Expand Up @@ -225,7 +228,7 @@ test.describe("explores", () => {
const changeDisplayNameDoc = `
type: explore
title: "Adbids dashboard renamed"
display_name: "Adbids dashboard renamed"
metrics_view: AdBids_model_metrics
dimensions: '*'
Expand Down Expand Up @@ -257,7 +260,7 @@ measures: '*'
version: 1
type: metrics_view
title: "AdBids_model_dashboard"
display_name: "AdBids_model_dashboard"
model: "AdBids_model"
default_time_range: ""
smallest_time_grain: "week"
Expand Down Expand Up @@ -304,7 +307,7 @@ measures: '*'
version: 1
type: metrics_view
title: "AdBids_model_dashboard"
display_name: "AdBids_model_dashboard"
model: "AdBids_model"
default_time_range: ""
smallest_time_grain: "week"
Expand Down Expand Up @@ -333,7 +336,7 @@ measures: '*'
version: 1
type: metrics_view
title: "AdBids_model_dashboard_rename"
display_name: "AdBids_model_dashboard_rename"
model: "AdBids_model"
default_time_range: ""
smallest_time_grain: "week"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ test.describe("leaderboard context column", () => {
version: 1
type: metrics_view
title: "AdBids_model_dashboard"
display_name: "AdBids_model_dashboard"
model: "AdBids_model"
default_time_range: ""
smallest_time_grain: ""
Expand Down
2 changes: 1 addition & 1 deletion web-local/tests/explores/number-formatting.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ test.describe("smoke tests for number formatting", () => {
// This is a metrics spec with all available formatting options
const formatterFlowDashboard = `# Visit https://docs.rilldata.com/reference/project-files to learn more about Rill project files.
kind: metrics_view
title: "AdBids_model_dashboard"
display_name: "AdBids_model_dashboard"
model: "AdBids_model"
timeseries: "timestamp"
measures:
Expand Down
2 changes: 1 addition & 1 deletion web-local/tests/explores/time-controls-from-config.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ test.describe("time controls settings from explore preset", () => {
function getDashboardYaml(defaults: string, extras = "") {
return `
type: explore
title: "AdBids_model_metrics_explore"
display_name: "AdBids_model_metrics_explore"
metrics_view: "AdBids_model_metrics"
${extras}
Expand Down

0 comments on commit d3a1ed0

Please sign in to comment.