@aml-org/amf-custom-validator-web 1.7.0-SNAPSHOT.111 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,14 @@
1
+ /// <reference types="cypress" />
2
+
3
+ describe('withConfiguration', () => {
4
+ it('should render report', () => {
5
+ cy.visit('cypress/html/withConfiguration.html')
6
+
7
+ let dateText = "does not have date"
8
+ let reportSchema = "http://a.ml/report#/declarations/"
9
+ let lexicalSchema = "http://a.ml/lexical#/declarations/"
10
+ let expectedText = `${dateText}, ${reportSchema}, ${lexicalSchema}`
11
+
12
+ cy.get('#report').should('have.text', expectedText)
13
+ })
14
+ })
@@ -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/withConfiguration.js"></script>
8
+ <script>
9
+ test.run()
10
+ </script>
11
+ </body>
12
+ </html>