diff --git a/apps/next/tests/ProtoBrowser.ts b/apps/next/tests/ProtoBrowser.ts index f936f759d..220ca94aa 100644 --- a/apps/next/tests/ProtoBrowser.ts +++ b/apps/next/tests/ProtoBrowser.ts @@ -147,6 +147,10 @@ export class ProtoBrowser { await this.getPage().goto(HOST_URL + `admin/${entity}`); } + async navigateToDocumentation() { + await this.getPage().goto(HOST_URL + `documentation`); + } + async getEditableObjectCreate() { /*open create dialog */ await this.clickElement('#admin-dataview-add-btn'); diff --git a/apps/next/tests/e2e/basic.test.ts b/apps/next/tests/e2e/basic.test.ts index ae0f8b41a..7ffcf33a8 100644 --- a/apps/next/tests/e2e/basic.test.ts +++ b/apps/next/tests/e2e/basic.test.ts @@ -36,6 +36,10 @@ describe("Basic tests", () => { afterEach(async () => { await protoBrowser?.close() }) + it("should have a documentation page", async () => { + await protoBrowser.navigateToDocumentation() + expect(await protoBrowser.waitForElement('#__next')).toBeTruthy(); + }, 30000) it("should have a public sign in authentication interface", async () => { await protoBrowser.navigateToLogin() expect(await protoBrowser.getUrlPath()).toBe('/auth/login');