Skip to content

Impl [Tests] QA Sprint 156 done #2212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions tests/features/common-tools/common-consts.js
Original file line number Diff line number Diff line change
@@ -261,9 +261,9 @@ module.exports = {
Register_Artifact: {
Type_Options: ['General', 'Chart', 'Plot', 'Table'],
Form_Text:
/This dialog enable users to register an artifact( as a dataset)? in Iguazio database\. Once (a artifact|the dataset) is registered it can be consumed by jobs and workflows\./,
'Register an artifact in MLRun so it can be used, for example, by functions, jobs, and pipelines.',
Form_Subtext:
'All you need to do is enter the name of the artifact and the URL (e.g. s3://my-bucket/path).',
'Assign it a unique combination of name and tag, and specify its path (for example, s3://mybucket/path).',
Combobox_Options: [
'V3IO',
'S3',
@@ -272,14 +272,15 @@ module.exports = {
'Azure storage',
'Google storage',
'Databricks filesystem'
]
],
Register_Error_Message: /That combination of (artifact|dataset) name and (artifact|dataset) tag is already in use\. Assign a unique combination of (artifact|dataset) name and (artifact|dataset) tag\./
},
Register_Dataset: {
Type_Options: ['General', 'Chart', 'Plot', 'Table'],
Form_Text:
/This dialog enable users to register an artifact( as a dataset)? in Iguazio database\. Once (a artifact|the dataset) is registered it can be consumed by jobs and workflows\./,
'Register a dataset as an artifact in MLRun so it can be used, for example, by functions, jobs, and pipelines.',
Form_Subtext:
'All you need to do is enter the name of the dataset and the URL (e.g. s3://my-bucket/path).',
'Assign it a unique combination of name and tag, and specify its path (for example, s3://mybucket/path).',
Combobox_Options: [
'V3IO',
'S3',
@@ -304,7 +305,7 @@ module.exports = {
'This field is required',
Artifact_Name_Hint:
'Valid characters: a–z, A–Z, 0–9, –, _, .\nMust begin and end with: a–z, A–Z, 0–9\nLength – max: 253\n' +
'This field is required\nArtifact name must be unique',
'This field is required',
Project_Name_Hint:
'Valid characters: a–z, 0–9, –\nMust begin with: a–z\nMust end with: a–z, 0–9\nLength – max: 63\n' +
'This field is required',
@@ -313,7 +314,9 @@ module.exports = {
'This field is required',
Labels_Warning_Key: 'Valid characters: a–z, A–Z, 0–9, –, _, .\nMust begin and end with: a–z, A–Z, 0–9\nLength – max: 75\n' +
'Key must be unique',
Labels_Warning_Value: 'Valid characters: a–z, A–Z, 0–9, –, _, .\nMust begin and end with: a–z, A–Z, 0–9\nLength – max: 75',
Projects_Labels_Warning_Key: 'Valid characters: a–z, A–Z, 0–9, –, _, .\nMust begin and end with: a–z, A–Z, 0–9\nLength – max: 56\n' +
'Key must be unique',
Labels_Warning_Value: 'Valid characters: a–z, A–Z, 0–9, –, _, .\nMust begin and end with: a–z, A–Z, 0–9\nLength – max: 56',
Feature_Set_Name_Hint:
'Valid characters: a–z, A–Z, 0–9, –, _, .\nMust begin and end with: a–z, A–Z, 0–9\nLength – max: 56\n' +
'This field is required',
@@ -505,9 +508,10 @@ module.exports = {
Schedule_Hours_Variants: ['1', '2', '3', '4', '6', '12']
},
No_Data_Message: {
Common_Message: 'There is no Features data to show for "Tag: latest, Name: ccccc"',
Common_Message_Feature: 'There is no Features data to show for "Tag: latest"',
Common_Message_Feature_Vector: 'There is no Feature-Vectors data to show for "Tag: latest"',
Common_Message: 'There is no Features data to show for "Version Tag: latest, Name: ccccc"',
Common_Message_Feature: 'There is no Features data to show for "Version Tag: latest"',
Common_Message_Feature_Vector_Tab: 'There is no Features data to show for "Tag: latest"',
Common_Message_Feature_Vector: 'There is no Feature-Vectors data to show for "Version Tag: latest"',
Common_Message_Feature_Sets: 'There is no Feature-Sets data to show for "Version Tag: latest"',
No_Data: 'No data to show',
No_Features_Yet: 'No features yet. Go to "Feature Sets" tab to create your first Feature Set.',
56 changes: 50 additions & 6 deletions tests/features/common/page-objects/interactive-popup.po.js
Original file line number Diff line number Diff line change
@@ -190,6 +190,26 @@ const trainModelLabelsTable = {
}
}

const newProjectLabelsTable = {
root:
'.create-project-dialog .form-row:nth-of-type(4) .chips',
header: {},
body: {
root: '.chips-wrapper',
add_row_btn: '.button-add',
row: {
root: '.chip-block',
fields: {
key_input: 'input.input-label-key',
value_input: 'input.input-label-value',
key_verify: '.edit-chip-container input.input-label-key',
value_verify: '.edit-chip-container input.input-label-value',
remove_btn: '.edit-chip__icon-close'
}
}
}
}

const dataInputsHeaders = {
root: '.wizard-form__content [data-testid="dataInputs.dataInputsTable"]',
header: {},
@@ -328,7 +348,14 @@ const commonDescription = By.css('.pop-up-dialog .confirm-dialog__message')

const commonCrossCancelButton = By.css('.pop-up-dialog .pop-up-dialog__btn_close svg')
const commonNameInput = generateInputGroup(
'.form .form-row:nth-of-type(2) .form-field__wrapper-normal',
'.form [data-testid="metadata.key-form-field-input"] .form-field__wrapper-normal',
true,
'.form-field__warning',
'.form-field__warning'
)

const commonTagInput = generateInputGroup(
'.form [data-testid="metadata.tag-form-field-input"] .form-field__wrapper-normal',
true,
true,
'.form-field__warning'
@@ -347,6 +374,7 @@ const commonPopupTitle = By.css('.modal__header-title')
const commonCloseButton = By.css('.modal__header-button button')
const commonFormCancelButton = By.css('.modal__footer-actions .btn-tertiary')
const commonFormConfirmButton = By.css('.modal__footer-actions .btn-secondary')
const commonRegisterErrorMessage = By.css('[data-testid="error-message"] .error__message')
const commonFormText = By.css('.form-text span')
const commonFormSubtext = By.css('.form-text div p')

@@ -372,19 +400,31 @@ module.exports = {
Title: commonTitle,
Name_Input: inputGroup(
generateInputGroup(
'.pop-up-dialog .input-wrapper:nth-of-type(1)',
'.pop-up-dialog [data-testid="name-form-field-input"]',
true,
'.input__warning svg',
true
)
),
Description_Input: inputGroup(
generateInputGroup('.pop-up-dialog .input-wrapper:nth-of-type(2)', true, false, true)
Description_Input: textAreaGroup(
generateTextAreaGroup('.pop-up-dialog .form-row:nth-of-type(3) .form-field-textarea')
),
Cross_Cancel_Button: commonCrossCancelButton,
Cancel_Button: commonCancelButton,
Create_Button: By.css('.pop-up-dialog .btn-secondary'),
Error_Message: By.css('.pop-up-dialog .error__message')
Error_Message: By.css('.pop-up-dialog .error__message'),
New_Project_Labels_Table: commonTable(newProjectLabelsTable),
Add_Label_Button: By.css('.create-project-dialog .form-row:nth-of-type(4) .chips .chips-wrapper button'),
Close_Label_Button: By.css('.create-project-dialog .form-row:nth-of-type(4) .chips .chips-wrapper .edit-chip__icon-close'),
Run_Details_Labels_Key: inputGroup(
generateInputGroup(
'.create-project-dialog .form-row:nth-of-type(4) .chips .chips-wrapper',
false,
true,
'.pop-up-dialog'
)
),
Run_Details_Labels_Value: By.css ('.create-project-dialog .form-row:nth-of-type(4) .chips-wrapper [id="labels[0].value"]')
},
commonPopup: {
Title: commonTitle,
@@ -512,6 +552,7 @@ module.exports = {
Form_Subtext: commonFormSubtext,
Cross_Cancel_Button: commonCloseButton,
Name_Input: inputGroup(commonNameInput),
Tag_Input: inputGroup(commonTagInput),
Target_Path: {
Path_Scheme_Combobox: comboBox(
'.form .form-row:nth-of-type(4) .form-field__wrapper',
@@ -520,7 +561,8 @@ module.exports = {
},
Description_Input: textAreaGroup(commonDescriptionTextArea),
Cancel_Button: commonFormCancelButton,
Register_Button: commonFormConfirmButton
Register_Button: commonFormConfirmButton,
Register_Error_Message: commonRegisterErrorMessage
},
createMLFunctionPopup: {
Cross_Cancel_Button: commonCrossCancelButton,
@@ -554,6 +596,8 @@ module.exports = {
Cross_Cancel_Button: commonCloseButton,
New_File_Info: By.css('.form-text'),
New_File_Name_Input: inputGroup(commonNameInput),
Tag_Input: inputGroup(commonTagInput),
Register_Error_Message: commonRegisterErrorMessage,
Target_Path: {
Path_Scheme_Combobox: comboBox(
'.form .form-row:nth-of-type(4) .form-field__wrapper',
Loading