Skip to content
Open
Show file tree
Hide file tree
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
20 changes: 14 additions & 6 deletions tests/features/artifacts.feature
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,19 @@ Feature: Artifacts Page
Then verify "Pop_Out_Button" element visibility on "Files_Info_Pane" wizard
Then click on "Pop_Out_Button" element on "Files_Info_Pane" wizard
And wait load page
Then verify "Preview_Row" element visibility on "Artifact_Preview_Popup" wizard
Then verify "Cross_Cancel_Button" element visibility on "Artifact_Preview_Popup" wizard
Then verify "Preview_Header" on "Artifact_Preview_Popup" wizard should contains "Preview_Pop_Up"."Table_Header"
Then check "download_btn" visibility in "Preview_Row" on "Artifact_Preview_Popup" wizard with 1 offset
Then click on "Download_Button" element on "Artifact_Preview_Popup" wizard
Then verify "Preview_Table" element visibility on "Preview_Popup" wizard
Then verify visibility of header column "name" in "Preview_Table" table on "Preview_Popup" wizard
Then check "Name" header value in "name" column in "Preview_Table" table on "Preview_Popup" wizard
Then verify visibility of header column "path" in "Preview_Table" table on "Preview_Popup" wizard
Then check "Path" header value in "path" column in "Preview_Table" table on "Preview_Popup" wizard
Then verify visibility of header column "size" in "Preview_Table" table on "Preview_Popup" wizard
Then check "Size" header value in "size" column in "Preview_Table" table on "Preview_Popup" wizard
Then verify visibility of header column "updated" in "Preview_Table" table on "Preview_Popup" wizard
Then check "Updated" header value in "updated" column in "Preview_Table" table on "Preview_Popup" wizard
Then value in "name" column with "text" in "Preview_Table" on "Preview_Popup" wizard should contains "download_content"
Then verify "Cross_Cancel_Button" element visibility on "Preview_Popup" wizard
Then verify "Download_Button" element visibility on "Preview_Popup" wizard
Then click on "Download_Button" element on "Preview_Popup" wizard
And wait load page
And wait load page
Then verify "Download_Pop_Up" element visibility on "Downloads_Popup" wizard
Expand All @@ -347,7 +355,7 @@ Feature: Artifacts Page
Then verify "Header_Download_Pop_Up" element visibility on "Downloads_Popup" wizard
Then "Header_Download_Pop_Up" element on "Downloads_Popup" should contains "Downloads" value
Then click on "Download_Pop_Up_Cross_Cancel_Button" element on "Downloads_Popup" wizard
Then click on "Cross_Cancel_Button" element on "Artifact_Preview_Popup" wizard
Then click on "Cross_Cancel_Button" element on "Preview_Popup" wizard
Then verify "Preview_Tab_Info_Pane_Table" element visibility on "Files_Info_Pane" wizard

@MLA
Expand Down
7 changes: 3 additions & 4 deletions tests/features/common-tools/common-consts.js
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,9 @@ export default {
Delete_Scheduled_Job:
/Are you sure you want to delete the scheduled job "[^"]+[$"]\? Deleted scheduled jobs can not be restored\./,
Delete_Feature:
/You try to delete feature "[^"]+[$"] from vector "[^"]+[$"]\. The feature could be added back later./
/You try to delete feature "[^"]+[$"] from vector "[^"]+[$"]\. The feature could be added back later./,
Add_A_Tag_Overwrite_Message:
/That combination of name and tag is already in use in an existing (artifact|dataset|plotly|LLM prompt)\. If you proceed, the existing (artifact|dataset|plotly|LLM prompt) will be overwritten/
},
Messages: {
How_To_Create:
Expand Down Expand Up @@ -824,8 +826,5 @@ export default {
No_Models_data: 'No data matches the filter: "Version tag: latest, Labels: MY-KEY, Show best iteration only: true"',
No_Pods_data: 'Pods not found, it is likely because Kubernetes removed these pods listing',
No_Pods_data_Completion: 'Pods not found, it is likely because Kubernetes removed these pods listing after their completion'
},
Preview_Pop_Up: {
Table_Header: ['Name', 'Path', 'Size', 'Updated']
}
}
1 change: 0 additions & 1 deletion tests/features/common/page-objects.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export default {
Analysis_Info_Pane: infoPane['analysisInfoPane'],
Application_Metrics: monitoringApp['applicationMetrics'],
Application_Monitoring: monitoringApp['applicationMonitoring'],
Artifact_Preview_Popup: interactivePopup['artifactPreviewPopup'],
Artifacts_Info_Pane: infoPane['artifactsInfoPane'],
Change_Project_Owner_Popup: interactivePopup['changeProjectOwnerPopup'],
Common_Popup: interactivePopup['commonPopup'],
Expand Down
97 changes: 69 additions & 28 deletions tests/features/common/page-objects/interactive-popup.po.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,20 @@ const deployModelTable = {
}
}

