Merge pull request #7630 from ToolJet/main

Merge main back to develop (v2.19.2)
This commit is contained in:
Kavin Venkatachalam 2023-10-05 17:23:52 +05:30 committed by GitHub
commit 057b378e7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 17 additions and 10 deletions

View file

@ -1 +1 @@
2.19.0
2.19.2

View file

@ -129,7 +129,7 @@ describe("Editor- Inspector", () => {
verifyValue("key", "String", `"value"`);
cy.get(`[data-cy="inspector-node-key"] > .mx-1`).realHover();
cy.get("[data-cy='copy-icon']").realClick();
cy.get('[data-cy="copy-path-to-clipboard"]').realClick();
cy.realPress("Escape");
cy.window().then((win) => {
@ -138,10 +138,8 @@ describe("Editor- Inspector", () => {
});
});
cy.get(".action-icons-group > .d-flex > :nth-child(2)").click();
cy.get(".list-group-item").click();
cy.get('[data-cy="copy-value-to-clicpboard"]').realClick();
cy.realPress("Escape");
cy.window().then((win) => {
win.navigator.clipboard.readText().then((text) => {
expect(text).to.eq(`"value"`);

View file

@ -284,7 +284,7 @@ describe("dashboard", () => {
commonSelectors.toastMessage,
dashboardText.appClonedToast
);
cy.waitForAppLoad();
// cy.waitForAppLoad();
cy.wait(2000);
cy.clearAndType(commonSelectors.appNameInput, data.cloneAppName);
cy.dragAndDropWidget("button", 25, 25);

View file

@ -1 +1 @@
2.19.0
2.19.2

View file

@ -1528,7 +1528,8 @@ export function Table({
) : (
!loadingState && (
<span data-cy={`footer-number-of-records`} className="font-weight-500 color-slate11">
{`${globalFilteredRows.length} Records`}
{clientSidePagination && !serverSidePagination && `${globalFilteredRows.length} Records`}
{serverSidePagination && totalRecords ? `${totalRecords} Records` : ''}
</span>
)
))}

View file

@ -31,7 +31,14 @@ export const CopyToClipboardComponent = ({ data, callback }) => {
}}
>
<span style={{ height: '13px', width: '13px', marginBottom: '2px' }} className="mx-1 copy-to-clipboard">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<svg
width="13"
height="13"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
data-cy="copy-path-to-clipboard"
>
<path
fill-rule="evenodd"
clip-rule="evenodd"

View file

@ -246,6 +246,7 @@ export const JSONNode = ({ data, ...restProps }) => {
onClick={() => {
moreActions['actions'][0].dispatchAction(data, currentNode);
}}
data-cy={`copy-value-to-clicpboard`}
>
<SolidIcon width="12" height="12" name="copy" />
</span>

View file

@ -1 +1 @@
2.19.0
2.19.2