diff --git a/__fixtures/config/jsConfig.js b/__fixtures/config/jsConfig.js index ed46047..49edd9b 100644 --- a/__fixtures/config/jsConfig.js +++ b/__fixtures/config/jsConfig.js @@ -1,5 +1,5 @@ module.exports = { - gridUrl: 'http://localhost:4444/wd/hub', + gridUrl: 'local', baseUrl: 'http://localhost', pageLoadTimeout: 0, httpTimeout: 60000, @@ -11,17 +11,23 @@ module.exports = { 'testplane-tests/**/*.testplane.(t|j)s' ], browsers: [ - 'chrome' + 'chrome', + 'firefox' ] } }, browsers: { chrome: { - automationProtocol: 'devtools', headless: true, desiredCapabilities: { browserName: 'chrome' } + }, + firefox: { + headless: true, + desiredCapabilities: { + browserName: 'firefox' + } } } }; diff --git a/__fixtures/config/withEverything.js b/__fixtures/config/withEverything.js index 47816f3..22e6484 100644 --- a/__fixtures/config/withEverything.js +++ b/__fixtures/config/withEverything.js @@ -4,7 +4,7 @@ import path from "path"; const isCi = Boolean(process.env.CI); export default { - gridUrl: "http://localhost:4444/wd/hub", + gridUrl: "local", baseUrl: "http://localhost", pageLoadTimeout: 0, httpTimeout: 60000, @@ -16,17 +16,23 @@ export default { "testplane-tests/**/*.testplane.(t|j)s" ], browsers: [ - "chrome" + "chrome", + "firefox" ] } }, browsers: { chrome: { - automationProtocol: "devtools", headless: true, desiredCapabilities: { browserName: "chrome" } + }, + firefox: { + headless: true, + desiredCapabilities: { + browserName: "firefox" + } } }, plugins: { diff --git a/src/constants/baseGeneralPrompts.ts b/src/constants/baseGeneralPrompts.ts index 542cba3..a31d8ad 100644 --- a/src/constants/baseGeneralPrompts.ts +++ b/src/constants/baseGeneralPrompts.ts @@ -11,7 +11,7 @@ const baseGeneralPrompts: GeneralPrompt[] = [ type: "input", name: "gridUrl", message: "GridUrl", - default: "http://localhost:4444/wd/hub", + default: "local", }, { type: "confirm", diff --git a/src/constants/defaultTestplaneConfig.ts b/src/constants/defaultTestplaneConfig.ts index 92780ea..af40d05 100644 --- a/src/constants/defaultTestplaneConfig.ts +++ b/src/constants/defaultTestplaneConfig.ts @@ -3,7 +3,7 @@ import type { TestplaneConfig } from "../types/testplaneConfig"; export const defaultTestplaneTestsDir = "testplane-tests"; const defaultTestplaneConfig: TestplaneConfig = { - gridUrl: "http://localhost:4444/wd/hub", + gridUrl: "local", baseUrl: "http://localhost", pageLoadTimeout: 0, @@ -14,18 +14,23 @@ const defaultTestplaneConfig: TestplaneConfig = { sets: { desktop: { files: [`${defaultTestplaneTestsDir}/**/*.testplane.(t|j)s`], - browsers: ["chrome"], + browsers: ["chrome", "firefox"], }, }, browsers: { chrome: { - automationProtocol: "devtools", headless: true, desiredCapabilities: { browserName: "chrome", }, }, + firefox: { + headless: true, + desiredCapabilities: { + browserName: "firefox", + }, + }, }, };