Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests #5

Merged
merged 3 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"scripts": {
"clean": "rm -rf allure-results && rm -rf allure-report",
"test": "npm run clean && wdio run wdio.conf.js",
"test:local": "npm run clean && wdio run wdio.local.conf.js",
"test:local:debug": "DEBUG=true npm run test:local",
"test:docker": "npm run clean && wdio run wdio.docker.conf.js",
"test:local": "npm run clean && BASE_URL=\"http://localhost:3000\" wdio run wdio.local.conf.js",
"test:local:debug": "npm run clean && DEBUG=true BASE_URL=\"http://localhost:3000\" wdio run wdio.local.conf.js",
"test:docker": "npm run clean && BASE_URL=\"http://cdp.127.0.0.1.sslip.io:3333\" wdio run wdio.local.conf.js",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was hoping we could remove the :docker one and just use the :local one listening to an env var if set otherwise default to localhost. That way we could also push this to the template and let tenants override it in an env var if they want to

"test:github": "npm run clean && wdio run wdio.github.conf.js",
"format": "prettier --write 'test/**/*.js' '**/*.{js,md,json,config.js}'",
"format:check": "prettier --check 'test/**/*.js' '**/*.{js,md,json,config.js}'",
Expand Down
7 changes: 3 additions & 4 deletions wdio.conf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const fs = require('node:fs')
const debug = process.env.DEBUG
const oneHour = 60 * 60 * 1000

export const config = {
Expand Down Expand Up @@ -54,9 +53,9 @@ export const config = {
}
],

execArgv: debug ? ['--inspect'] : [],
execArgv: [],

logLevel: debug ? 'debug' : 'info',
logLevel: 'info',

// Number of failures before the test suite bails.
bail: 0,
Expand Down Expand Up @@ -90,7 +89,7 @@ export const config = {
// See the full list at http://mochajs.org/
mochaOpts: {
ui: 'bdd',
timeout: debug ? oneHour : 60000
timeout: oneHour
},
//
// =====
Expand Down
328 changes: 0 additions & 328 deletions wdio.docker.conf.js

This file was deleted.

Loading
Loading