test: add portal end-to-end quality gates
This commit is contained in:
1 parent
f7481d4cde
commit
9c0d43b1ec
10 files changed
+609
-123
No files matched your search
@@ -0,0 +1,34 @@
|
||||
/* 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";
|
||||
Reference in new issue
Block a user