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
22 changes: 20 additions & 2 deletions tests/features/common-tools/common-consts.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,13 @@ export default {
FilterBy_Button: 'Filter',
FilterBy_Button_1: 'Filter (1)',
Show_All_Versions: 'Show all versions',
Open_Metrics: 'Open metrics',
Refresh_Button: 'Refresh',
Back_Button: 'Back',
Expand_All_Button: 'Expand all',
In_Process_Jobs: 'Aborting, Pending, Running',
In_Process_Workflows: 'Running',
Running_Tip: 'Running',
Failed_Tip: 'Failed',
Failed_Jobs: 'Aborted, Error',
Failed_Worflows: 'Error, Failed',
Succeeded: 'Completed',
Expand Down Expand Up @@ -524,7 +527,16 @@ export default {
' You can browse them in the Feature store page.',
Artifacts_Stats_Tip:
'Each artifact can have multiple versions, produced by multiple runs and given multiple tags.\n' +
' You can browse them in the Artifacts page.'
' You can browse them in the Artifacts page.',
Model_Endpoint_With_Detections:
'This chart displays the number of model endpoints that had at least one detected issue, in any monitoring application, in the relevant time period',
Operating_Functions: 'System functions that are used for the monitoring application operation',
Lag: 'Number of messages currently waiting in the app\'s queue',
Commited_Offset: 'Total number of messages handled by the app',
App_Status_Tip: 'Some tip',
Endpoints_Tip: 'Model endpoints processed by the monitoring app during the selected time frame',
Metrics_Tip: 'Metrics tip',
Shards_Partitions_Status_Tip: 'This table displays the current status of each shard'
},
Descriptions: {
Archive_Project:
Expand Down Expand Up @@ -672,6 +684,12 @@ export default {
'Past month',
'Custom range'
],
Date_Picker_Filter_Options_Monitoring_App: [
'Past hour',
'Past 24 hours',
'Past week',
'Past month'
],
Scheduled_Date_Picker_Filter_Options: [
'Any time',
'Next hour',
Expand Down
4 changes: 4 additions & 0 deletions tests/features/common/page-objects.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import models from './page-objects/models.po'
import documents from './page-objects/documents.po'
import alerts from './page-objects/alerts.po'
import monitoringApp from './page-objects/monitoring-app.po'
import llmPrompts from './page-objects/llm-prompts.po'

export default {
Add_To_Feature_Vector_Popup: interactivePopup['addToFeatureVectorPopup'],
Expand All @@ -45,6 +46,8 @@ export default {
Alerts_Endpoint_Info_Pane: infoPane['alertsEndpointInfoPane'],
Alerts_Application_Info_Pane: infoPane['alertsApplicationInfoPane'],
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'],
Expand Down Expand Up @@ -81,6 +84,7 @@ export default {
Jobs_Monitoring_Workflows_Tab: jobsMonitoring['crossWorkflowsMonitorTab'],
Jobs_Monitoring_Scheduled_Tab: jobsMonitoring['crossScheduledMonitorTab'],
Jobs_Monitor_Tab_Info_Pane: infoPane['jobsMonitorTabInfoPane'],
LLM_Prompts: llmPrompts['llmPrompts'],
Metrics_Selector_Popup: interactivePopup['metricsSelectorPopup'],
ML_Function_Info_Pane: infoPane['mlFunctionInfoPane'],
ML_Functions: Functions['mlFunctions'],
Expand Down
82 changes: 82 additions & 0 deletions tests/features/common/page-objects/llm-prompts.po.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
/*
Copyright 2019 Iguazio Systems Ltd.

Licensed under the Apache License, Version 2.0 (the "License") with
an addition restriction as set forth herein. You may not use this
file except in compliance with the License. You may obtain a copy of
the License at http://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied. See the License for the specific language governing
permissions and limitations under the License.

In addition, you may not use the software for any purposes that are
illegal under applicable law, and the grant of the foregoing license
under the Apache 2.0 license is conditioned upon your compliance with
such restriction.
*/
import { By } from 'selenium-webdriver'
import commonTable from '../components/table.component'
import dropdownComponent from '../components/dropdown.component'
import {
generateInputGroup,
generateDropdownGroup
} from '../../common-tools/common-tools'
import inputGroup from '../components/input-group.component'

const commonSearchByNameFilterInput = inputGroup(
generateInputGroup(
'[data-testid="name-form-field-input"]',
true,
false
)
)

const overallTable = {
root: '.table__content',
header: {
root: '.table-header',
sorters: {
name: '[data-testid="name"] .data-ellipsis',
labels: '[data-testid="labels"] .data-ellipsis',
producer: '[data-testid="producer"] .data-ellipsis',
owner: '[data-testid="owner"] .data-ellipsis',
updated: '[data-testid="updated"] .data-ellipsis',
size: '[data-testid="size"] .data-ellipsis'
}
},
body: {
root: '.table-body',
row: {
root: '.table-row',
fields: {
name: '[data-testid="name"] a .link',
labels: {
componentType: dropdownComponent,
structure: generateDropdownGroup(
'.table-body__cell:nth-of-type(7)',
'.chip-block span.chips_button',
'.chip-block-hidden_visible .data-ellipsis.tooltip-wrapper',
false,
false
)
},
producer: '[data-testid="producer"] .data-ellipsis',
owner: '[data-testid="owner"] .data-ellipsis',
updated: '[data-testid="updated"] .data-ellipsis',
size: '[data-testid="size"] .data-ellipsis'
}
}
}
}

export default {
llmPrompts: {
Search_By_Name_Filter_Input: commonSearchByNameFilterInput,
Table_FilterBy_Button: By.css('[data-testid="filter-menu-btn-tooltip-wrapper"]'),
Refresh_Button: By.css('[data-testid="refresh"] [data-testid="refresh-tooltip-wrapper"]'),
LLMPrompts_Table: commonTable(overallTable)
}
}
Loading