mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-03 21:38:42 +00:00
* added all pending cloud migration * restrict cloud migrations * added cloud data-migrations * Added cloud entities * keep tables across all * cloud licensing initial changes * fix * payments module * license counts updates * update * Added all pending cloud migration to pre-release + Payments module (#13006) * added all pending cloud migration * restrict cloud migrations * added cloud data-migrations * Added cloud entities * keep tables across all * payments module * license counts updates * update * migration fixes * pass orgId * movement * added cloud instance settings * org id to license terms * before merge * dockerfile changes for cloud * migration fixes * subscription * merge main * posthog-js package * fix * selhostcustomer migration timestamp update * fix * fixes * fix * fix * Adding cloud dockerfile changes * migration fix * fix * fix * fix * fixes * added migration progress * fix * added migration files for cloud * fix * added migrations for cloud * add organizationId for pages controller * fixes for plugins script * fix * final * added cloud licensing envs * UI WRAPPER BUG * fix * orgId groups fix * lint check fixes * Refactor Dockerfiles to use dynamic branch names for builds * Feature/promote release permission management (#13020) * migration and entity changes * removed extra migration * added default group permissions * basic ui changes * added promote and release permissions * fixed tooltips for promote and release buttons * fix * fixed app promote ability check * ce compatibility ui change * ui fixes * removed console.log * removed comments * updated ee-preview.Dockerile * using base img node:22.15.1-bullseye * fix for ce render * Update ce-preview.Dockerfile * Update ee-preview.Dockerfile * ui fix * fix * fixes * fixes * fixes * fixes * minor fixes * fix --------- Co-authored-by: Souvik <[email protected]> Co-authored-by: Adish M <[email protected]> * Bugfix/git sync pre release (#13098) * bugfixes * ui fixes for disabled states in version creation * minor fixes * removed unused imports * fixes * removed comments * module file fixes * module fixes * white-labelling fixes * login-configs * fix for migration for ce * Fix for app count guard (#13131) * fix for app count guard * added check * for debug * license key * Modules : Platform Functionality (#12994) * init * mod * app import-export * licensing and UI * review and permissions * update * updates * update * update * fix breadcrumb * fix app builder error * remove launch button for modules * fixed homepage * fix permission check --------- Co-authored-by: platform-ops123 <[email protected]> Co-authored-by: gsmithun4 <[email protected]> * reverted logs * tjdb guard and dark mode (#13137) * ui fixes * added modules module * removed unused imports * fix * fix * Cypress fix * fixes for cloud instance level licensing (#13146) --------- Co-authored-by: platform-ops123 <[email protected]> Co-authored-by: Rudra deep Biswas <[email protected]> Co-authored-by: Adish M <[email protected]> Co-authored-by: Rudhra Deep Biswas <[email protected]> Co-authored-by: Vijaykant Yadav <[email protected]> Co-authored-by: Rohan Lahori <[email protected]> Co-authored-by: Souvik <[email protected]> Co-authored-by: Adish M <[email protected]> Co-authored-by: rohanlahori <[email protected]> Co-authored-by: ajith-k-v <[email protected]>
73 lines
2.4 KiB
JavaScript
73 lines
2.4 KiB
JavaScript
import { postgreSqlSelector } from "Selectors/postgreSql";
|
|
import { selectEvent } from "Support/utils/events";
|
|
|
|
export const selectQueryFromLandingPage = (dbName, label) => {
|
|
cy.get(
|
|
`[data-cy="${dbName.toLowerCase().replace(/\s+/g, "-")}-add-query-card"]`
|
|
)
|
|
.should("contain", label)
|
|
.click();
|
|
cy.waitForAutoSave();
|
|
};
|
|
|
|
export const deleteQuery = (queryName) => {
|
|
cy.get(`[data-cy="list-query-${queryName}"]`).click();
|
|
cy.get(`[data-cy="delete-query-${queryName}"]`).click();
|
|
cy.get('[data-cy="component-inspector-delete-button"]').click()
|
|
};
|
|
|
|
export const query = (action) => {
|
|
cy.get(`[data-cy="query-${action}-button"]`).click();
|
|
};
|
|
|
|
export const changeQueryToggles = (option) => {
|
|
cy.get(`[data-cy="${option}-toggle-switch"]`).parent().click();
|
|
};
|
|
|
|
export const renameQueryFromEditor = (name) => {
|
|
cy.get('[data-cy="query-name-label"]').realHover();
|
|
cy.get('[class="breadcrum-rename-query-icon"]').click();
|
|
cy.get('[data-cy="query-rename-input"]').clear().type(`${name}{enter}`);
|
|
// cy.realType(`{selectAll}{backspace}${name}{enter}`);
|
|
};
|
|
|
|
export const addInputOnQueryField = (field, data) => {
|
|
cy.get(`[data-cy="${field}-input-field"]`)
|
|
.click()
|
|
.clearAndTypeOnCodeMirror(`{backSpace}`);
|
|
cy.get(`[data-cy="${field}-input-field"]`).clearAndTypeOnCodeMirror(data);
|
|
// cy.forceClickOnCanvas();
|
|
};
|
|
|
|
export const waitForQueryAction = (action) => {
|
|
cy.get(`[data-cy="query-${action}-button"]`, { timeout: 20000 }).should(
|
|
"not.have.class",
|
|
"button-loading"
|
|
);
|
|
};
|
|
|
|
export const chainQuery = (currentQuery, trigger) => {
|
|
cy.get(`[data-cy="list-query-${currentQuery}"]`).click();
|
|
cy.wait(1000);
|
|
cy.get('[data-cy="query-tab-settings"]').click();
|
|
selectEvent("Query Success", "Run Query");
|
|
cy.get('[data-cy="query-selection-field"]')
|
|
.click()
|
|
.find("input")
|
|
.type(`{selectAll}{backspace}${trigger}{enter}`);
|
|
};
|
|
|
|
export const addSuccessNotification = (notification) => {
|
|
cy.get('[data-cy="query-tab-settings"]').click();
|
|
cy.get('body').then(($body) => {
|
|
if (!$body.find('[data-cy="success-message-input-field"]').is(':visible')) {
|
|
changeQueryToggles("notification-on-success");
|
|
// cy.get('[data-cy="success-message-input-field"]').then(($input) => {
|
|
// cy.wrap($input).clearAndTypeOnCodeMirror(notification);
|
|
// });
|
|
}
|
|
});
|
|
cy.get('[data-cy="success-message-input-field"]').clearAndTypeOnCodeMirror(notification);
|
|
cy.get('[data-cy="query-tab-setup"]').click();
|
|
cy.wait(300);
|
|
};
|