fix cypress browser
parent
96ffa90546
commit
0f70bbe14c
|
|
@ -4,7 +4,7 @@ import { exec } from 'node:child_process';
|
||||||
import * as http from 'node:http';
|
import * as http from 'node:http';
|
||||||
import { app } from '../app.js';
|
import { app } from '../app.js';
|
||||||
function runCypress(browser, done) {
|
function runCypress(browser, done) {
|
||||||
let cypressCommand = `cypress run --config-file cypress.config.js --browser ${browser}"`;
|
let cypressCommand = `cypress run --config-file cypress.config.js --browser ${browser}`;
|
||||||
if ((process.env.CYPRESS_RECORD_KEY ?? '') !== '') {
|
if ((process.env.CYPRESS_RECORD_KEY ?? '') !== '') {
|
||||||
cypressCommand += ` --tag "${browser},${process.version} --record`;
|
cypressCommand += ` --tag "${browser},${process.version} --record`;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import * as http from 'node:http'
|
||||||
import { app } from '../app.js'
|
import { app } from '../app.js'
|
||||||
|
|
||||||
function runCypress(browser: 'chrome' | 'firefox', done: () => void): void {
|
function runCypress(browser: 'chrome' | 'firefox', done: () => void): void {
|
||||||
let cypressCommand = `cypress run --config-file cypress.config.js --browser ${browser}"`
|
let cypressCommand = `cypress run --config-file cypress.config.js --browser ${browser}`
|
||||||
|
|
||||||
if ((process.env.CYPRESS_RECORD_KEY ?? '') !== '') {
|
if ((process.env.CYPRESS_RECORD_KEY ?? '') !== '') {
|
||||||
cypressCommand += ` --tag "${browser},${process.version} --record`
|
cypressCommand += ` --tag "${browser},${process.version} --record`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue