Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

563 B
Raw Blame
/* Copyright 2026 Marimo. All rights reserved. */
import { expect, test } from "@playwright/test";
import { getAppUrl } from "../playwright.config";

const appUrl = getAppUrl("bad_button.py");

test.beforeEach(async ({ page }, info) => {
  await page.goto(appUrl);
  if (info.retry) {
    await page.reload();
  }
});

test("invalid on_click does not crash kernel", async ({ page }) => {
  await page.getByRole("button", { name: "Bad button" }).click();
  // the kernel should still be alive
  await expect(page.getByText("kernel not found")).toHaveCount(0);
});