setmy-info-less-ide 4.1.0 → 4.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/package.json +2 -4
- package/src/test/js/e2e/body.gherkin.e2e.js +27 -0
- package/src/test/js/e2e/experimental-frames.gherkin.e2e.js +24 -0
- package/src/test/js/e2e/frames.gherkin.e2e.js +26 -0
- package/cucumber.js +0 -10
- package/src/test/gherkin/body.feature +0 -20
- package/src/test/gherkin/experimental-frames.feature +0 -17
- package/src/test/gherkin/frames.feature +0 -19
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "setmy-info-less-ide",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "SMI LESS IDE — developer tool and IDE-style UI patterns, builds on the enterprise package",
|
|
5
5
|
"main": "dist/main.min.css",
|
|
6
6
|
"dependencies": {
|
|
@@ -18,11 +18,10 @@
|
|
|
18
18
|
"watch:pug": "node ../common/test/js/pugWatch.js",
|
|
19
19
|
"clean": "rimraf dist",
|
|
20
20
|
"clean:all": "rimraf dist node_modules",
|
|
21
|
-
"verify": "npm test && npm run e2e && npm run lint:less
|
|
21
|
+
"verify": "npm test && npm run e2e && npm run lint:less",
|
|
22
22
|
"test": "jest",
|
|
23
23
|
"e2e": "jest --config=jest.e2e.config.js",
|
|
24
24
|
"e2e:one": "jest --config=jest.e2e.config.js --testNamePattern",
|
|
25
|
-
"cucumber": "cucumber-js",
|
|
26
25
|
"lint:less": "stylelint ./src/main/less/**/*.less",
|
|
27
26
|
"lint:fix-less": "stylelint ./src/main/less/**/*.less --fix",
|
|
28
27
|
"styleguide": "kss-node --source src/main/less --destination dist/styleguide --css ../main.css"
|
|
@@ -42,7 +41,6 @@
|
|
|
42
41
|
},
|
|
43
42
|
"homepage": "https://github.com/setmy-info/setmy-info-less",
|
|
44
43
|
"devDependencies": {
|
|
45
|
-
"@cucumber/cucumber": "^13.0.0",
|
|
46
44
|
"express": "^5.2.1",
|
|
47
45
|
"jest": "^30.4.2",
|
|
48
46
|
"kss": "^2.4.0",
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const {feature, scenario, given, when, then, runFeature} = require('../../../../../common/test/js/gherkin');
|
|
2
|
+
|
|
3
|
+
const bodyFeature = feature('body page',
|
|
4
|
+
scenario('body rendering with specific properties',
|
|
5
|
+
given.pageNameIs('body'),
|
|
6
|
+
when.pageIsRendered(),
|
|
7
|
+
when.pageElementIdIs('body'),
|
|
8
|
+
then.pageShouldHaveTitle('body.html'),
|
|
9
|
+
then.pageElementMarginShouldBe('0px 0px 0px 0px'),
|
|
10
|
+
then.pageElementPaddingShouldBe('0px 0px 0px 0px'),
|
|
11
|
+
then.pageElementFontFamilyShouldBe('DejaVu Serif, Roboto, Arial, Noto Sans, Noto, sans-serif'),
|
|
12
|
+
then.pageElementFontSizeShouldBe('16px'),
|
|
13
|
+
then.pageElementXShouldBe(0),
|
|
14
|
+
then.pageElementYShouldBe(0),
|
|
15
|
+
then.pageElementWidthShouldBe(2000),
|
|
16
|
+
then.pageElementHeightShouldBe(1200),
|
|
17
|
+
then.pageElementTopShouldBe(0),
|
|
18
|
+
then.pageElementLeftShouldBe(0),
|
|
19
|
+
then.pageElementBackgroundColorShouldBe('rgba(0, 0, 0, 0)'),
|
|
20
|
+
then.pageElementColorShouldBe('rgb(0, 0, 0)'),
|
|
21
|
+
then.pageIsClosed()
|
|
22
|
+
)
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
runFeature(bodyFeature);
|
|
26
|
+
|
|
27
|
+
module.exports = bodyFeature;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const {feature, scenario, given, when, then, runFeature} = require('../../../../../common/test/js/gherkin');
|
|
2
|
+
|
|
3
|
+
const experimentalFramesFeature = feature('IDE experimental frames page',
|
|
4
|
+
scenario('experimental frames page is generated from the IDE workspace',
|
|
5
|
+
given.pageNameIs('experimental-frames'),
|
|
6
|
+
when.pageIsRendered(),
|
|
7
|
+
when.pageElementIdIs('body'),
|
|
8
|
+
then.pageShouldHaveTitle('experimental-frames.html'),
|
|
9
|
+
then.pageElementPaddingShouldBe('0px 0px 0px 0px'),
|
|
10
|
+
when.pageElementIdIs('verticalDivider'),
|
|
11
|
+
then.pageElementWidthShouldBe(8),
|
|
12
|
+
when.pageElementIdIs('horizontalLeftDivider'),
|
|
13
|
+
then.pageElementHeightShouldBe(4),
|
|
14
|
+
when.pageElementIdIs('horizontalRightDivider'),
|
|
15
|
+
then.pageElementHeightShouldBe(4),
|
|
16
|
+
when.pageElementIdIs('body'),
|
|
17
|
+
then.pageElementStyleShouldBe('cursor', 'auto'),
|
|
18
|
+
then.pageIsClosed()
|
|
19
|
+
)
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
runFeature(experimentalFramesFeature);
|
|
23
|
+
|
|
24
|
+
module.exports = experimentalFramesFeature;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const {feature, scenario, given, when, then, runFeature} = require('../../../../../common/test/js/gherkin');
|
|
2
|
+
|
|
3
|
+
const framesFeature = feature('IDE frames page',
|
|
4
|
+
scenario('NetBeans-style frame layout is provided by the IDE package',
|
|
5
|
+
given.pageNameIs('frames'),
|
|
6
|
+
when.pageIsRendered(),
|
|
7
|
+
when.pageElementIdIs('body'),
|
|
8
|
+
then.pageShouldHaveTitle('frames.html'),
|
|
9
|
+
then.pageElementPaddingShouldBe('0px 0px 0px 0px'),
|
|
10
|
+
when.pageElementIdIs('contentHeader'),
|
|
11
|
+
then.pageElementHeightShouldBe(50),
|
|
12
|
+
when.pageElementIdIs('content'),
|
|
13
|
+
then.pageElementHeightShouldBe(1125),
|
|
14
|
+
when.pageElementIdIs('sectionLeft'),
|
|
15
|
+
then.pageElementWidthShouldBe(588),
|
|
16
|
+
when.pageElementIdIs('verticalSeparator'),
|
|
17
|
+
then.pageElementWidthShouldBe(8),
|
|
18
|
+
when.pageElementIdIs('contentFooter'),
|
|
19
|
+
then.pageElementHeightShouldBe(25),
|
|
20
|
+
then.pageIsClosed()
|
|
21
|
+
)
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
runFeature(framesFeature);
|
|
25
|
+
|
|
26
|
+
module.exports = framesFeature;
|
package/cucumber.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
default: [
|
|
3
|
-
`--format-options '{"snippetInterface": "synchronous"}'`,
|
|
4
|
-
'--require ../common/test/js/bdd/support.js',
|
|
5
|
-
'--require ../common/test/js/bdd/given.js',
|
|
6
|
-
'--require ../common/test/js/bdd/when.js',
|
|
7
|
-
'--require ../common/test/js/bdd/then.js',
|
|
8
|
-
'./src/test/gherkin'
|
|
9
|
-
].join(' ')
|
|
10
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
Feature: body page
|
|
2
|
-
|
|
3
|
-
Scenario: body rendering with specific properties
|
|
4
|
-
Given page name is "body"
|
|
5
|
-
When page is rendered
|
|
6
|
-
And page element ID is "body"
|
|
7
|
-
Then page should have title "body.html"
|
|
8
|
-
And page element margin should be "0px 0px 0px 0px"
|
|
9
|
-
And page element padding should be "0px 0px 0px 0px"
|
|
10
|
-
And page element font family should be "DejaVu Serif, Roboto, Arial, Noto Sans, Noto, sans-serif"
|
|
11
|
-
And page element font size should be "16px"
|
|
12
|
-
And page element X should be 0
|
|
13
|
-
And page element Y should be 0
|
|
14
|
-
And page element WIDTH should be 2000
|
|
15
|
-
And page element HEIGHT should be 1200
|
|
16
|
-
And page element TOP should be 0
|
|
17
|
-
And page element LEFT should be 0
|
|
18
|
-
And page element background color should be "rgba(0, 0, 0, 0)"
|
|
19
|
-
And page element color should be "rgb(0, 0, 0)"
|
|
20
|
-
And page is closed
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
Feature: IDE experimental frames page
|
|
2
|
-
|
|
3
|
-
Scenario: experimental frames page is generated from the IDE workspace
|
|
4
|
-
Given page name is "experimental-frames"
|
|
5
|
-
When page is rendered
|
|
6
|
-
And page element ID is "body"
|
|
7
|
-
Then page should have title "experimental-frames.html"
|
|
8
|
-
And page element padding should be "0px 0px 0px 0px"
|
|
9
|
-
And page element ID is "verticalDivider"
|
|
10
|
-
And page element WIDTH should be 8
|
|
11
|
-
And page element ID is "horizontalLeftDivider"
|
|
12
|
-
And page element HEIGHT should be 4
|
|
13
|
-
And page element ID is "horizontalRightDivider"
|
|
14
|
-
And page element HEIGHT should be 4
|
|
15
|
-
And page element ID is "body"
|
|
16
|
-
And page element style "cursor" should be "auto"
|
|
17
|
-
And page is closed
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
Feature: IDE frames page
|
|
2
|
-
|
|
3
|
-
Scenario: NetBeans-style frame layout is provided by the IDE package
|
|
4
|
-
Given page name is "frames"
|
|
5
|
-
When page is rendered
|
|
6
|
-
And page element ID is "body"
|
|
7
|
-
Then page should have title "frames.html"
|
|
8
|
-
And page element padding should be "0px 0px 0px 0px"
|
|
9
|
-
And page element ID is "contentHeader"
|
|
10
|
-
And page element HEIGHT should be 50
|
|
11
|
-
And page element ID is "content"
|
|
12
|
-
And page element HEIGHT should be 1125
|
|
13
|
-
And page element ID is "sectionLeft"
|
|
14
|
-
And page element WIDTH should be 588
|
|
15
|
-
And page element ID is "verticalSeparator"
|
|
16
|
-
And page element WIDTH should be 8
|
|
17
|
-
And page element ID is "contentFooter"
|
|
18
|
-
And page element HEIGHT should be 25
|
|
19
|
-
And page is closed
|