expressa 2.0.19 → 2.0.20
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/cypress/integration/custom_collections.js +4 -2
- package/cypress/support/commands.js +15 -0
- package/cypress/support/util.js +1 -1
- package/cypress.config.js +18 -0
- package/modules/admin/build/build.js +2 -1
- package/modules/admin/build/utils.js +2 -1
- package/modules/admin/build/webpack.base.conf.js +3 -3
- package/modules/admin/dist/css/{864.506917a4.css → 197.7a90435e.css} +1 -1
- package/modules/admin/dist/css/197.7a90435e.css.gz +0 -0
- package/modules/admin/dist/css/{699.d1f90954.css → 430.8c9b0482.css} +1 -1
- package/modules/admin/dist/css/430.8c9b0482.css.gz +0 -0
- package/modules/admin/dist/css/451.c6646d20.css.gz +0 -0
- package/modules/admin/dist/css/{899.506917a4.css → 566.7a90435e.css} +1 -1
- package/modules/admin/dist/css/566.7a90435e.css.gz +0 -0
- package/modules/admin/dist/css/569.f7d5c7d5.css.gz +0 -0
- package/modules/admin/dist/css/572.74d8e965.css.gz +0 -0
- package/modules/admin/dist/css/651.e946bda7.css.gz +0 -0
- package/modules/admin/dist/css/750.4086915d.css.gz +0 -0
- package/modules/admin/dist/css/950.1fd9d57c.css.gz +0 -0
- package/modules/admin/dist/css/app.eba5f5e2.css +592 -0
- package/modules/admin/dist/css/app.eba5f5e2.css.gz +0 -0
- package/modules/admin/dist/index.html +1 -1
- package/modules/admin/dist/static/js/{864.4f43847d.js → 197.e511d91e.js} +1 -1
- package/modules/admin/dist/static/js/197.e511d91e.js.gz +0 -0
- package/modules/admin/dist/static/js/{699.c7564884.js → 430.b3941f30.js} +1 -1
- package/modules/admin/dist/static/js/430.b3941f30.js.gz +0 -0
- package/modules/admin/dist/static/js/550.f27feb23.js +1 -0
- package/modules/admin/dist/static/js/550.f27feb23.js.gz +0 -0
- package/modules/admin/dist/static/js/569.0fecfbee.js +1 -0
- package/modules/admin/dist/static/js/569.0fecfbee.js.gz +0 -0
- package/modules/admin/dist/static/js/{app.981e71b3.js → app.ea86ae11.js} +2 -2
- package/modules/admin/dist/static/js/app.ea86ae11.js.gz +0 -0
- package/modules/admin/src/views/EditDocument.vue +20 -15
- package/modules/admin/src/views/ListDocuments2.vue +14 -9
- package/package.json +1 -1
- package/scripts/run_cypress_tests.sh +33 -3
- package/modules/admin/dist/164c6167c1f3c497c07c.woff +0 -1
- package/modules/admin/dist/42ac07abc8473600c41f.ttf +0 -1
- package/modules/admin/dist/86dccb18a7eb4be8ef1a.woff +0 -1
- package/modules/admin/dist/c45297c558e0318fc9c5.ttf +0 -1
- package/modules/admin/dist/c717c9930715e24fa12c.woff +0 -1
- package/modules/admin/dist/ca6f07ef23f24cc2738a.ttf +0 -1
- package/modules/admin/dist/css/269.f7d5c7d5.css.gz +0 -0
- package/modules/admin/dist/css/699.d1f90954.css.gz +0 -0
- package/modules/admin/dist/css/864.506917a4.css.gz +0 -0
- package/modules/admin/dist/css/899.506917a4.css.gz +0 -0
- package/modules/admin/dist/css/app.11cc6245.css +0 -39
- package/modules/admin/dist/css/app.11cc6245.css.gz +0 -0
- package/modules/admin/dist/css/app.2e1b0d79.css +0 -591
- package/modules/admin/dist/css/app.2e1b0d79.css.gz +0 -0
- package/modules/admin/dist/css/app.4d43d0fd.css +0 -592
- package/modules/admin/dist/css/app.4d43d0fd.css.gz +0 -0
- package/modules/admin/dist/css/app.abace109.css +0 -1
- package/modules/admin/dist/css/app.abace109.css.gz +0 -0
- package/modules/admin/dist/css/chunk-elementUI.67ad86d7.css +0 -1
- package/modules/admin/dist/css/chunk-elementUI.67ad86d7.css.gz +0 -0
- package/modules/admin/dist/css/chunk-elementUI.9e660bfd.css +0 -1
- package/modules/admin/dist/css/chunk-elementUI.9e660bfd.css.gz +0 -0
- package/modules/admin/dist/css/chunk-elementUI.c77cf142.css +0 -1
- package/modules/admin/dist/css/chunk-elementUI.c77cf142.css.gz +0 -0
- package/modules/admin/dist/css/chunk-elementUI.f1625b35.css +0 -1
- package/modules/admin/dist/css/chunk-elementUI.f1625b35.css.gz +0 -0
- package/modules/admin/dist/css/chunk-elementUI.f25dfb9b.css +0 -1
- package/modules/admin/dist/css/chunk-elementUI.f25dfb9b.css.gz +0 -0
- package/modules/admin/dist/css/chunk-libs.de0d8484.css +0 -551
- package/modules/admin/dist/css/chunk-libs.de0d8484.css.gz +0 -0
- package/modules/admin/dist/static/js/269.7245ceaf.js +0 -1
- package/modules/admin/dist/static/js/269.7245ceaf.js.gz +0 -0
- package/modules/admin/dist/static/js/637.26413baa.js +0 -1
- package/modules/admin/dist/static/js/637.26413baa.js.gz +0 -0
- package/modules/admin/dist/static/js/699.c7564884.js.gz +0 -0
- package/modules/admin/dist/static/js/864.4f43847d.js.gz +0 -0
- package/modules/admin/dist/static/js/app.981e71b3.js.gz +0 -0
- /package/modules/admin/dist/css/{269.f7d5c7d5.css → 569.f7d5c7d5.css} +0 -0
- /package/modules/admin/dist/static/js/{app.981e71b3.js.LICENSE.txt → app.ea86ae11.js.LICENSE.txt} +0 -0
- /package/modules/admin/dist/static/js/{app.981e71b3.js.LICENSE.txt.gz → app.ea86ae11.js.LICENSE.txt.gz} +0 -0
|
@@ -13,9 +13,11 @@ describe('Custom Collections', function() {
|
|
|
13
13
|
cy.visit('/')
|
|
14
14
|
cy.get('.hamburger-container').click();
|
|
15
15
|
cy.wait(100)
|
|
16
|
-
cy.get('span').contains('
|
|
16
|
+
cy.get('span').contains('Data').click();
|
|
17
|
+
cy.wait(1000)
|
|
18
|
+
cy.get('.is-opened span').contains('Collection').click();
|
|
17
19
|
|
|
18
|
-
cy.get('.btn-primary').click();
|
|
20
|
+
cy.get('.btn-primary').contains('Add').click();
|
|
19
21
|
let id = `coll-${randomId()}`;
|
|
20
22
|
cy.fillValue('_id', id)
|
|
21
23
|
|
|
@@ -24,6 +24,21 @@
|
|
|
24
24
|
// -- This will overwrite an existing command --
|
|
25
25
|
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })
|
|
26
26
|
|
|
27
|
+
Cypress.Commands.overwrite('server', () => {
|
|
28
|
+
// no-op polyfill for deprecated cy.server
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
Cypress.Commands.overwrite('route', (originalFn, arg1, arg2, arg3) => {
|
|
32
|
+
// polyfill cy.route to cy.intercept for Cypress >= 10
|
|
33
|
+
if (typeof arg2 === 'undefined' && typeof arg3 === 'undefined') {
|
|
34
|
+
return cy.intercept(arg1)
|
|
35
|
+
}
|
|
36
|
+
if (typeof arg3 === 'undefined') {
|
|
37
|
+
return cy.intercept(arg1, arg2)
|
|
38
|
+
}
|
|
39
|
+
return cy.intercept(arg1, arg2, arg3)
|
|
40
|
+
})
|
|
41
|
+
|
|
27
42
|
Cypress.Commands.add('randomId', (length) => {
|
|
28
43
|
var text = "";
|
|
29
44
|
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
package/cypress/support/util.js
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Configure Cypress v10+ while preserving legacy folder structure
|
|
2
|
+
// https://docs.cypress.io/guides/references/configuration
|
|
3
|
+
|
|
4
|
+
const { defineConfig } = require('cypress')
|
|
5
|
+
|
|
6
|
+
module.exports = defineConfig({
|
|
7
|
+
e2e: {
|
|
8
|
+
// Keep using the legacy integration tests directory
|
|
9
|
+
specPattern: 'cypress/integration/**/*.js',
|
|
10
|
+
supportFile: 'cypress/support/index.js',
|
|
11
|
+
baseUrl: 'http://localhost:3001/admin',
|
|
12
|
+
setupNodeEvents(on, config) {
|
|
13
|
+
// no plugins yet
|
|
14
|
+
return config
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
video: false
|
|
18
|
+
})
|
|
@@ -14,7 +14,8 @@ const webpackConfig = require('./webpack.prod.conf')
|
|
|
14
14
|
const spinner = ora('building for production...')
|
|
15
15
|
spinner.start()
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
// Clean the entire dist directory to ensure no stale top-level hashed files linger
|
|
18
|
+
rm(path.join(config.build.assetsRoot), err => {
|
|
18
19
|
if (err) throw err
|
|
19
20
|
webpack(webpackConfig, (err, stats) => {
|
|
20
21
|
spinner.stop()
|
|
@@ -84,10 +84,10 @@ module.exports = {
|
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
|
|
87
|
-
loader: '
|
|
87
|
+
loader: 'file-loader',
|
|
88
88
|
options: {
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
name: utils.assetsPath('fonts/[name].[hash:7].[ext]'),
|
|
90
|
+
esModule: false
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
{
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|