itemengine-cypress-automation 1.0.504-dependabot-npm-and-yarn-multi-c7c3a225fc-3283400.0 → 1.0.504-dependabot-npm-and-yarn-multi-c7c3a225fc-0c16021.0
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.
@@ -0,0 +1,21 @@
|
|
1
|
+
describe('Page Load Test for v1', () => {
|
2
|
+
it('should load the page successfully', () => {
|
3
|
+
cy.log('Navigating to Login Page');
|
4
|
+
cy.visit('https://sandbox.itemengine-staging.il-apps.com/login');
|
5
|
+
cy.get('body').should('exist');
|
6
|
+
cy.log('Login page loaded');
|
7
|
+
cy.get('h1').should('have.text', 'Log in');
|
8
|
+
cy.get('button[data-at="Sign-in-button"] span').should('have.text', 'Sign In');
|
9
|
+
});
|
10
|
+
});
|
11
|
+
|
12
|
+
describe('Page Load Test for v2', () => {
|
13
|
+
it('should load the page successfully', () => {
|
14
|
+
cy.log('Navigating to Login Page');
|
15
|
+
cy.visit('https://itemengine-sandbox-staging.content-nonprod.imaginelearning.com/login');
|
16
|
+
cy.get('body').should('exist');
|
17
|
+
cy.log('Login page loaded');
|
18
|
+
cy.get('h1').should('have.text', 'Log in');
|
19
|
+
cy.get('button[data-at="Sign-in-button"] span').should('have.text', 'Sign In');
|
20
|
+
});
|
21
|
+
});
|
@@ -0,0 +1,42 @@
|
|
1
|
+
global:
|
2
|
+
name: ie-test
|
3
|
+
type: test
|
4
|
+
autoDeploy:
|
5
|
+
enabled: true
|
6
|
+
highestEnvironment: dev
|
7
|
+
|
8
|
+
deployment:
|
9
|
+
activeDeadlineSeconds: 28800
|
10
|
+
architecture: amd64
|
11
|
+
backoffLimit: 25
|
12
|
+
completions: 15
|
13
|
+
parallelism: 15
|
14
|
+
restartPolicy: Never
|
15
|
+
image:
|
16
|
+
cmd: /ie-e2e/deploy/test/run.sh
|
17
|
+
buildContext: ../..
|
18
|
+
resources:
|
19
|
+
limits:
|
20
|
+
memory: 8446Mi
|
21
|
+
cpu: 5000m
|
22
|
+
requests:
|
23
|
+
memory: 4096Mi
|
24
|
+
cpu: 2000m
|
25
|
+
|
26
|
+
namespaces:
|
27
|
+
dev:
|
28
|
+
env:
|
29
|
+
- name: STAGE
|
30
|
+
value: "dev"
|
31
|
+
qa:
|
32
|
+
env:
|
33
|
+
- name: STAGE
|
34
|
+
value: "qa"
|
35
|
+
staging:
|
36
|
+
env:
|
37
|
+
- name: STAGE
|
38
|
+
value: "staging"
|
39
|
+
prod:
|
40
|
+
env:
|
41
|
+
- name: STAGE
|
42
|
+
value: "prod"
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "itemengine-cypress-automation",
|
3
|
-
"version": "1.0.504-dependabot-npm-and-yarn-multi-c7c3a225fc-
|
3
|
+
"version": "1.0.504-dependabot-npm-and-yarn-multi-c7c3a225fc-0c16021.0",
|
4
4
|
"description": "",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -30,7 +30,8 @@
|
|
30
30
|
"spinnaker:audioResponse": "node scripts/questions.mjs --env theme=ilc,questionType=AudioResponseNew_VideoResponseNew_UploadResponse_ToolAudioPlayerNew,grepTags=-css+-a11y",
|
31
31
|
"spinnaker:feedbackScale": "node scripts/questions.mjs --env theme=ilc,questionType=FeedbackScaleNew_BrainingCampManipulative_EditItem_ToolSettings_CkEditorAudioPlayer_CkEditorEquationEditor_CkEditorInsertImage_CkEditorInsertTable_CkEditorInsertTable,grepTags=-css+-a11y",
|
32
32
|
"spinnaker:resourcesAndTools": "node scripts/questions.mjs --env theme=ilc,questionType=Compass_ContentBlocks_Protractor_ReadingRuler_SimpleCalculator_Ruler,grepTags=-css+-a11y",
|
33
|
-
"spinnaker:dataApiTest": "node scripts/dataApi.mjs --env theme=ilc,questionType=dataApi_Sessions,grepTags=-css+-a11y"
|
33
|
+
"spinnaker:dataApiTest": "node scripts/dataApi.mjs --env theme=ilc,questionType=dataApi_Sessions,grepTags=-css+-a11y",
|
34
|
+
"spinnaker:test": "node scripts/testcypress.mjs --env theme=ilc,questionType=test_Sessions,grepTags=-css+-a11y"
|
34
35
|
},
|
35
36
|
"repository": {
|
36
37
|
"type": "git",
|
@@ -301,4 +301,15 @@ export function runSorryCypressSpinnakerDataApi() {
|
|
301
301
|
let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs} --spec "cypress/e2e/ILC/dataApi/**/*.js,cypress/e2e/Sessions/**/*.js"`;
|
302
302
|
console.log(`command: ${command}`);
|
303
303
|
execSync(command, { stdio: "inherit" });
|
304
|
+
}
|
305
|
+
|
306
|
+
export function runSorryCypressTest() {
|
307
|
+
process.env.CYPRESS_API_URL = "https://cypress-director.imaginelearning.tech/";
|
308
|
+
const user = OS.userInfo().username;
|
309
|
+
startTime = Math.round(Date.now() / 1000000);
|
310
|
+
ciBuildId = setCiBuildId(user, startTime);
|
311
|
+
const envArgs = setCommandLineEnvArgs()
|
312
|
+
let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs} --spec "cypress/e2e/ILC/test/**/*.js"`;
|
313
|
+
console.log(`command: ${command}`);
|
314
|
+
execSync(command, { stdio: "inherit" });
|
304
315
|
}
|