mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 18:20:30 +08:00
Playwright is more flexible and has better developer experience than Cypress.
We add end to end tests covering:
- project source browsing
- tree view
- commit list view
- commit view
- routing
- hash based
- history API based
- clipboard copy paste functionality
- seed view
- project search
- landing page view
- settings
Co-authored-by: Sebastian Martinez <me@sebastinez.dev>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
19 lines
590 B
TypeScript
19 lines
590 B
TypeScript
import { test, expect } from "@tests/support/fixtures.js";
|
|
|
|
test("exceptions in production build", async ({ page, browserName }) => {
|
|
// It's enough to check this once.
|
|
if (browserName !== "chromium") {
|
|
test.skip();
|
|
}
|
|
|
|
await page.goto("/");
|
|
// Wait for scripts to finish executing, there might be exceptions that
|
|
// happen after the page has been painted.
|
|
await page.waitForTimeout(2000);
|
|
await expect(
|
|
page.locator(
|
|
"text=Radicle enables developers to securely collaborate on software over a peer-to-peer network built on Git.",
|
|
),
|
|
).toBeVisible();
|
|
});
|