dceky 1.1.7 → 1.1.8
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/README.md +2 -2
- package/lib/start/constants/AVAILABLE_BROWSERS.js +2 -2
- package/lib/start/helpers/getCypressDetectedBrowsersForChooser.d.ts +1 -1
- package/lib/start/helpers/getCypressDetectedBrowsersForChooser.js +3 -3
- package/package.json +1 -1
- package/start/constants/AVAILABLE_BROWSERS.ts +2 -2
- package/start/helpers/getCypressDetectedBrowsersForChooser.ts +3 -3
package/README.md
CHANGED
|
@@ -42,13 +42,13 @@ You'll be automatically guided through a launch process where you'll choose whet
|
|
|
42
42
|
|
|
43
43
|
```ts
|
|
44
44
|
// Arguments:
|
|
45
|
-
npm run ky:start --headless --browser=
|
|
45
|
+
npm run ky:start --headless --browser=chrome,webkit --profile=Stage
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
```ts
|
|
49
49
|
// Example environment:
|
|
50
50
|
HEADLESS=true
|
|
51
|
-
BROWSER=
|
|
51
|
+
BROWSER=chrome,webkit
|
|
52
52
|
PROFILE=Stage
|
|
53
53
|
```
|
|
54
54
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import AVAILABLE_BROWSERS from '../constants/AVAILABLE_BROWSERS';
|
|
2
2
|
/**
|
|
3
3
|
* Subset of {@link AVAILABLE_BROWSERS} to show in the chooser: the browsers
|
|
4
|
-
* `npx cypress info` reports (`- Name:` lines), plus
|
|
4
|
+
* `npx cypress info` reports (`- Name:` lines), plus Webkit (always shown
|
|
5
5
|
* because `cypress info` omits WebKit; https://github.com/cypress-io/cypress/issues/27304).
|
|
6
6
|
* @author Yuen Ler Chow
|
|
7
7
|
*/
|
|
@@ -11,7 +11,7 @@ const getRootPath_1 = __importDefault(require("./getRootPath"));
|
|
|
11
11
|
const AVAILABLE_BROWSERS_1 = __importDefault(require("../constants/AVAILABLE_BROWSERS"));
|
|
12
12
|
/**
|
|
13
13
|
* Subset of {@link AVAILABLE_BROWSERS} to show in the chooser: the browsers
|
|
14
|
-
* `npx cypress info` reports (`- Name:` lines), plus
|
|
14
|
+
* `npx cypress info` reports (`- Name:` lines), plus Webkit (always shown
|
|
15
15
|
* because `cypress info` omits WebKit; https://github.com/cypress-io/cypress/issues/27304).
|
|
16
16
|
* @author Yuen Ler Chow
|
|
17
17
|
*/
|
|
@@ -39,8 +39,8 @@ const getCypressDetectedBrowsersForChooser = () => {
|
|
|
39
39
|
console.warn('Could not detect installed browsers (cypress info failed).');
|
|
40
40
|
}
|
|
41
41
|
return AVAILABLE_BROWSERS_1.default.filter((b) => {
|
|
42
|
-
// Always include
|
|
43
|
-
return b.name === '
|
|
42
|
+
// Always include Webkit in the chooser because "npx cypress info" omits WebKit
|
|
43
|
+
return b.name === 'webkit' || detected.has(b.name);
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
46
|
exports.default = getCypressDetectedBrowsersForChooser;
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ import AVAILABLE_BROWSERS from '../constants/AVAILABLE_BROWSERS';
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Subset of {@link AVAILABLE_BROWSERS} to show in the chooser: the browsers
|
|
12
|
-
* `npx cypress info` reports (`- Name:` lines), plus
|
|
12
|
+
* `npx cypress info` reports (`- Name:` lines), plus Webkit (always shown
|
|
13
13
|
* because `cypress info` omits WebKit; https://github.com/cypress-io/cypress/issues/27304).
|
|
14
14
|
* @author Yuen Ler Chow
|
|
15
15
|
*/
|
|
@@ -37,8 +37,8 @@ const getCypressDetectedBrowsersForChooser = (): typeof AVAILABLE_BROWSERS => {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
return AVAILABLE_BROWSERS.filter((b) => {
|
|
40
|
-
// Always include
|
|
41
|
-
return b.name === '
|
|
40
|
+
// Always include Webkit in the chooser because "npx cypress info" omits WebKit
|
|
41
|
+
return b.name === 'webkit' || detected.has(b.name);
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
44
|
|