Files
radicle-explorer/tests/e2e/buildSmoke.spec.ts
T
Rūdolfs OšiņšandSebastian Martinez 9cb9332e88 Replace Cypress with Playwright
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>
2022-12-01 15:54:56 +01:00

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();
});