import { Given, Then, When } from "@badeball/cypress-cucumber-preprocessor"; // Throwaway smoke test — see login-smoke.feature. Steps are deliberately // minimal/self-contained here rather than shared, since this whole file is // meant to be deleted once it's proven the preprocessor works. Given("I am not signed in", () => { cy.intercept("GET", "**/auth/me", { statusCode: 401 }); }); When("I visit {string}", (path: string) => { cy.visit(path); }); When("I fill in the {string} field with {string}", (fieldId: string, value: string) => { cy.get(`#${fieldId}`).type(value); }); Then("the {string} field should have the value {string}", (fieldId: string, value: string) => { cy.get(`#${fieldId}`).should("have.value", value); });