@toptal/davinci-qa 5.1.0 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 5.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1027](https://github.com/toptal/davinci/pull/1027) [`adc410ba`](https://github.com/toptal/davinci/commit/adc410ba47843dab515479f46169a5d64a159f00) Thanks [@denieler](https://github.com/denieler)! - Add baseUrl argument to davinci qa e2e command for cypress
8
+
3
9
  ## 5.1.0
4
10
 
5
11
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/davinci-qa",
3
- "version": "5.1.0",
3
+ "version": "5.2.0",
4
4
  "description": "QA package to test your application",
5
5
  "publishConfig": {
6
6
  "access": "public"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/davinci-qa",
3
- "version": "5.1.0",
3
+ "version": "5.2.0",
4
4
  "description": "QA package to test your application",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -1,4 +1,3 @@
1
- const path = require('path')
2
1
  const {
3
2
  runSync,
4
3
  print,
@@ -7,7 +6,11 @@ const {
7
6
  } = require('@toptal/davinci-cli-shared')
8
7
 
9
8
  const endToEndTestCommand = ({
10
- options: { open = false, ...cypressOptions } = {},
9
+ options: {
10
+ open = false,
11
+ baseUrl,
12
+ ...cypressOptions
13
+ } = {},
11
14
  files: testFiles = []
12
15
  }) => {
13
16
  print.green('Running end to end tests...')
@@ -25,6 +28,7 @@ const endToEndTestCommand = ({
25
28
  '--config-file',
26
29
  configPath,
27
30
  ...testFiles,
31
+ ...(baseUrl ? ['--config', `baseUrl=${baseUrl}`] : []),
28
32
  ...convertToCLIParameters(cypressOptions)
29
33
  ])
30
34
  }
@@ -39,6 +43,10 @@ const endToEndCommandCreator = {
39
43
  {
40
44
  label: 'opens the Cypress Test Runner',
41
45
  name: '--open'
46
+ },
47
+ {
48
+ label: 'opens the Cypress Test Runner',
49
+ name: '--baseUrl <baseUrl>'
42
50
  }
43
51
  ]
44
52
  }