refactor: Set up Cypress as pnpm workspace (no-changelog) (#6049)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -10,7 +10,7 @@ export const getCloseBecomeTemplateCreatorCtaButton = () =>
|
||||
//#region Actions
|
||||
|
||||
export const interceptCtaRequestWithResponse = (becomeCreator: boolean) => {
|
||||
return cy.intercept('GET', `/rest/cta/become-creator`, {
|
||||
return cy.intercept('GET', '/rest/cta/become-creator', {
|
||||
body: becomeCreator,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -42,7 +42,7 @@ export function closeCredentialModal() {
|
||||
getCredentialModalCloseButton().click();
|
||||
}
|
||||
|
||||
export function setCredentialValues(values: Record<string, any>, save = true) {
|
||||
export function setCredentialValues(values: Record<string, string>, save = true) {
|
||||
Object.entries(values).forEach(([key, value]) => {
|
||||
setCredentialConnectionParameterInputByName(key, value);
|
||||
});
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Getters
|
||||
*/
|
||||
|
||||
import { getVisibleSelect } from "../utils";
|
||||
import { getVisibleSelect } from '../utils';
|
||||
|
||||
export function getCredentialSelect(eq = 0) {
|
||||
return cy.getByTestId('node-credentials-select').eq(eq);
|
||||
@@ -75,7 +75,7 @@ export function setParameterInputByName(name: string, value: string) {
|
||||
}
|
||||
|
||||
export function toggleParameterCheckboxInputByName(name: string) {
|
||||
getParameterInputByName(name).find('input[type="checkbox"]').realClick()
|
||||
getParameterInputByName(name).find('input[type="checkbox"]').realClick();
|
||||
}
|
||||
|
||||
export function setParameterSelectByContent(name: string, content: string) {
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
* Getters
|
||||
*/
|
||||
|
||||
export const getSetupWorkflowCredentialsButton = () => cy.get(`button:contains("Set up template")`);
|
||||
export const getSetupWorkflowCredentialsButton = () => cy.get('button:contains("Set up template")');
|
||||
|
||||
@@ -51,7 +51,7 @@ export function getNodeByName(name: string) {
|
||||
export function disableNode(name: string) {
|
||||
const target = getNodeByName(name);
|
||||
target.rightclick(name ? 'center' : 'topLeft', { force: true });
|
||||
cy.getByTestId(`context-menu-item-toggle_activation`).click();
|
||||
cy.getByTestId('context-menu-item-toggle_activation').click();
|
||||
}
|
||||
|
||||
export function getConnectionBySourceAndTarget(source: string, target: string) {
|
||||
|
||||
Reference in New Issue
Block a user