Installing NPM dependencies in CI for tests

This commit is contained in:
David Négrier 2021-12-01 14:29:51 +01:00
parent fcf0888864
commit a3b20cf065
3 changed files with 10 additions and 2 deletions

View File

@ -20,6 +20,15 @@ jobs:
- name: "Checkout" - name: "Checkout"
uses: "actions/checkout@v2.0.0" uses: "actions/checkout@v2.0.0"
- name: "Setup NodeJS"
uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: "Install dependencies"
run: yarn install
working-directory: "tests"
- name: "Setup .env file" - name: "Setup .env file"
run: cp .env.template .env run: cp .env.template .env

View File

@ -11,5 +11,5 @@ module.exports = {
"thumbnails": false, "thumbnails": false,
}, },
"assertionTimeout": 10000, "assertionTimeout": 10000,
"selectorTimeout": 20000, "selectorTimeout": 40000,
} }

View File

@ -22,7 +22,6 @@ test("Test that variables storage works", async (t: TestController) => {
await t.useRole(userAlice) await t.useRole(userAlice)
.switchToIframe("#cowebsite-buffer iframe") .switchToIframe("#cowebsite-buffer iframe")
.debug()
.expect(variableInput.value).eql('default value') .expect(variableInput.value).eql('default value')
.typeText(variableInput, 'new value') .typeText(variableInput, 'new value')
.switchToPreviousWindow() .switchToPreviousWindow()