@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.
@@ -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
+ })
@@ -0,0 +1,12 @@
1
+ <html lang="eng">
2
+ <head>
3
+ <title>Tests</title>
4
+ </head>
5
+ <body>
6
+ <pre id="report"></pre>
7
+ <script src="../../test/out/messageExpression.js"></script>
8
+ <script>
9
+ test.run()
10
+ </script>
11
+ </body>
12
+ </html>
@@ -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
+ })