import { withProdApp } from "../../test_utils/with-prod-app";
describe("login", () => {
it("displays login form", async () => {
return withProdApp(async ({ rest_api }) => {
const result = await rest_api.get("/logowanie");
const usernameStructure = `
`;
const passwordStructure = `
`;
if (
!(
result
.replace(/\s/g, "")
.includes(usernameStructure.replace(/\s/g, "")) &&
result
.replace(/\s/g, "")
.includes(passwordStructure.replace(/\s/g, ""))
)
)
throw new Error("Bad html structure!");
});
});
});