Skip to content

Commit

Permalink
Adds test to check if documentation is loading (minimum documentation…
Browse files Browse the repository at this point in the history
… e2e, checking for #__next)
  • Loading branch information
jcarlosn committed Feb 6, 2024
1 parent 285aa11 commit c4781d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/next/tests/ProtoBrowser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 4 additions & 0 deletions apps/next/tests/e2e/basic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit c4781d5

Please sign in to comment.