@eeacms/volto-accordion-block
Advanced tools
Comparing version 3.2.2 to 3.2.3
@@ -7,4 +7,10 @@ ### Changelog | ||
#### [3.2.3](https://github.com/eea/volto-accordion-block/compare/3.2.2...3.2.3) | ||
- Cypress coverage [`#13`](https://github.com/eea/volto-accordion-block/pull/13) | ||
#### [3.2.2](https://github.com/eea/volto-accordion-block/compare/3.2.1...3.2.2) | ||
> 13 May 2021 | ||
- [JENKINS] - Auto-release pipeline [`#12`](https://github.com/eea/volto-accordion-block/pull/12) | ||
@@ -11,0 +17,0 @@ - [JENKINS] - Update cypress tests [`aedfb80`](https://github.com/eea/volto-accordion-block/commit/aedfb80a8fe8a275fba3617fe96e8c0c09914421) |
@@ -9,4 +9,5 @@ { | ||
"mochaFile": "cypress/reports/cypress-[hash].xml", | ||
"jenkinsMode": true, | ||
"toConsole": true | ||
} | ||
} |
@@ -1,29 +0,7 @@ | ||
describe('Block Tests', () => { | ||
beforeEach(() => { | ||
cy.autologin(); | ||
cy.createContent({ | ||
contentType: 'Folder', | ||
contentId: 'cypress', | ||
contentTitle: 'Cypress', | ||
}); | ||
cy.createContent({ | ||
contentType: 'Document', | ||
contentId: 'my-page', | ||
contentTitle: 'My Page', | ||
path: 'cypress', | ||
}); | ||
cy.visit('/cypress/my-page'); | ||
cy.waitForResourceToLoad('@navigation'); | ||
cy.waitForResourceToLoad('@breadcrumbs'); | ||
cy.waitForResourceToLoad('@actions'); | ||
cy.waitForResourceToLoad('@types'); | ||
cy.waitForResourceToLoad('my-page'); | ||
cy.navigate('/cypress/my-page/edit'); | ||
cy.get(`.block.title [data-contents]`); | ||
}); | ||
import { setupBeforeEach, tearDownAfterEach } from '../support'; | ||
afterEach(() => { | ||
cy.autologin(); | ||
cy.removeContent('cypress'); | ||
}); | ||
describe('Blocks Tests', () => { | ||
beforeEach(setupBeforeEach); | ||
afterEach(tearDownAfterEach); | ||
it('Accordion Block: add accordion content', () => { | ||
@@ -30,0 +8,0 @@ // Change page title |
@@ -21,2 +21,7 @@ /// <reference types="cypress" /> | ||
// `config` is the resolved Cypress config | ||
/* coverage-start | ||
require('@cypress/code-coverage/task')(on, config) | ||
on('file:preprocessor', require('@cypress/code-coverage/use-babelrc')) | ||
return config | ||
coverage-end */ | ||
}; |
@@ -21,1 +21,34 @@ // *********************************************************** | ||
// require('./commands') | ||
/* coverage-start | ||
//Generate code-coverage | ||
import '@cypress/code-coverage/support'; | ||
coverage-end */ | ||
export const setupBeforeEach = () => { | ||
cy.autologin(); | ||
cy.createContent({ | ||
contentType: 'Folder', | ||
contentId: 'cypress', | ||
contentTitle: 'Cypress', | ||
}); | ||
cy.createContent({ | ||
contentType: 'Document', | ||
contentId: 'my-page', | ||
contentTitle: 'My Page', | ||
path: 'cypress', | ||
}); | ||
cy.visit('/cypress/my-page'); | ||
cy.waitForResourceToLoad('@navigation'); | ||
cy.waitForResourceToLoad('@breadcrumbs'); | ||
cy.waitForResourceToLoad('@actions'); | ||
cy.waitForResourceToLoad('@types'); | ||
cy.waitForResourceToLoad('my-page'); | ||
cy.navigate('/cypress/my-page/edit'); | ||
cy.get(`.block.title [data-contents]`); | ||
}; | ||
export const tearDownAfterEach = () => { | ||
cy.autologin(); | ||
cy.removeContent('cypress'); | ||
}; |
{ | ||
"name": "@eeacms/volto-accordion-block", | ||
"version": "3.2.2", | ||
"version": "3.2.3", | ||
"description": "volto-accordion-block: Volto accordion block", | ||
@@ -20,6 +20,8 @@ "main": "src/index.js", | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"release-it": "*" | ||
"release-it": "*", | ||
"@cypress/code-coverage": "^3.9.5", | ||
"babel-plugin-transform-class-properties": "^6.24.1" | ||
}, | ||
"dependencies": {}, | ||
"scripts": { | ||
@@ -26,0 +28,0 @@ "release": "release-it", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
87823
30
1536
0
3