test(e2e): fix project list query test, configure e2e users

This commit is contained in:
MiniDigger | Martin 2024-04-14 12:02:51 +02:00
parent d81c0052ec
commit 06c71a9d70
2 changed files with 4 additions and 2 deletions

View File

@ -62,4 +62,6 @@ jobs:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
BROWSERSTACK_DEBUG: ${{ github.event.inputs.debug || false }}
E2E_PASSWORD: ${{ secrets.E2E_PASSWORD }}
E2E_TOTP_SECRET: ${{ secrets.E2E_TOTP_SECRET }}
run: (cd e2e && pnpm run browserstack-multiple)

View File

@ -23,10 +23,10 @@ Scenario("Test Project List", async ({ I, util, IndexPage }) => {
});
Scenario("Test Project List Query", async ({ I, util, IndexPage }) => {
util.openHangarPage("/?page=1&query=Test&sort=-downloads&category=admin_tools");
util.openHangarPage("/?page=1&query=A&sort=-downloads&category=admin_tools");
// check that query works
// I.seeInField(IndexPage.searchField, "Test"); // TODO fix me
I.seeInField(IndexPage.searchField, "A");
I.seeElement(locate("button").withAttr({ "aria-label": "Page 2", disabled: "" }));
I.seeElement(locate("button.bg-gradient-to-r").withText("Most Downloads"));
// TODO test minecraft version (maybe selecting a sub version should open the tree too?)