test: run test after deploy

This commit is contained in:
MiniDigger | Martin 2024-04-27 10:21:56 +02:00
parent 8edd10a024
commit 22cd504907
3 changed files with 8 additions and 5 deletions

View File

@ -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:

View File

@ -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);

View File

@ -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({