itemengine-cypress-automation 1.0.11 → 1.0.12
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.
@@ -3,7 +3,7 @@ import { v4 as uuidv4 } from 'uuid';
|
|
3
3
|
import "cypress-real-events/support";
|
4
4
|
import 'cypress-file-upload';
|
5
5
|
require('cy-verify-downloads').addCustomCommand();
|
6
|
-
import addContext from "mochawesome/addContext";
|
6
|
+
//import addContext from "mochawesome/addContext";
|
7
7
|
|
8
8
|
const randomUser = (j, username, i) => ({
|
9
9
|
id: uuidv4(),
|
@@ -129,9 +129,9 @@ Cypress.Commands.add('fill', { prevSubject: 'element' }, ($subj, text) => {
|
|
129
129
|
return cy.wrap($subj).type('{enter}');
|
130
130
|
});
|
131
131
|
|
132
|
-
Cypress.Commands.add('addContext', (context) => {
|
133
|
-
|
134
|
-
});
|
132
|
+
// Cypress.Commands.add('addContext', (context) => {
|
133
|
+
// cy.once('test:after:run', (test) => addContext({ test }, context));
|
134
|
+
// });
|
135
135
|
|
136
136
|
Cypress.Commands.add('barsPreLoaderWait', () => {
|
137
137
|
cy.get('[id="question-item-instruction-loader"]')
|
package/cypress/support/e2e.js
CHANGED
@@ -20,10 +20,10 @@ function checkAccessibility(cySelector = null) {
|
|
20
20
|
cy.injectAxe()
|
21
21
|
.then(() => {
|
22
22
|
if (cySelector === null) {
|
23
|
-
return cy.checkA11y(null, config
|
23
|
+
return cy.checkA11y(null, config);
|
24
24
|
} else {
|
25
25
|
cySelector.then(($element) => {
|
26
|
-
return cy.checkA11y($element.selector, config
|
26
|
+
return cy.checkA11y($element.selector, config);
|
27
27
|
});
|
28
28
|
};
|
29
29
|
});
|
package/cypress.config.js
CHANGED
@@ -19,7 +19,6 @@ async function getConfigurationByFile(file, theme) {
|
|
19
19
|
}
|
20
20
|
|
21
21
|
module.exports = defineConfig({
|
22
|
-
reporter: 'cypress-mochawesome-reporter',
|
23
22
|
reporterOptions: {
|
24
23
|
reportDir: 'cypress/reports',
|
25
24
|
charts: true,
|
@@ -63,7 +62,6 @@ module.exports = defineConfig({
|
|
63
62
|
},
|
64
63
|
isFileExist
|
65
64
|
});
|
66
|
-
require('cypress-mochawesome-reporter/plugin')(on);
|
67
65
|
require('@cypress/grep/src/plugin')()
|
68
66
|
return cloudPlugin(on, config), getConfigurationByFile(file, theme);
|
69
67
|
},
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "itemengine-cypress-automation",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.12",
|
4
4
|
"description": "",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -8,7 +8,7 @@
|
|
8
8
|
"test": "echo 'success'",
|
9
9
|
"spinnaker": "node scripts/spinnaker.mjs --env theme=ilc",
|
10
10
|
"spinnaker:untagged": "node scripts/spinnaker.mjs --env theme=ilc,grepUntagged=true",
|
11
|
-
"local": "node scripts/local.mjs",
|
11
|
+
"local": "node scripts/local.mjs --env fileConfig=ilqa",
|
12
12
|
"cy:ildev": "cypress open --env fileConfig=ildev",
|
13
13
|
"cy:ilprod": "cypress open --env fileConfig=ilprod",
|
14
14
|
"cy:ilqa": "cypress open --env fileConfig=ilqa",
|
@@ -26,7 +26,6 @@
|
|
26
26
|
"cypress-axe": "^1.5.0",
|
27
27
|
"cypress-cloud": "^1.9.6",
|
28
28
|
"cypress-file-upload": "^5.0.8",
|
29
|
-
"cypress-mochawesome-reporter": "^3.3.0",
|
30
29
|
"cypress-real-events": "^1.7.6",
|
31
30
|
"react-uuid": "^2.0.0"
|
32
31
|
}
|
@@ -86,7 +86,8 @@ export function runSorryCypressSpinnaker() {
|
|
86
86
|
export function runSorryCypressLocal() {
|
87
87
|
process.env.CYPRESS_API_URL = "https://cypress-director.imaginelearning.engineering/";
|
88
88
|
const user = OS.userInfo().username;
|
89
|
-
startTime = Math.round(Date.now() /
|
89
|
+
startTime = Math.round(Date.now() / 1000000);
|
90
90
|
ciBuildId = setCiBuildId(user, startTime);
|
91
|
+
const envArgs = setCommandLineEnvArgs()
|
91
92
|
runSorryCypress(ciBuildId, envArgs);
|
92
93
|
}
|