@aml-org/amf-custom-validator-web 1.2.2 → 1.3.0-SNAPSHOT.6
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/{integration/double.spec.js → e2e/double.cy.js} +0 -0
- package/cypress/e2e/messageExpression.cy.js +8 -0
- package/cypress/{integration/simple.spec.js → e2e/simple.cy.js} +0 -0
- package/cypress/html/messageExpression.html +12 -0
- package/cypress.config.js +12 -0
- package/dist/main.js +4 -4
- package/package.json +2 -2
- package/cypress.json +0 -8
File without changes
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/// <reference types="cypress" />
|
2
|
+
|
3
|
+
describe('messageExpression', () => {
|
4
|
+
it('should render report with custom message', () => {
|
5
|
+
cy.visit('cypress/html/messageExpression.html')
|
6
|
+
cy.get('#report').should('include.text', "Movie 'Disaster Movie' has a rating of 1.9 but it does not have at least 10 reviews (actual reviews: 5) to support that rating")
|
7
|
+
})
|
8
|
+
})
|
File without changes
|
@@ -0,0 +1,12 @@
|
|
1
|
+
const { defineConfig } = require('cypress')
|
2
|
+
|
3
|
+
module.exports = defineConfig({
|
4
|
+
fixturesFolder: false,
|
5
|
+
downloadsFolder: 'cypress/downloads',
|
6
|
+
video: false,
|
7
|
+
screenshotOnRunFailure: false,
|
8
|
+
e2e: {
|
9
|
+
setupNodeEvents(on, config) {},
|
10
|
+
supportFile: false,
|
11
|
+
},
|
12
|
+
})
|