mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-02-17 15:01:42 +08:00
test: run test after deploy
This commit is contained in:
parent
8edd10a024
commit
22cd504907
10
.github/workflows/e2e.yml
vendored
10
.github/workflows/e2e.yml
vendored
@ -8,10 +8,12 @@ on:
|
||||
type: boolean
|
||||
required: false
|
||||
default: false
|
||||
# run on pushes to staging
|
||||
push:
|
||||
branches:
|
||||
- staging
|
||||
# run after deploy
|
||||
workflow_run:
|
||||
workflows: ["Deploy"]
|
||||
branches: ["staging"]
|
||||
types:
|
||||
- completed
|
||||
|
||||
jobs:
|
||||
e2e:
|
||||
|
@ -5,6 +5,7 @@ Scenario("Test New Org", async ({ I, util, IndexPage }) => {
|
||||
util.openHangarPage("/neworganization");
|
||||
const name = "E2EOrg-" + Math.floor(Math.random() * 10000);
|
||||
I.fillField("input[name='name']", name);
|
||||
I.wait(1);
|
||||
I.click("button[title='Create Org']");
|
||||
I.waitInUrl("/" + name);
|
||||
await I.see(name);
|
||||
|
@ -18,7 +18,7 @@ if (process.client) {
|
||||
document.documentElement.classList.remove("light", "dark");
|
||||
document.documentElement.classList.add(settingsStore.darkMode ? "dark" : "light");
|
||||
|
||||
onNuxtReady(() => (window.hangarLoaded = true));
|
||||
onNuxtReady(() => nextTick(() => (window.hangarLoaded = true)));
|
||||
}
|
||||
|
||||
useHead({
|
||||
|
Loading…
Reference in New Issue
Block a user