mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-11-21 01:21:54 +08:00
test(e2e): fix project list query test, configure e2e users
This commit is contained in:
parent
d81c0052ec
commit
06c71a9d70
2
.github/workflows/e2e.yml
vendored
2
.github/workflows/e2e.yml
vendored
@ -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)
|
||||
|
@ -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?)
|
||||
|
Loading…
Reference in New Issue
Block a user