qa 0.0.27 → 0.0.29
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/dist/ide/index.js +1 -1
- package/dist/ide/utils.d.ts +2 -2
- package/dist/ide/utils.js +15 -8
- package/package.json +3 -3
package/dist/ide/index.js
CHANGED
|
@@ -40,7 +40,7 @@ export class IDE {
|
|
|
40
40
|
this.#spinner.start('Starting VollQ IDE...');
|
|
41
41
|
const [url] = await Promise.all([
|
|
42
42
|
this.#startApplication(),
|
|
43
|
-
setupBrowserEnvironment(this.#cacheDir).then(({ ide, workbench }) => {
|
|
43
|
+
setupBrowserEnvironment(this.#cacheDir, this.#token).then(({ ide, workbench }) => {
|
|
44
44
|
this.#ideSession = ide;
|
|
45
45
|
this.#workbenchSession = workbench;
|
|
46
46
|
})
|
package/dist/ide/utils.d.ts
CHANGED
|
@@ -8,10 +8,10 @@ declare const appSettings: {
|
|
|
8
8
|
readonly position: "100,100";
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
-
export declare function getCapabilities(appName: keyof typeof appSettings): WebdriverIO.Capabilities;
|
|
11
|
+
export declare function getCapabilities(appName: keyof typeof appSettings, token?: string): WebdriverIO.Capabilities;
|
|
12
12
|
export declare function getCacheDir(): Promise<string>;
|
|
13
13
|
export declare function attachTokenToWindow(token: string): void;
|
|
14
|
-
export declare function setupBrowserEnvironment(cacheDir: string): Promise<{
|
|
14
|
+
export declare function setupBrowserEnvironment(cacheDir: string, token?: string): Promise<{
|
|
15
15
|
workbench: WebdriverIO.Browser;
|
|
16
16
|
ide: WebdriverIO.Browser;
|
|
17
17
|
}>;
|
package/dist/ide/utils.js
CHANGED
|
@@ -15,11 +15,17 @@ const appSettings = {
|
|
|
15
15
|
position: '100,100'
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
export function getCapabilities(appName) {
|
|
19
|
-
const appArgs = [
|
|
18
|
+
export function getCapabilities(appName, token) {
|
|
19
|
+
const appArgs = [
|
|
20
|
+
'--use-mock-keychain',
|
|
21
|
+
'--password-store=basic',
|
|
22
|
+
'--disable-password-manager',
|
|
23
|
+
'--disable-save-password-bubble',
|
|
24
|
+
'--disable-notifications',
|
|
25
|
+
'--disable-infobars'
|
|
26
|
+
];
|
|
20
27
|
const prefs = {
|
|
21
|
-
|
|
22
|
-
'profile.password_manager_enabled': 'false'
|
|
28
|
+
'profile.password_manager_leak_detection': false
|
|
23
29
|
};
|
|
24
30
|
/**
|
|
25
31
|
* when in development, open IDE with devtools opened
|
|
@@ -53,7 +59,8 @@ export function getCapabilities(appName) {
|
|
|
53
59
|
...appArgs
|
|
54
60
|
],
|
|
55
61
|
prefs
|
|
56
|
-
}
|
|
62
|
+
},
|
|
63
|
+
...(token ? { 'vollq:token': token } : {})
|
|
57
64
|
};
|
|
58
65
|
}
|
|
59
66
|
export async function getCacheDir() {
|
|
@@ -65,7 +72,7 @@ export function attachTokenToWindow(token) {
|
|
|
65
72
|
// @ts-expect-error missing window types
|
|
66
73
|
globalThis.window.__VOLLQ_TOKEN = token;
|
|
67
74
|
}
|
|
68
|
-
export async function setupBrowserEnvironment(cacheDir) {
|
|
75
|
+
export async function setupBrowserEnvironment(cacheDir, token) {
|
|
69
76
|
const workbenchConfig = {
|
|
70
77
|
/**
|
|
71
78
|
* run workbench with `localdriver` package so we can request tests to
|
|
@@ -75,13 +82,13 @@ export async function setupBrowserEnvironment(cacheDir) {
|
|
|
75
82
|
logLevel: 'info',
|
|
76
83
|
outputDir: cacheDir,
|
|
77
84
|
cacheDir,
|
|
78
|
-
capabilities: getCapabilities('workbench'),
|
|
85
|
+
capabilities: getCapabilities('workbench', token),
|
|
79
86
|
};
|
|
80
87
|
const ideConfig = {
|
|
81
88
|
logLevel: 'info',
|
|
82
89
|
outputDir: cacheDir,
|
|
83
90
|
cacheDir,
|
|
84
|
-
capabilities: getCapabilities('ide')
|
|
91
|
+
capabilities: getCapabilities('ide', token)
|
|
85
92
|
};
|
|
86
93
|
await Promise.all([
|
|
87
94
|
setupDriver(workbenchConfig, [workbenchConfig.capabilities]),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qa",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.29",
|
|
4
4
|
"author": "Christian Bromann <christian@codeless.qa>",
|
|
5
5
|
"description": "Codeless QA CLI",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"ws": "^8.18.0",
|
|
26
26
|
"yargs": "^17.7.2",
|
|
27
27
|
"webdriverio": "^9.6.4",
|
|
28
|
+
"@codeless.qa/ide": "0.0.7",
|
|
28
29
|
"@codeless.qa/contracts": "0.0.11",
|
|
29
|
-
"
|
|
30
|
-
"localdriver": "0.0.3",
|
|
30
|
+
"localdriver": "0.0.4",
|
|
31
31
|
"neuralspec": "0.0.5"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|