2024-06-10 06:49:50 -07:00
|
|
|
import { BasePage } from './base';
|
2024-09-18 00:19:33 -07:00
|
|
|
import { getVisibleSelect } from '../utils';
|
2023-01-04 00:47:48 -08:00
|
|
|
|
|
|
|
export class SettingsLogStreamingPage extends BasePage {
|
|
|
|
url = '/settings/log-streaming';
|
2024-06-10 06:49:50 -07:00
|
|
|
|
2023-01-04 00:47:48 -08:00
|
|
|
getters = {
|
|
|
|
getActionBoxUnlicensed: () => cy.getByTestId('action-box-unlicensed'),
|
|
|
|
getActionBoxLicensed: () => cy.getByTestId('action-box-licensed'),
|
|
|
|
getDestinationModal: () => cy.getByTestId('destination-modal'),
|
|
|
|
getSelectDestinationType: () => cy.getByTestId('select-destination-type'),
|
|
|
|
getDestinationNameInput: () => cy.getByTestId('subtitle-showing-type'),
|
2023-07-28 00:51:07 -07:00
|
|
|
getSelectDestinationTypeItems: () => getVisibleSelect().find('.el-select-dropdown__item'),
|
2023-01-04 00:47:48 -08:00
|
|
|
getSelectDestinationButton: () => cy.getByTestId('select-destination-button'),
|
|
|
|
getContactUsButton: () => this.getters.getActionBoxUnlicensed().find('button'),
|
|
|
|
getAddFirstDestinationButton: () => this.getters.getActionBoxLicensed().find('button'),
|
|
|
|
getDestinationSaveButton: () => cy.getByTestId('destination-save-button').find('button'),
|
|
|
|
getDestinationDeleteButton: () => cy.getByTestId('destination-delete-button'),
|
|
|
|
getDestinationCards: () => cy.getByTestId('destination-card'),
|
|
|
|
};
|
2024-06-10 06:49:50 -07:00
|
|
|
|
2023-01-04 00:47:48 -08:00
|
|
|
actions = {
|
|
|
|
clickContactUs: () => this.getters.getContactUsButton().click(),
|
|
|
|
clickAddFirstDestination: () => this.getters.getAddFirstDestinationButton().click(),
|
|
|
|
clickSelectDestinationButton: () => this.getters.getSelectDestinationButton().click(),
|
|
|
|
};
|
|
|
|
}
|