Skip to content

Commit 0c8dbe0

Browse files
committed
Refactored framework project structure
1 parent cbaec42 commit 0c8dbe0

File tree

16 files changed

+14
-8
lines changed

16 files changed

+14
-8
lines changed

.github/workflows/node.js.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
build:
1414

15-
runs-on: ubuntu-latest
15+
runs-on: windows-latest
1616

1717
strategy:
1818
matrix:
@@ -26,7 +26,14 @@ jobs:
2626
with:
2727
node-version: ${{ matrix.node-version }}
2828
cache: 'npm'
29-
- run: npm install
30-
- run: npm ci
29+
- name: Install dependencies versions in the package-lock.json
30+
run: npm ci
3131
- run: npm run build --if-present
32-
- run: npm test
32+
- name: Run Test
33+
run: npm test
34+
- uses: actions/upload-artifact@v1
35+
if: failure()
36+
with:
37+
name: logs
38+
path: logs
39+

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@
2525
"webdriverio": "^8.1.2"
2626
},
2727
"scripts": {
28-
"pretest": "rmdir /Q /S reports",
29-
"test": "wdio run ./conf/wdio.conf.js",
28+
"test": "npx wdio ./src/conf/wdio.conf.js",
3029
"pretest:docker": "docker-compose up -d",
31-
"test:docker": "npx wdio ./conf/wdio.docker.conf.js",
30+
"test:docker": "npx wdio ./src/conf/wdio.docker.conf.js",
3231
"posttest:docker": "docker-compose down",
3332
"checkupdates": "npx npm-check-updates -u",
3433
"cleanup": "rmdir /Q /S reports",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ export const config = {
277277
* @param {Object} result.retries informations to spec related retries, e.g. `{ attempts: 0, limit: 0 }`
278278
*/
279279
afterTest: async function (test, context, { error, result, duration, passed, retries }) {
280-
if (!passed) {
280+
if (error) {
281281
await browser.takeScreenshot();
282282
}
283283
},
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)