settings.spec.ts 522 B

1234567891011121314
  1. import { test, expect } from "../fixtures"
  2. import { closeDialog, openSettings } from "../actions"
  3. test("smoke settings dialog opens, switches tabs, closes", async ({ page, gotoSession }) => {
  4. await gotoSession()
  5. const dialog = await openSettings(page)
  6. await dialog.getByRole("tab", { name: "Shortcuts" }).click()
  7. await expect(dialog.getByRole("button", { name: "Reset to defaults" })).toBeVisible()
  8. await expect(dialog.getByPlaceholder("Search shortcuts")).toBeVisible()
  9. await closeDialog(page, dialog)
  10. })