@eeacms/volto-tabs-block 1.2.7 → 1.2.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/CHANGELOG.md +8 -5
- package/Jenkinsfile +44 -23
- package/cypress/integration/block-basics.js +10 -9
- package/cypress/support/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,16 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
#### [1.2.8](https://github.com/eea/volto-tabs-block/compare/1.2.7...1.2.8)
|
|
8
|
+
|
|
9
|
+
- Correct Cypress tests [`#12`](https://github.com/eea/volto-tabs-block/pull/12)
|
|
10
|
+
- Refs #142010 - Optimize Volto-addons gitflow pipelines [`d10c0b3`](https://github.com/eea/volto-tabs-block/commit/d10c0b3d35d25c530d19eebde38dfe5da8fda01b)
|
|
11
|
+
|
|
7
12
|
#### [1.2.7](https://github.com/eea/volto-tabs-block/compare/1.2.6...1.2.7)
|
|
8
13
|
|
|
14
|
+
> 27 August 2021
|
|
15
|
+
|
|
16
|
+
- Remove hard dependencies to Volto add-ons to avoid dependencies hell [`#11`](https://github.com/eea/volto-tabs-block/pull/11)
|
|
9
17
|
- Develop [`#10`](https://github.com/eea/volto-tabs-block/pull/10)
|
|
10
18
|
- Develop [`#9`](https://github.com/eea/volto-tabs-block/pull/9)
|
|
11
19
|
- Cypress coverage [`#8`](https://github.com/eea/volto-tabs-block/pull/8)
|
|
@@ -25,12 +33,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
25
33
|
- Develop [`#9`](https://github.com/eea/volto-tabs-block/pull/9)
|
|
26
34
|
- Move less import in View instead of Edit [`84aeff0`](https://github.com/eea/volto-tabs-block/commit/84aeff04a980076f54687c546691d37b6e790478)
|
|
27
35
|
- gitignore tweaks [`f4c993d`](https://github.com/eea/volto-tabs-block/commit/f4c993d004b126f08f16651ab9460546fa9e9cad)
|
|
28
|
-
- Add Sonarqube tag using frontend addons list [`865906a`](https://github.com/eea/volto-tabs-block/commit/865906a0deb261d44cc23e26bfd2d1dd0e319640)
|
|
29
|
-
- Add Sonarqube tag using frontend addons list [`5383861`](https://github.com/eea/volto-tabs-block/commit/538386100adbc868e693c1c2a5ba13461307ffee)
|
|
30
36
|
- Style update [`323aaaf`](https://github.com/eea/volto-tabs-block/commit/323aaafcad01d8fdf0e713a1fc254ae9fe319f43)
|
|
31
37
|
- Fix 'scroll to' feature on carousel [`16c6a08`](https://github.com/eea/volto-tabs-block/commit/16c6a08f6db687542ea38e07a92b265e592f6173)
|
|
32
38
|
- Better accesibility [`3511611`](https://github.com/eea/volto-tabs-block/commit/351161197270a4807f01d85a7055cbaadae72f8e)
|
|
33
|
-
- Updated Jenkins dependencies [`24471fd`](https://github.com/eea/volto-tabs-block/commit/24471fd7c678d04f244b132f13b4c655838f4e94)
|
|
34
39
|
- Add jest configuration [`c01b021`](https://github.com/eea/volto-tabs-block/commit/c01b0213bcb4b51408b6e3c196b2dcfa086377a9)
|
|
35
40
|
|
|
36
41
|
#### [1.2.4](https://github.com/eea/volto-tabs-block/compare/1.2.3...1.2.4)
|
|
@@ -38,7 +43,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
38
43
|
> 27 May 2021
|
|
39
44
|
|
|
40
45
|
- Cypress coverage [`#8`](https://github.com/eea/volto-tabs-block/pull/8)
|
|
41
|
-
- [JENKINS] - Fix stylelint [`2319baa`](https://github.com/eea/volto-tabs-block/commit/2319baa8258828cd3847715779bc21d472bd7677)
|
|
42
46
|
- Added z-index [`5aa8221`](https://github.com/eea/volto-tabs-block/commit/5aa8221d20c02e34788571d9231e73431c1043fe)
|
|
43
47
|
|
|
44
48
|
#### [1.2.3](https://github.com/eea/volto-tabs-block/compare/1.2.2...1.2.3)
|
|
@@ -53,7 +57,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
53
57
|
|
|
54
58
|
> 12 May 2021
|
|
55
59
|
|
|
56
|
-
- JENKINS: auto-release pipeline [`#5`](https://github.com/eea/volto-tabs-block/pull/5)
|
|
57
60
|
- Update style for menu title & description [`0683074`](https://github.com/eea/volto-tabs-block/commit/06830749ca9655ba74e07984536020b826da0696)
|
|
58
61
|
- Updated styles [`104f8ab`](https://github.com/eea/volto-tabs-block/commit/104f8ab3cf60f7e4e54e84d1b523010e97be1f66)
|
|
59
62
|
- Prettier [`f1dd4bc`](https://github.com/eea/volto-tabs-block/commit/f1dd4bcd3d82c37db00810bdc7a11c7dee4c3276)
|
package/Jenkinsfile
CHANGED
|
@@ -4,13 +4,37 @@ pipeline {
|
|
|
4
4
|
environment {
|
|
5
5
|
GIT_NAME = "volto-tabs-block"
|
|
6
6
|
NAMESPACE = "@eeacms"
|
|
7
|
-
SONARQUBE_TAGS = "volto.eea.europa.eu,climate-energy.eea.europa.eu,biodiversity.europa.eu"
|
|
7
|
+
SONARQUBE_TAGS = "volto.eea.europa.eu,climate-energy.eea.europa.eu,biodiversity.europa.eu,www.eea.europa.eu-ims,sustainability.eionet.europa.eu,forest.eea.europa.eu,clms.land.copernicus.eu,industry.eea.europa.eu"
|
|
8
8
|
DEPENDENCIES = "@eeacms/volto-block-style"
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
stages {
|
|
12
12
|
|
|
13
|
+
stage('Release') {
|
|
14
|
+
when {
|
|
15
|
+
allOf {
|
|
16
|
+
environment name: 'CHANGE_ID', value: ''
|
|
17
|
+
branch 'master'
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
steps {
|
|
21
|
+
node(label: 'docker') {
|
|
22
|
+
withCredentials([string(credentialsId: 'eea-jenkins-token', variable: 'GITHUB_TOKEN'),string(credentialsId: 'eea-jenkins-npm-token', variable: 'NPM_TOKEN')]) {
|
|
23
|
+
sh '''docker pull eeacms/gitflow'''
|
|
24
|
+
sh '''docker run -i --rm --name="$BUILD_TAG-gitflow-master" -e GIT_BRANCH="$BRANCH_NAME" -e GIT_NAME="$GIT_NAME" -e GIT_TOKEN="$GITHUB_TOKEN" -e NPM_TOKEN="$NPM_TOKEN" -e LANGUAGE=javascript eeacms/gitflow'''
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
13
30
|
stage('Code') {
|
|
31
|
+
when {
|
|
32
|
+
allOf {
|
|
33
|
+
environment name: 'CHANGE_ID', value: ''
|
|
34
|
+
not { branch 'master' }
|
|
35
|
+
not { changelog '.*^Automated release [0-9\\.]+$' }
|
|
36
|
+
}
|
|
37
|
+
}
|
|
14
38
|
steps {
|
|
15
39
|
parallel(
|
|
16
40
|
|
|
@@ -36,6 +60,12 @@ pipeline {
|
|
|
36
60
|
}
|
|
37
61
|
|
|
38
62
|
stage('Tests') {
|
|
63
|
+
when {
|
|
64
|
+
allOf {
|
|
65
|
+
environment name: 'CHANGE_ID', value: ''
|
|
66
|
+
not { changelog '.*^Automated release [0-9\\.]+$' }
|
|
67
|
+
}
|
|
68
|
+
}
|
|
39
69
|
steps {
|
|
40
70
|
parallel(
|
|
41
71
|
|
|
@@ -75,6 +105,12 @@ pipeline {
|
|
|
75
105
|
}
|
|
76
106
|
|
|
77
107
|
stage('Integration tests') {
|
|
108
|
+
when {
|
|
109
|
+
allOf {
|
|
110
|
+
environment name: 'CHANGE_ID', value: ''
|
|
111
|
+
not { changelog '.*^Automated release [0-9\\.]+$' }
|
|
112
|
+
}
|
|
113
|
+
}
|
|
78
114
|
steps {
|
|
79
115
|
parallel(
|
|
80
116
|
|
|
@@ -122,11 +158,13 @@ pipeline {
|
|
|
122
158
|
}
|
|
123
159
|
|
|
124
160
|
stage('Report to SonarQube') {
|
|
125
|
-
// Exclude Pull-Requests
|
|
126
161
|
when {
|
|
127
|
-
allOf {
|
|
128
162
|
environment name: 'CHANGE_ID', value: ''
|
|
129
|
-
|
|
163
|
+
anyOf {
|
|
164
|
+
branch 'master'
|
|
165
|
+
branch 'develop'
|
|
166
|
+
}
|
|
167
|
+
not { changelog '.*^Automated release [0-9\\.]+$' }
|
|
130
168
|
}
|
|
131
169
|
steps {
|
|
132
170
|
node(label: 'swarm') {
|
|
@@ -156,8 +194,8 @@ pipeline {
|
|
|
156
194
|
steps {
|
|
157
195
|
node(label: 'docker') {
|
|
158
196
|
script {
|
|
159
|
-
if ( env.CHANGE_BRANCH != "develop"
|
|
160
|
-
error "Pipeline aborted due to PR not made from develop
|
|
197
|
+
if ( env.CHANGE_BRANCH != "develop" ) {
|
|
198
|
+
error "Pipeline aborted due to PR not made from develop branch"
|
|
161
199
|
}
|
|
162
200
|
withCredentials([string(credentialsId: 'eea-jenkins-token', variable: 'GITHUB_TOKEN')]) {
|
|
163
201
|
sh '''docker pull eeacms/gitflow'''
|
|
@@ -168,23 +206,6 @@ pipeline {
|
|
|
168
206
|
}
|
|
169
207
|
}
|
|
170
208
|
|
|
171
|
-
stage('Release') {
|
|
172
|
-
when {
|
|
173
|
-
allOf {
|
|
174
|
-
environment name: 'CHANGE_ID', value: ''
|
|
175
|
-
branch 'master'
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
steps {
|
|
179
|
-
node(label: 'docker') {
|
|
180
|
-
withCredentials([string(credentialsId: 'eea-jenkins-token', variable: 'GITHUB_TOKEN'),string(credentialsId: 'eea-jenkins-npm-token', variable: 'NPM_TOKEN')]) {
|
|
181
|
-
sh '''docker pull eeacms/gitflow'''
|
|
182
|
-
sh '''docker run -i --rm --name="$BUILD_TAG-gitflow-master" -e GIT_BRANCH="$BRANCH_NAME" -e GIT_NAME="$GIT_NAME" -e GIT_TOKEN="$GITHUB_TOKEN" -e NPM_TOKEN="$NPM_TOKEN" -e LANGUAGE=javascript eeacms/gitflow'''
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
209
|
}
|
|
189
210
|
|
|
190
211
|
post {
|
|
@@ -5,16 +5,17 @@ describe('Blocks Tests', () => {
|
|
|
5
5
|
afterEach(tearDownAfterEach);
|
|
6
6
|
|
|
7
7
|
it('Add Block: Empty', () => {
|
|
8
|
+
// without this the clear command below does nothing sometimes
|
|
9
|
+
cy.wait(500);
|
|
10
|
+
|
|
8
11
|
// Change page title
|
|
9
|
-
cy.get('.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
cy.get('
|
|
16
|
-
'{enter}',
|
|
17
|
-
);
|
|
12
|
+
cy.get('[contenteditable=true]').first().clear();
|
|
13
|
+
|
|
14
|
+
cy.get('[contenteditable=true]').first().type('My Add-on Page');
|
|
15
|
+
|
|
16
|
+
cy.get('.documentFirstHeading').contains('My Add-on Page');
|
|
17
|
+
|
|
18
|
+
cy.get('[contenteditable=true]').first().type('{enter}');
|
|
18
19
|
|
|
19
20
|
// Add block
|
|
20
21
|
cy.get('.ui.basic.icon.button.block-add-button').first().click();
|
package/cypress/support/index.js
CHANGED
|
@@ -44,7 +44,7 @@ export const setupBeforeEach = () => {
|
|
|
44
44
|
cy.waitForResourceToLoad('@types');
|
|
45
45
|
cy.waitForResourceToLoad('my-page');
|
|
46
46
|
cy.navigate('/cypress/my-page/edit');
|
|
47
|
-
cy.get(`.block.title
|
|
47
|
+
cy.get(`.block.title h1`);
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
export const tearDownAfterEach = () => {
|