Skip to content

Commit 831f0a3

Browse files
authored
Tests [QA] v1.10.0-rc34 (#3499)
1 parent 8b0538c commit 831f0a3

File tree

9 files changed

+509
-123
lines changed

9 files changed

+509
-123
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"babel-runtime": "^6.26.0",
107107
"body-parser": "^1.19.0",
108108
"chai": "^4.3.4",
109-
"chromedriver": "^140.0.0",
109+
"chromedriver": "^142.0.0",
110110
"cross-env": "^7.0.3",
111111
"css-loader": "^6.5.1",
112112
"cucumber-html-reporter": "^5.3.0",

tests/features/MLFunction.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ Feature: ML Functions
449449
| Secret | | | | yes |
450450
Then verify "Volume_Paths_Table_Volume_Name_Input" element in "Resources_Accordion" on "New_Function" wizard should display hover warning "Input_Hint"."Input_Field_Require"
451451
Then verify "Volume_Paths_Table_Path_Input" element in "Resources_Accordion" on "New_Function" wizard should display hover warning "Input_Hint"."Input_Field_Require"
452-
Then verify "Volume_Paths_Table_Config_Map_Input" element in "Resources_Accordion" on "New_Function" wizard should display hover warning "Input_Hint"."Input_Field_Require"
452+
Then verify "Volume_Paths_Table_Secret_Name_Input" in "Resources_Accordion" on "New_Function" wizard should display options "Input_Hint"."Secret_Name_Rule_Options"
453453
Then verify "Volume_Paths_Table_Path_Input" element in "Resources_Accordion" on "New_Function" wizard should display hint "Input_Hint"."Mount_Path_Hint"
454454
When click on "Delete_New_Row_Button" element in "Resources_Accordion" on "New_Function" wizard
455455
When add new volume rows to "Volume_Paths_Table" table in "Resources_Accordion" on "New_Function" wizard using nontable inputs
@@ -537,7 +537,7 @@ Feature: ML Functions
537537
| Function_Environment_Variables_Name_Input | Function_Environment_Variables_Type_Dropdown | Function_Environment_Variables_Secret_Name_Input | Function_Environment_Variables_Secret_Key_Input | Add_Row_Button |
538538
| | Secret | | @#$ | yes |
539539
Then verify "Function_Environment_Variables_Name_Input" element in "Environment_Variables_Accordion" on "New_Function" wizard should display hover warning "Input_Hint"."Input_Field_Require"
540-
Then verify "Function_Environment_Variables_Secret_Name_Input" element in "Environment_Variables_Accordion" on "New_Function" wizard should display hover warning "Input_Hint"."Input_Field_Require"
540+
Then verify "Function_Environment_Variables_Secret_Name_Input" in "Environment_Variables_Accordion" on "New_Function" wizard should display options "Input_Hint"."Secret_Name_Rule_Options"
541541
Then verify "Function_Environment_Variables_Secret_Name_Input" element in "Environment_Variables_Accordion" on "New_Function" wizard should display hint "Input_Hint"."SECRET_INPUT_HINT"
542542
Then verify "Function_Environment_Variables_Secret_Key_Input" element in "Environment_Variables_Accordion" on "New_Function" wizard should display hover warning "Input_Hint"."Input_Field_Invalid"
543543
Then verify "Function_Environment_Variables_Secret_Key_Input" element in "Environment_Variables_Accordion" on "New_Function" wizard should display hint "Input_Hint"."VALUE_INPUT_HINT"

tests/features/common-tools/common-consts.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,14 @@ export default {
538538
Distinct_Keys: 'The partition is based on key.',
539539
Source_URL_Input:
540540
'Source URL is the Git Repo that is associated with the project. When the user pulls the project it will use the source URL to pull from',
541+
Secret_Name_Rule_Options:
542+
'Valid characters: a–z, A–Z, 0–9, –, _, .\n' +
543+
'Must begin and end with: a–z, A–Z, 0–9\n' +
544+
'No consecutive characters: ..,, .–,, –.\n' +
545+
'Max length between two periods: 63\n' +
546+
'Length – max: 253\n'+
547+
'This field is required\n'+
548+
'Secret does not reference an MLRun secret defined in another project',
541549
SECRET_INPUT_HINT:
542550
'• Valid characters: A-Z, a-z, 0-9, -, _, .\n' +
543551
'• Must begin and end with: A-Z, a-z, 0-9\n' +

tests/features/common/page-objects/interactive-popup.po.js

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ const actionMenuStructure = {
293293
}
294294

295295
const volumePathsTable = {
296-
root: '.modal__content .form-row:nth-of-type(7)',
296+
root: '[data-testid="resources.volumesTable"]',
297297
header: {
298298
root: '.form-table__header-row',
299299
sorters: {
@@ -306,15 +306,16 @@ const volumePathsTable = {
306306
offset: 1,
307307
add_row_btn: '.form-table__action-row button',
308308
row: {
309-
root: 'div[class=table__row]',
309+
root: 'div.form-table__row.form-table__volume-row',
310310
fields: {
311-
type: '.table__cell:nth-of-type(1) .data-ellipsis',
312-
volume_name: '.table__cell:nth-of-type(2) .data-ellipsis',
313-
path: '.table__cell:nth-of-type(3) .data-ellipsis',
311+
type: '.form-table__cell:nth-of-type(1) .data-ellipsis',
312+
volume_name: '.form-table__cell:nth-of-type(2) .data-ellipsis',
313+
path: '.form-table__cell:nth-of-type(3) .data-ellipsis',
314314
action_menu: {
315315
componentType: actionMenu,
316316
structure: actionMenuStructure
317-
}
317+
},
318+
remove_btn: '[data-testid="delete-btn"]'
318319
}
319320
}
320321
}
@@ -474,10 +475,9 @@ const advancedEnvironmentVariablesTable = {
474475
)
475476
},
476477
type_dropdown_verify: '.form-table__cell_1 .data-ellipsis',
477-
value_input: '.form-table__cell_3 .form-field__control input',
478+
value_input: '.form-table__cell_3 .form-field__control:nth-of-type(1) input',
478479
value_verify: '.form-table__cell_3 .data-ellipsis',
479-
value_input_key:
480-
'.form-table__cell_3 .form-field-input:nth-of-type(2) .form-field__control input'
480+
value_input_key: '.form-table__cell_3 .form-field-input:nth-of-type(2) input'
481481
}
482482
}
483483
}
@@ -994,7 +994,7 @@ export default {
994994
),
995995
Volumes_Subheader: labelComponent(
996996
generateLabelGroup(
997-
'.modal__content .wizard-form__content-container .form-row:nth-child(6)',
997+
'.modal__content .wizard-form__content-container .job-wizard__resources .form-row:nth-child(6)',
998998
false,
999999
true
10001000
)
@@ -1196,6 +1196,17 @@ export default {
11961196
false,
11971197
true
11981198
)
1199+
),
1200+
Env_Variables_Table_Secret_Name_Input: inputGroup(
1201+
generateInputGroup(
1202+
'[data-testid="advanced.environmentVariablesTable"] .form-table__cell:nth-of-type(3) .secret-name',
1203+
true,
1204+
true,
1205+
'.form-field__warning svg'
1206+
)
1207+
),
1208+
Delete_New_Row_Button: By.css(
1209+
'[data-testid="advanced.environmentVariablesTable"] .form-table__actions-cell .round-icon-cp:nth-of-type(2)'
11991210
)
12001211
},
12011212
Hyperparameter_Strategy_Accordion: {

tests/features/common/page-objects/project.po.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,9 @@ export default {
357357
Realtime_Functions_Nuclio_Statistic_Section: {
358358
ConsumerGroups_Stats_Counter: By.css('.d-flex:nth-of-type(2) .project-data-card__header .project-data-card__statistics-item:nth-of-type(4) .project-data-card__statistics-value'),
359359
Recent_Text: By.css('.d-flex:nth-of-type(2) .project-data-card__recent-text span'),
360-
All_Realtime_Functions_Link: By.css('.d-flex:nth-of-type(2) .project-data-card__see-all-link')
360+
All_Realtime_Functions_Link: By.css('.d-flex:nth-of-type(2) .project-data-card__see-all-link'),
361+
Running_Counter_Subtitle: By.css('.d-flex:nth-of-type(2) .project-data-card__statistics .project-data-card__statistics-item:nth-of-type(1) span'),
362+
Failed_Counter_Subtitle: By.css('.d-flex:nth-of-type(2) .project-data-card__statistics .project-data-card__statistics-item:nth-of-type(2) span')
361363
}
362364
},
363365
demoProject: {

0 commit comments

Comments
 (0)