@nebula.js/cli-create 4.0.0-alpha.1 → 4.0.0-alpha.10
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/package.json +4 -4
- package/templates/mashup/src/Authenticator.js +1 -1
- package/templates/sn/{none → common}/playwright.config.js +7 -0
- package/templates/sn/none/src/index.js +1 -1
- package/templates/sn/none/test/integration/hello.e2e.js +1 -20
- package/templates/sn/picasso/barchart/test/integration/barchart.e2e.js +1 -18
- package/templates/sn/picasso/common/src/index.js +1 -1
- package/templates/sn/picasso/minimal/test/integration/test.e2e.js +2 -19
- package/templates/sn/picasso/common/playwright.config.js +0 -34
- /package/templates/sn/none/test/{integration/fixtures → component}/hello.fix.js +0 -0
- /package/templates/sn/picasso/barchart/test/{integration/fixtures → component}/scenario-1.fix.js +0 -0
- /package/templates/sn/picasso/minimal/test/integration/{fixtures → component}/scenario-1.fix.js +0 -0
package/README.md
CHANGED
|
@@ -65,7 +65,7 @@ options.
|
|
|
65
65
|
- minimal: a basic setup of picasso.js is ready
|
|
66
66
|
- barchart: a bar chart component created by picasso.js is ready
|
|
67
67
|
|
|
68
|
-
You can find the [tutorial](https://qlik.dev/
|
|
68
|
+
You can find the [tutorial](https://qlik.dev/extend/extend-quickstarts/first-extension) to build a basic nebula visualization using nebula.js.
|
|
69
69
|
|
|
70
70
|
#### Create a mashup
|
|
71
71
|
|
|
@@ -73,7 +73,7 @@ You can find the [tutorial](https://qlik.dev/tutorials/build-a-helloworld-extens
|
|
|
73
73
|
nebula create mashup hello-mashie
|
|
74
74
|
```
|
|
75
75
|
|
|
76
|
-
You can find the [tutorial](https://qlik.dev/
|
|
76
|
+
You can find the [tutorial](https://qlik.dev/embed/integrate-web-apps/build-a-simple-mashup) to build a basic mashup using nebula.js.
|
|
77
77
|
|
|
78
78
|
#### Package manager
|
|
79
79
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nebula.js/cli-create",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "QlikTech International AB",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"chalk": "4.1.2",
|
|
26
|
-
"ejs": "3.1.
|
|
27
|
-
"fs-extra": "11.1.
|
|
26
|
+
"ejs": "3.1.9",
|
|
27
|
+
"fs-extra": "11.1.1",
|
|
28
28
|
"inquirer": "8.2.5"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "0ffa335271ce6e7f4bc58df9b2e7681ff1487984"
|
|
31
31
|
}
|
|
@@ -16,7 +16,14 @@ export default {
|
|
|
16
16
|
],
|
|
17
17
|
],
|
|
18
18
|
|
|
19
|
+
webServer: {
|
|
20
|
+
command: 'yarn start --port 8077',
|
|
21
|
+
reuseExistingServer: !process.env.CI,
|
|
22
|
+
port: '8077',
|
|
23
|
+
},
|
|
24
|
+
|
|
19
25
|
use: {
|
|
26
|
+
baseURL: 'http://localhost:8077',
|
|
20
27
|
headless: true,
|
|
21
28
|
viewport: { width: 1280, height: 720 },
|
|
22
29
|
ignoreHTTPSErrors: true,
|
|
@@ -8,7 +8,7 @@ import ext from './ext';
|
|
|
8
8
|
* Useful for cases when stardust hooks are unavailable (ie: outside the component function)
|
|
9
9
|
* @param {object} galaxy.anything Extra environment dependent options
|
|
10
10
|
* @param {object=} galaxy.anything.sense Optional object only present within Sense,
|
|
11
|
-
* see: https://qlik.dev/
|
|
11
|
+
* see: https://qlik.dev/extend/build-extension/in-qlik-sense
|
|
12
12
|
*/
|
|
13
13
|
export default function supernova(galaxy) {
|
|
14
14
|
return {
|
|
@@ -1,28 +1,9 @@
|
|
|
1
1
|
const { test, expect } = require('@playwright/test');
|
|
2
|
-
const path = require('path');
|
|
3
|
-
const serve = require('@nebula.js/cli-serve'); // eslint-disable-line
|
|
4
2
|
|
|
5
3
|
test.describe('sn', () => {
|
|
6
|
-
let server;
|
|
7
|
-
|
|
8
|
-
test.beforeAll(async () => {
|
|
9
|
-
server = await serve({
|
|
10
|
-
build: false,
|
|
11
|
-
open: false,
|
|
12
|
-
fixturePath: path.resolve(__dirname, 'fixtures'),
|
|
13
|
-
});
|
|
14
|
-
process.env.BASE_URL = server.url;
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
test.afterAll(() => {
|
|
18
|
-
server.close();
|
|
19
|
-
});
|
|
20
|
-
|
|
21
4
|
test('should say hello', async ({ page }) => {
|
|
22
5
|
const content = '.njs-viz[data-render-count="1"]';
|
|
23
|
-
|
|
24
|
-
const url = `${process.env.BASE_URL}/render?fixture=hello.fix.js`;
|
|
25
|
-
await page.goto(url);
|
|
6
|
+
await page.goto('/render?fixture=hello.fix.js');
|
|
26
7
|
await page.waitForSelector(content, { visible: true });
|
|
27
8
|
const text = await page.$eval(content, (el) => el.textContent);
|
|
28
9
|
expect(text).toBe('Hello!');
|
|
@@ -1,25 +1,8 @@
|
|
|
1
1
|
const { test, expect } = require('@playwright/test');
|
|
2
|
-
const path = require('path');
|
|
3
|
-
const serve = require('@nebula.js/cli-serve'); // eslint-disable-line
|
|
4
2
|
|
|
5
3
|
test.describe('barchart', () => {
|
|
6
|
-
let server;
|
|
7
|
-
|
|
8
|
-
test.beforeAll(async () => {
|
|
9
|
-
server = await serve({
|
|
10
|
-
build: false,
|
|
11
|
-
open: false,
|
|
12
|
-
fixturePath: path.resolve(__dirname, 'fixtures'),
|
|
13
|
-
});
|
|
14
|
-
process.env.BASE_URL = server.url;
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
test.afterAll(() => {
|
|
18
|
-
server.close();
|
|
19
|
-
});
|
|
20
|
-
|
|
21
4
|
test('should have 20 bars', async ({ page }) => {
|
|
22
|
-
await page.goto(
|
|
5
|
+
await page.goto('/render?fixture=scenario-1.fix.js');
|
|
23
6
|
await page.waitForSelector('.njs-viz[data-render-count="1"]', {
|
|
24
7
|
visible: true,
|
|
25
8
|
});
|
|
@@ -22,7 +22,7 @@ import ext from './ext';
|
|
|
22
22
|
* Useful for cases when stardust hooks are unavailable (ie: outside the component function)
|
|
23
23
|
* @param {object} galaxy.anything Extra environment dependent options
|
|
24
24
|
* @param {object=} galaxy.anything.sense Optional object only present within Sense,
|
|
25
|
-
* see: https://qlik.dev/
|
|
25
|
+
* see: https://qlik.dev/extend/build-extension/in-qlik-sense
|
|
26
26
|
*/
|
|
27
27
|
export default function supernova(galaxy) {
|
|
28
28
|
const picasso = picassojs();
|
|
@@ -1,25 +1,8 @@
|
|
|
1
1
|
/* eslint no-unused-vars: 0 */
|
|
2
2
|
const { test, expect } = require('@playwright/test');
|
|
3
|
-
const path = require('path');
|
|
4
|
-
const serve = require('@nebula.js/cli-serve'); // eslint-disable-line
|
|
5
3
|
|
|
6
|
-
test.describe('
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
test.beforeAll(async () => {
|
|
10
|
-
server = await serve({
|
|
11
|
-
build: false,
|
|
12
|
-
open: false,
|
|
13
|
-
fixturePath: path.resolve(__dirname, 'fixtures'),
|
|
14
|
-
});
|
|
15
|
-
process.env.BASE_URL = server.url;
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
test.afterAll(() => {
|
|
19
|
-
server.close();
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
test('should have 20 bars', async ({ page }) => {
|
|
4
|
+
test.describe('minimal', () => {
|
|
5
|
+
test('should test picasso chart', async ({ page }) => {
|
|
23
6
|
// add your e2e tests here...
|
|
24
7
|
// expect(1 + 1).toBe(2)
|
|
25
8
|
});
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { devices } from '@playwright/test';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
testMatch: /.*\.e2e\.js/,
|
|
5
|
-
outputDir: './test/integration/artifacts/',
|
|
6
|
-
|
|
7
|
-
reporter: [
|
|
8
|
-
['list'],
|
|
9
|
-
['json', { outputFile: './test/integration/test-report/test-results.json' }],
|
|
10
|
-
[
|
|
11
|
-
'html',
|
|
12
|
-
{
|
|
13
|
-
outputFolder: './test/integration/test-report',
|
|
14
|
-
open: process.env.SKIP_OPEN_REPORT ? 'never' : 'on-failure',
|
|
15
|
-
},
|
|
16
|
-
],
|
|
17
|
-
],
|
|
18
|
-
|
|
19
|
-
use: {
|
|
20
|
-
headless: true,
|
|
21
|
-
viewport: { width: 1280, height: 720 },
|
|
22
|
-
ignoreHTTPSErrors: true,
|
|
23
|
-
screenshot: 'only-on-failure',
|
|
24
|
-
video: 'retain-on-failure',
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
projects: [
|
|
28
|
-
{
|
|
29
|
-
name: 'chromium',
|
|
30
|
-
headless: true,
|
|
31
|
-
use: { ...devices['Desktop Chrome'] },
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
};
|
|
File without changes
|
/package/templates/sn/picasso/barchart/test/{integration/fixtures → component}/scenario-1.fix.js
RENAMED
|
File without changes
|
/package/templates/sn/picasso/minimal/test/integration/{fixtures → component}/scenario-1.fix.js
RENAMED
|
File without changes
|