const artifactsPreviewRow = {
root: '.pop-up-dialog .preview-body',
const artifactsPreviewTable = {
root: '.pop-up-dialog .item-artifacts__modal-preview',
header: {
root: '',
sorters: {}
root: '.preview-item:nth-of-type(1)',
sorters: {
name: '.item-data__header:nth-of-type(1)',
path: '.item-data__path',
size: '.item-data__header:nth-of-type(3)',
updated: '.item-data__header:nth-of-type(4)'
}
},
body: {
row: {
root: '.preview-item',
root: '.preview-item:nth-of-type(2)',
fields: {
name: '.item-data__name',
path: '.item-data__path',
Expand All @@ -135,20 +140,6 @@ const artifactsPreviewRow = {
}
}

const artifactsPreviewHeader = {
root: '.pop-up-dialog',
header: {},
body: {
root: '.preview-body',
row: {
root: '.preview-item:nth-of-type(1)',
fields: {
key: '.item-data'
}
}
}
}

const createFeatureVectorLabelsTable = {
root: '[data-testid="labels-chips"] .chips-cell',
header: {},
Expand Down Expand Up @@ -1464,6 +1455,7 @@ export default {
previewPopup: {
Title: By.css('.pop-up-dialog .pop-up-dialog__header'),
Cross_Cancel_Button: commonCrossCancelButton,
Preview_Table: commonTable(artifactsPreviewTable),
Preview_Modal_Container: By.css('.pop-up-dialog .item-artifacts__modal-preview'),
Download_Button: By.css('.pop-up-dialog .preview-item:nth-of-type(2) .preview-body__download')
},
Expand Down Expand Up @@ -1633,14 +1625,6 @@ export default {
),
Schedule_Button: By.css('.feature-set-panel__schedule .btn__schedule')
},
artifactPreviewPopup: {
Cross_Cancel_Button: commonCrossCancelButton,
Preview_Row: commonTable(artifactsPreviewRow),
Preview_Header: commonTable(artifactsPreviewHeader),
Download_Button: By.css(
'.pop-up-dialog .preview-body .preview-item:nth-of-type(2) .preview-body__download'
)
},
removeMemberPopup: {
Title: By.css('.delete-member__pop-up .pop-up-dialog__header-text'),
Remove_Member_Button: By.css('.delete-member__pop-up .btn-danger')
Expand Down Expand Up @@ -1748,11 +1732,12 @@ export default {
'[data-testid="select-body"] label'
)
),
Type_Filter_Element: By.css('[data-testid="type-form-field-select"]'),
Type_Filter_Dropdown: dropdownComponent(
generateDropdownGroup(
'[data-testid="type-form-field-select"]',
'[data-testid="select-header"]',
'.options-list .select__item:not(.hidden) .tooltip-wrapper'
'.select__item.multiple:not(.hidden) label'
)
),
Show_Iterations_Checkbox: checkboxComponent({
Expand All @@ -1771,6 +1756,62 @@ export default {
icon: ''
}
}),
Type_All_Checkbox: checkboxComponent({
root: '[data-testid="select-checkbox"]:nth-of-type(1)',
elements: {
checkbox: 'input',
name: 'label',
icon: ''
}
}),
Type_Job_Checkbox: checkboxComponent({
root: '[data-testid="select-checkbox"]:nth-of-type(2)',
elements: {
checkbox: 'input',
name: 'label',
icon: ''
}
}),
Type_Workflow_Checkbox: checkboxComponent({
root: '[data-testid="select-checkbox"]:nth-of-type(3)',
elements: {
checkbox: 'input',
name: 'label',
icon: ''
}
}),
Type_Spark_Checkbox: checkboxComponent({
root: '[data-testid="select-checkbox"]:nth-of-type(7)',
elements: {
checkbox: 'input',
name: 'label',
icon: ''
}
}),
Type_Horovod_Checkbox: checkboxComponent({
root: '[data-testid="select-checkbox"]:nth-of-type(8)',
elements: {
checkbox: 'input',
name: 'label',
icon: ''
}
}),
Type_Dask_Checkbox: checkboxComponent({
root: '[data-testid="select-checkbox"]:nth-of-type(9)',
elements: {
checkbox: 'input',
name: 'label',
icon: ''
}
}),
Type_Databricks_Checkbox: checkboxComponent({
root: '[data-testid="select-checkbox"]:nth-of-type(10)',
elements: {
checkbox: 'input',
name: 'label',
icon: ''
}
}),
Status_All_Checkbox: checkboxComponent({
root: '[data-testid="select-checkbox"]:nth-of-type(1)',
elements: {
Expand Down
1 change: 1 addition & 0 deletions tests/features/common/page-objects/llm-prompts.po.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ const overallTable = {
componentType: actionMenu,
structure: actionMenuStructure
},
preview: '.table-body__cell:nth-of-type(8) [data-testid="quick-link-artifact-preview"]'
}
}
}
Expand Down
38 changes: 28 additions & 10 deletions tests/features/datasets.feature
Original file line number Diff line number Diff line change
Expand Up @@ -514,10 +514,19 @@ Feature: Datasets Page
Then hover on cell with row index 2 in "name" column in "Datasets_Table" table on "Datasets" wizard
When click on cell with row index 2 in "artifact_preview_btn" column in "Datasets_Table" table on "Datasets" wizard
And wait load page
Then verify "Preview_Row" element visibility on "Artifact_Preview_Popup" wizard
Then verify "Cross_Cancel_Button" element visibility on "Artifact_Preview_Popup" wizard
Then check "download_btn" visibility in "Preview_Row" on "Artifact_Preview_Popup" wizard with 1 offset
Then click on "Download_Button" element on "Artifact_Preview_Popup" wizard
Then verify "Preview_Table" element visibility on "Preview_Popup" wizard
Then verify visibility of header column "name" in "Preview_Table" table on "Preview_Popup" wizard
Then check "Name" header value in "name" column in "Preview_Table" table on "Preview_Popup" wizard
Then verify visibility of header column "path" in "Preview_Table" table on "Preview_Popup" wizard
Then check "Path" header value in "path" column in "Preview_Table" table on "Preview_Popup" wizard
Then verify visibility of header column "size" in "Preview_Table" table on "Preview_Popup" wizard
Then check "Size" header value in "size" column in "Preview_Table" table on "Preview_Popup" wizard
Then verify visibility of header column "updated" in "Preview_Table" table on "Preview_Popup" wizard
Then check "Updated" header value in "updated" column in "Preview_Table" table on "Preview_Popup" wizard
Then value in "name" column with "text" in "Preview_Table" on "Preview_Popup" wizard should contains "test_new_structure"
Then verify "Cross_Cancel_Button" element visibility on "Preview_Popup" wizard
Then verify "Download_Button" element visibility on "Preview_Popup" wizard
Then click on "Download_Button" element on "Preview_Popup" wizard
And wait load page
And wait load page
Then verify "Download_Pop_Up" element visibility on "Downloads_Popup" wizard
Expand All @@ -527,18 +536,27 @@ Feature: Datasets Page
Then verify "Header_Download_Pop_Up" element visibility on "Downloads_Popup" wizard
Then "Header_Download_Pop_Up" element on "Downloads_Popup" should contains "Downloads" value
Then click on "Download_Pop_Up_Cross_Cancel_Button" element on "Downloads_Popup" wizard
Then click on "Cross_Cancel_Button" element on "Artifact_Preview_Popup" wizard
Then click on "Cross_Cancel_Button" element on "Preview_Popup" wizard
When click on cell with value "auto-trainer-train_test_set" in "name" column in "Datasets_Table" table on "Datasets" wizard
And wait load page
Then select "Preview" tab in "Info_Pane_Tab_Selector" on "Datasets_Info_Pane" wizard
And wait load page
Then verify "Pop_Out_Button" element visibility on "Datasets_Info_Pane" wizard
Then click on "Pop_Out_Button" element on "Datasets_Info_Pane" wizard
And wait load page
Then verify "Preview_Row" element visibility on "Artifact_Preview_Popup" wizard
Then verify "Cross_Cancel_Button" element visibility on "Artifact_Preview_Popup" wizard
Then check "download_btn" visibility in "Preview_Row" on "Artifact_Preview_Popup" wizard with 1 offset
Then click on "Download_Button" element on "Artifact_Preview_Popup" wizard
Then verify "Preview_Table" element visibility on "Preview_Popup" wizard
Then verify visibility of header column "name" in "Preview_Table" table on "Preview_Popup" wizard
Then check "Name" header value in "name" column in "Preview_Table" table on "Preview_Popup" wizard
Then verify visibility of header column "path" in "Preview_Table" table on "Preview_Popup" wizard
Then check "Path" header value in "path" column in "Preview_Table" table on "Preview_Popup" wizard
Then verify visibility of header column "size" in "Preview_Table" table on "Preview_Popup" wizard
Then check "Size" header value in "size" column in "Preview_Table" table on "Preview_Popup" wizard
Then verify visibility of header column "updated" in "Preview_Table" table on "Preview_Popup" wizard
Then check "Updated" header value in "updated" column in "Preview_Table" table on "Preview_Popup" wizard
Then value in "name" column with "text" in "Preview_Table" on "Preview_Popup" wizard should contains "auto-trainer-train_test_set"
Then verify "Cross_Cancel_Button" element visibility on "Preview_Popup" wizard
Then verify "Download_Button" element visibility on "Preview_Popup" wizard
Then click on "Download_Button" element on "Preview_Popup" wizard
And wait load page
And wait load page
Then verify "Download_Pop_Up" element visibility on "Downloads_Popup" wizard
Expand All @@ -548,7 +566,7 @@ Feature: Datasets Page
Then verify "Header_Download_Pop_Up" element visibility on "Downloads_Popup" wizard
Then "Header_Download_Pop_Up" element on "Downloads_Popup" should contains "Downloads" value
Then click on "Download_Pop_Up_Cross_Cancel_Button" element on "Downloads_Popup" wizard
Then click on "Cross_Cancel_Button" element on "Artifact_Preview_Popup" wizard
Then click on "Cross_Cancel_Button" element on "Preview_Popup" wizard

@MLD
@smoke
Expand Down
1 change: 1 addition & 0 deletions tests/features/featureStore.feature
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,7 @@ Feature: Feature Store Page
And select "tab" with "Feature store" value in breadcrumbs menu
And wait load page
And select "Feature Vectors" tab in "Feature_Store_Tab_Selector" on "Feature_Store_Feature_Sets_Tab" wizard
And wait load page
Then click on "Table_FilterBy_Button" element on "Feature_Store_Features_Vectors_Tab" wizard
And wait load page
When select "test-tag" option in "Table_Tree_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard
Expand Down
Loading