Hangar/e2e/tests/pages/ApiDocsPage.ts
MiniDigger | Martin 0752ec5e05
feat: introduce auto imports and add e2e tests (#1318)
* chore: introduce auto imports

most likely broken as hell

* more progress

* chore(deps): update deps

* progress!

* feat: add initial e2e test setup

* test: cleanup e2e tests and add a github action

* test: adjust screen size to be 1080p

* test: make test a bit more resilient

* test: allow setting the debug var via workflow dispatch

* test: moar e2e tests
2024-03-23 15:24:38 +01:00

16 lines
539 B
TypeScript

Feature("Api Docs Page");
Scenario("Test Api Docs", async ({ I, util, IndexPage }) => {
util.openHangarPage("/api-docs");
I.seeElement(locate({ shadow: ["rapi-doc"] }));
// TODO no clue how the shadow shit is supposed to work
// I.seeElement(
// locate({ shadow: ["rapi-doc"] })
// .withDescendant("h1")
// .withText("Hangar API"),
// );
// I.waitForText("Hangar API");
// I.click(locate("#link-get-\\/api\\/v1\\/keys"));
// I.waitForText("Fetches a list of API Keys");
});