mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 16:44:07 -08:00
af3ac2db28
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
28 lines
1.4 KiB
TypeScript
28 lines
1.4 KiB
TypeScript
import { getVisibleSelect } from '../utils';
|
|
import { BasePage } from './base';
|
|
|
|
export class SettingsLogStreamingPage extends BasePage {
|
|
url = '/settings/log-streaming';
|
|
|
|
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'),
|
|
getSelectDestinationTypeItems: () => getVisibleSelect().find('.el-select-dropdown__item'),
|
|
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'),
|
|
};
|
|
|
|
actions = {
|
|
clickContactUs: () => this.getters.getContactUsButton().click(),
|
|
clickAddFirstDestination: () => this.getters.getAddFirstDestinationButton().click(),
|
|
clickSelectDestinationButton: () => this.getters.getSelectDestinationButton().click(),
|
|
};
|
|
}
|