Files
immich-redaktions-plugin/e2e/fixtures.ts

35 lines
779 B
TypeScript

/* eslint-disable react-hooks/rules-of-hooks */
import { test as base } from "@playwright/test";
export type EditorialFixture = {
organizationName: string;
name: string;
email: string;
password: string;
street: string;
postalCode: string;
city: string;
countryCode: string;
};
export const editorialFixture: EditorialFixture = {
organizationName: "Suddeutsche Zeitung",
name: "Redaktion Sport",
email: "sport@sz-example.de",
password: "SecurePassword123!",
street: "Sendlinger Str. 8",
postalCode: "80331",
city: "Munchen",
countryCode: "DE",
};
export const test = base.extend<{
editorialData: EditorialFixture;
}>({
editorialData: async ({}, use) => {
await use(editorialFixture);
},
});
export { expect } from "@playwright/test";