itemengine-cypress-automation 1.0.515-dependabot-npm-and-yarn-multi-c7c3a225fc-47d2677.0 → 1.0.516-IEI-5333-0122d80.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.
- package/cypress/e2e/ILC/test/test.js +37 -16
- package/cypress/pages/audioPlayerPage.js +2 -2
- package/cypress/pages/components/additionalSettingsPanel.js +3 -3
- package/cypress/pages/components/essayResponseCommonComponents.js +2 -2
- package/cypress/pages/components/gridQuestionCommonComponent.js +2 -2
- package/cypress/pages/components/questionInputFieldComponent.js +1 -1
- package/cypress/pages/components/questionInstructionsComponent.js +1 -1
- package/cypress/pages/contentBlocksPage.js +1 -1
- package/cypress/pages/essayResponsePage.js +1 -1
- package/cypress/pages/textSelectionPage.js +1 -1
- package/cypress.config.js +1 -1
- package/deploy/test/service.yaml +7 -0
- package/package.json +2 -2
@@ -1,21 +1,42 @@
|
|
1
|
-
describe('Page Load Test for v1', () => {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
});
|
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
|
+
// });
|
11
22
|
|
12
|
-
describe('Page Load Test for
|
23
|
+
describe('Page Load Test for v1', () => {
|
13
24
|
it('should load the page successfully', () => {
|
14
|
-
cy.log('Navigating to
|
15
|
-
cy.visit('https://
|
25
|
+
cy.log('Navigating to Google');
|
26
|
+
cy.visit('https://google.com');
|
16
27
|
cy.get('body').should('exist');
|
17
|
-
cy.log('
|
18
|
-
|
19
|
-
|
28
|
+
cy.log('Google page loaded');
|
29
|
+
|
30
|
+
// Check for Google's search input
|
31
|
+
cy.get('input[name="q"]').should('exist');
|
32
|
+
|
33
|
+
// Check for Google Search button
|
34
|
+
cy.get('input[value="Google Search"]').should('exist');
|
35
|
+
|
36
|
+
// Check for the Google logo
|
37
|
+
cy.get('img[alt="Google"]').should('be.visible');
|
38
|
+
|
39
|
+
// Verify the page title contains "Google"
|
40
|
+
cy.title().should('include', 'Google');
|
20
41
|
});
|
21
42
|
});
|
@@ -61,7 +61,7 @@ const selectors = {
|
|
61
61
|
playAttemptsLimitInputField: () => cy.get('.freeResponseAudioFormTextInput input'),
|
62
62
|
studentViewSettingsLabel: () => cy.get('[class*="AudioPlayerstyles__TranscriptLabelWrapper"]').eq(0),
|
63
63
|
audioOverviewLabel: () => cy.get('.additional-settings-label'),
|
64
|
-
audioOverviewInputField: () => cy.get('[
|
64
|
+
audioOverviewInputField: () => cy.get('[aria-label="Description"]'),
|
65
65
|
transcriptLabel: () => cy.get('[class*="TranscriptWrapper"] [class*="AudioPlayerstyles__TranscriptLabelWrapper"]'),
|
66
66
|
uploadTranscriptUploadLabel: () => cy.get('[class*="AudioPlayerstyles__AudioLabel"]').eq(2),
|
67
67
|
uploadTranscriptFileNameLabel: () => cy.get('[class*="AudioPlayerstyles__AudioLabel"]').eq(3),
|
@@ -72,7 +72,7 @@ const selectors = {
|
|
72
72
|
transcriptFileUploadProgressBar: () => cy.get('.audio-player-form-progressbar'),
|
73
73
|
transcriptInputFieldLabel: () => cy.get('.additional-settings-label').eq(1),
|
74
74
|
deleteTranscriptButton: () => cy.get('[aria-label*="Delete"]'),
|
75
|
-
transcriptCKeditorInputField: () => cy.get('div[contenteditable="true"][aria-label="Transcript"]
|
75
|
+
transcriptCKeditorInputField: () => cy.get('div[contenteditable="true"][aria-label="Transcript"]'),
|
76
76
|
//Preview tab
|
77
77
|
volumeControlButton: () => cy.get('.audio-player-volume-wrapper .audio-player-icon'),
|
78
78
|
playbackPlayButton: () => cy.get('.audio-resource-preview-wrapper-without-print button[aria-label="Play"]'),
|
@@ -10,9 +10,9 @@ const selectors = {
|
|
10
10
|
additionalSettingsTeacherGuidelinesLabel: () => cy.get('.additional-settings-detail-wrapper .additional-settings-label').eq(0),
|
11
11
|
additionalSettingsSampleAnswerLabel: () => cy.get('.additional-settings-detail-wrapper .additional-settings-label').eq(1),
|
12
12
|
additionalSettingsAcknowledgementsLabel: () => cy.get('.additional-settings-detail-wrapper .additional-settings-label').eq(2),
|
13
|
-
additionalSettingsTeacherGuidelinesInputField: () => cy.get('[
|
14
|
-
additionalSettingsSampleAnswerInputField: () => cy.get('[
|
15
|
-
additionalSettingsAcknowledgementsInputField: () => cy.get('[
|
13
|
+
additionalSettingsTeacherGuidelinesInputField: () => cy.get('[aria-label="Teacher Scoring Guidelines"]'),
|
14
|
+
additionalSettingsSampleAnswerInputField: () => cy.get('[aria-label="Sample Answer"]'),
|
15
|
+
additionalSettingsAcknowledgementsInputField: () => cy.get('[aria-label="acknowledgements and references"]'),
|
16
16
|
//Font-size dropdown
|
17
17
|
fontSizeLabel: () => cy.get('#Font-Size-dropdown-label'),
|
18
18
|
fontSizeDropdown: () => cy.get('#Font-Size-select'),
|
@@ -72,7 +72,7 @@ const selectors = {
|
|
72
72
|
wordCountWrapper: () => cy.get('[class*="indexstyle__WordCharCountWrapper"]'),
|
73
73
|
|
74
74
|
//Preview tab
|
75
|
-
responseField: () => cy.get('[
|
75
|
+
responseField: () => cy.get('[aria-label="Enter your response to the question here."]'),
|
76
76
|
responseFieldWordCount: () => cy.get('[class*="InputLimitLabelWrapper"]'),
|
77
77
|
responseFieldEquation: () => cy.get('.cke_widget_element'),
|
78
78
|
responseFieldText: () => cy.get('[class*="EssayResponseGradingViewstyle__GradingViewWrapper"] .question-text-wrapper'),
|
@@ -82,7 +82,7 @@ const selectors = {
|
|
82
82
|
//Additional settings, These are old selectors. Need to update them along with additional settings file revamp
|
83
83
|
studentResponseAndLayoutLabel: () => cy.get('.layout-text'),
|
84
84
|
predefinedTextLabel: () => cy.get('[class*="EssayResponsestyles__PropertyLabel"]'),
|
85
|
-
predefinedTextInputField: () => cy.get('[
|
85
|
+
predefinedTextInputField: () => cy.get('[aria-label="Predefined Text"]'),
|
86
86
|
placeholderTextLabel: () => cy.get('.place-holder-text .text-label'),
|
87
87
|
placeholderTextInputField: () => cy.get('[aria-label="Placeholder Text"]'),
|
88
88
|
minHeightLabel: () => cy.get('.size-wrapper .text-label').eq(0),
|
@@ -34,8 +34,8 @@ const selectors = {
|
|
34
34
|
editCellPropertyRow: () => gridQuestionCommonComponent.editCellPropertyTableWrapper().find('[class*="wrapper-row"]'),
|
35
35
|
editCellPropertyTableLeftPaginationButton: () => cy.get('.authoring-selection-grid [class*="SelectionGridstyles__PaginationLeftControl"]'),
|
36
36
|
editCellPropertyTableRightPaginationButton: () => cy.get('.authoring-selection-grid [class*="SelectionGridstyles__PaginationRightControl"]'),
|
37
|
-
cellPropertyInputField: () => cy.get('[
|
38
|
-
optionCellPropertyInputField: () => cy.get('[
|
37
|
+
cellPropertyInputField: () => cy.get('[aria-label*="text"], [class*="SelectionGridstyles__AuthoringHeadingWrapper"] input, [class*="SelectionGridstyles"] input'),
|
38
|
+
optionCellPropertyInputField: () => cy.get('[aria-label="Option text or image..."],[placeholder="Option text or image..."]'),
|
39
39
|
tableRowSpecifyCorrectAnswerSection: () => cy.get('.correct-answer-accordion [class*="wrapper-row"]'),
|
40
40
|
tableRowPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [class*="wrapper-row"]'),
|
41
41
|
tableRowHeadersSpecifyCorrectAnswerSection: () => cy.get('.set-correct-ans-selection-grid .cell-content-text'),
|
@@ -3,7 +3,7 @@ import { commonComponents } from "./commonComponents";
|
|
3
3
|
|
4
4
|
const selectors = {
|
5
5
|
questionLabel: () => cy.get('.cloze-with-text-question-wrapper .title-casing'),
|
6
|
-
questionInputField: () => cy.get('.cloze-with-text-question-wrapper [
|
6
|
+
questionInputField: () => cy.get('.cloze-with-text-question-wrapper [aria-label="question"]'),
|
7
7
|
responseArea: () => cy.get('.cke_widget_wrapper_add_response_element'),
|
8
8
|
responseAreaCloseButton: () => cy.get('.add_response_close'),
|
9
9
|
addResponseAreaButton: () => cy.get('.add-response-token-wrapper-cls button'),
|
@@ -5,7 +5,7 @@ const css = Cypress.env('css');
|
|
5
5
|
|
6
6
|
const selectors = {
|
7
7
|
questionInstructionsLabelEditTab: () => cy.get('.edit-question-instruction-label'),
|
8
|
-
questionInstructionsInputField: () => cy.get('[
|
8
|
+
questionInstructionsInputField: () => cy.get('[aria-label="Question Instructions"]'),
|
9
9
|
questionInstructionsText: () => cy.get('.question-instruction'),
|
10
10
|
questionInstructionsWrapper: () => cy.get('.edit-question-instruction-wrapper'),
|
11
11
|
questionInstructionsTextPreviewTab: () => cy.get('.question-instruction:visible'),
|
@@ -15,7 +15,7 @@ const selectors = {
|
|
15
15
|
groupDividerWrapper: () => cy.get('.body-group-divider'),
|
16
16
|
textBlockWrapper: () => cy.get('.body-text-block'),
|
17
17
|
textBlockLabel: () => cy.get('.body-section-header'),
|
18
|
-
textBlockInputField: () => cy.get('[
|
18
|
+
textBlockInputField: () => cy.get('[aria-label="Enter text block"]'),
|
19
19
|
bodyLabel: () => cy.get('.options-label'),
|
20
20
|
bodyWrapper: () => cy.get('.edit-mcq-options-wrapper'),
|
21
21
|
bodySubTitleLabel: () => cy.get('.body-section-header'),
|
@@ -129,7 +129,7 @@ const hyperlinkDialogBox = {
|
|
129
129
|
hyperlinkDialogboxURLInputField: () => essayResponsePage.hyperlinkDialogBox().find('input[class*="cke_dialog_ui_input_text"]').eq(1),
|
130
130
|
hyperlinkDialogboxButtonOk: () => cy.get('.action-button-wrapper [role="button"]').eq(1),
|
131
131
|
hyperlinkDialogboxButtonCancel: () => cy.get('.action-button-wrapper [role="button"]').eq(0),
|
132
|
-
previewInputFieldHyperlinkText: () => cy.get('div[
|
132
|
+
previewInputFieldHyperlinkText: () => cy.get('div[aria-label="Enter your response to the question here."] a'),
|
133
133
|
}
|
134
134
|
|
135
135
|
const steps = {
|
@@ -25,7 +25,7 @@ const selectors = {
|
|
25
25
|
...showAvailableOptionsToStudents,
|
26
26
|
...showStudentMaximumNumberOfPossibleSelections,
|
27
27
|
questionLabel: () => cy.get('[class*="Highlightstyles__QuestionComponentWrapper"] .title-casing'),
|
28
|
-
questionInputField: () => cy.get('[class*="Highlightstyles__QuestionComponentWrapper"] [
|
28
|
+
questionInputField: () => cy.get('[class*="Highlightstyles__QuestionComponentWrapper"] [aria-label="Question"]'),
|
29
29
|
specifyPossibleOptionsTextFieldWrapper: () => cy.get('[class*="Highlightstyles__HighLightWrapper"] .question-text-wrapper'),
|
30
30
|
textSelectionStyleLabel: () => cy.get('.text-selection-style .options-label'),
|
31
31
|
textSelectionStyleButtonLabel: (ariaLabel = null) => {
|
package/cypress.config.js
CHANGED
package/deploy/test/service.yaml
CHANGED
@@ -20,6 +20,13 @@ deployment:
|
|
20
20
|
requests:
|
21
21
|
memory: 4096Mi
|
22
22
|
cpu: 2000m
|
23
|
+
egress:
|
24
|
+
FQDNs:
|
25
|
+
- "google.com"
|
26
|
+
- "sandbox.itemengine-dev.il-apps.com"
|
27
|
+
- "sandbox.itemengine-qa.il-apps.com"
|
28
|
+
- "sandbox.itemengine-staging.il-apps.com"
|
29
|
+
- "sandbox.itemengine-prod.il-apps.com"
|
23
30
|
|
24
31
|
namespaces:
|
25
32
|
dev:
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "itemengine-cypress-automation",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.516-IEI-5333-0122d80.0",
|
4
4
|
"description": "",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -43,7 +43,7 @@
|
|
43
43
|
"axe-core": "^4.7.1",
|
44
44
|
"cy-verify-downloads": "^0.1.11",
|
45
45
|
"cy2": "^4.0.9",
|
46
|
-
"cypress": "^
|
46
|
+
"cypress": "^12.17.2",
|
47
47
|
"cypress-axe": "^1.4.0",
|
48
48
|
"cypress-file-upload": "^5.0.8",
|
49
49
|
"cypress-real-events": "^1.7.6",
|