-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
41b7e41
commit d5baafc
Showing
3 changed files
with
48 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { expect } from "@playwright/test"; | ||
import { test } from "./setup/base"; | ||
|
||
test.describe("Explores", () => { | ||
test("should have data", async ({ project, page }) => { | ||
// Wait for reconciliation to complete | ||
// (But, really, the dashboard link should be disabled until it's been reconciled) | ||
await page.waitForTimeout(5000); | ||
|
||
// Navigate to the explore | ||
await page | ||
.getByRole("link", { name: "Programmatic Ads Auction" }) | ||
.first() | ||
.click(); | ||
|
||
// Check the Big Number | ||
await expect( | ||
page.getByRole("button", { name: "Requests 635M" }), | ||
).toBeVisible(); | ||
}); | ||
}); |
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,19 @@ | ||
import type { Page } from "@playwright/test"; | ||
import { exec } from "child_process"; | ||
import { promisify } from "util"; | ||
|
||
const execAsync = promisify(exec); | ||
|
||
export async function projectDeploy(page: Page) { | ||
await execAsync( | ||
"rill deploy --path tests/setup/git/repos/rill-examples --subpath rill-openrtb-prog-ads --project openrtb --github true", | ||
); | ||
await page.goto("/e2e/openrtb"); | ||
} | ||
|
||
export async function projectDelete() { | ||
await execAsync("rill project delete openrtb --force"); | ||
await execAsync( | ||
"rm -rf tests/setup/git/repos/rill-examples/rill-openrtb-prog-ads/.rillcloud", | ||
); | ||
} |