itemengine-cypress-automation 1.0.283 → 1.0.284-IEI-4866-bc2c255.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/Gzip/gzip.js +7 -7
- package/package.json +1 -1
package/cypress/e2e/Gzip/gzip.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
// Command for execution - npx cypress run --headed --browser chrome --env fileConfig=ilqa,assetVersion=1.0.409,
|
2
|
-
//assetVersion,
|
1
|
+
// Command for execution - npx cypress run --headed --browser chrome --env fileConfig=ilqa,assetVersion=1.0.409,environment=qa --spec "cypress\e2e\Gzip\gzip.js"
|
2
|
+
//assetVersion, environment should be updated according to the current version
|
3
3
|
|
4
4
|
const assetVersion = Cypress.env('assetVersion');
|
5
|
-
const
|
5
|
+
const environment = Cypress.env('environment');
|
6
6
|
|
7
7
|
describe('Assets GZIP compression', () => {
|
8
8
|
before(() => {
|
@@ -91,21 +91,21 @@ describe('CKEditor GZIP compression', () => {
|
|
91
91
|
});
|
92
92
|
|
93
93
|
it('Verifying ngckeditor/ngckeditor.js gzip', () => {
|
94
|
-
steps.verifyGzipCompression(`https://
|
94
|
+
steps.verifyGzipCompression(`https://ckeditor-assets.itemengine-${environment}.il-apps.com/ngckeditor/ngckeditor.js`);
|
95
95
|
});
|
96
96
|
|
97
97
|
//.css
|
98
98
|
it('Verifying custom_item_engine.css gzip', () => {
|
99
|
-
steps.verifyGzipCompression(`https://
|
99
|
+
steps.verifyGzipCompression(`https://ckeditor-assets.itemengine-${environment}.il-apps.com/ngckeditor/css/custom_item_engine.css`)
|
100
100
|
});
|
101
101
|
|
102
102
|
//externalPlugins
|
103
103
|
it('Verifying externalPlugins/nextGenEqnEditor/plugin.js gzip', () => {
|
104
|
-
steps.verifyGzipCompression(`https://
|
104
|
+
steps.verifyGzipCompression(`https://ckeditor-assets.itemengine-${environment}.il-apps.com/ngckeditor/externalPlugins/nextGenEqnEditor/plugin.js`)
|
105
105
|
});
|
106
106
|
|
107
107
|
it('Verifying externalPlugins/nextGenAudioPlayer/plugin.js gzip', () => {
|
108
|
-
steps.verifyGzipCompression(`https://
|
108
|
+
steps.verifyGzipCompression(`https://ckeditor-assets.itemengine-${environment}.il-apps.com/ngckeditor/externalPlugins/nextGenAudioPlayer/plugin.js`)
|
109
109
|
});
|
110
110
|
});
|
111
111
|
|