mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-12-09 06:32:43 +08:00
0752ec5e05
* 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
16 lines
539 B
TypeScript
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");
|
|
});
|