Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
dd5a6d6
feat: Added focus ring for focus visible (#37700)
albinAppsmith Jan 13, 2025
97ebfaa
chore: Updated the mockdb code (#38603)
sagar-qa007 Jan 13, 2025
bfd66e5
chore: [ADS] Entity Tree Hover interactions (#38615)
hetunandu Jan 13, 2025
a7f7d3f
fix: Issue with Api Body content type selection (#38597)
hetunandu Jan 13, 2025
b6f7164
chore: Skipping case due to Issue38156 (#38628)
sagar-qa007 Jan 13, 2025
d187854
chore: Replacing the entity group list component on state inspector a…
ankitakinger Jan 14, 2025
3ad06e2
chore: git mod - minor fixes (#38634)
Jan 14, 2025
e1b3b0d
Revert "feat: Added focus ring for focus visible (#37700)" (#38650)
hetunandu Jan 14, 2025
d5551aa
fix: [ADS] Entity Tree node overflow (#38651)
hetunandu Jan 14, 2025
357664f
chore: Move IDE Sidebar into ADS (#38641)
hetunandu Jan 14, 2025
d7e30e7
chore: fixes mergeviaremote_spec flakiness (#38635)
Jan 14, 2025
a23bcbf
fix: Separate Plugin Entity from Action (#38582)
hetunandu Jan 15, 2025
df5ef9b
ci: Do not fail on image remove (#38660)
sagar-qa007 Jan 15, 2025
0106489
ci: return true if command fails (#38662)
sagar-qa007 Jan 15, 2025
329c797
chore: Fix theme CE change only in EE (#38657)
hetunandu Jan 15, 2025
446eb2b
chore: Update mixpanel masking classname (#38661)
hetunandu Jan 15, 2025
b496e4a
fix: copy changes to the description and content of modal (#38637)
Jan 15, 2025
71ff3ee
chore: Improve code (#38622)
sagar-qa007 Jan 15, 2025
2b8ba77
fix: AI query not showing any bottom tabs (#38687)
hetunandu Jan 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
docker image ls --all --no-trunc --format '{{.Repository}},{{.ID}}' \
| grep -v cicontainer \
| cut -d, -f2 \
| xargs docker rmi
| xargs -r docker rmi || true
docker save cicontainer -o cicontainer.tar
gzip cicontainer.tar

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import {
agHelper,
adminSettings as adminSettingsHelper,
homePage,
locators,
assertHelper,
} from "../../../../support/Objects/ObjectsCore";

const {
Expand All @@ -25,6 +27,9 @@ describe("Admin settings page", { tags: ["@tag.Settings"] }, function () {
it("1. Should test that settings page is accessible to super user", () => {
cy.LogOut();
cy.LoginFromAPI(Cypress.env("USERNAME"), Cypress.env("PASSWORD"));
agHelper.AssertElementAbsence(locators._loading);
assertHelper.AssertDocumentReady();
agHelper.WaitUntilEleAppear(adminSettingsHelper._adminSettingsBtn);
agHelper.GetNClick(adminSettingsHelper._adminSettingsBtn);
agHelper.AssertURL(adminSettingsHelper.routes.GENERAL);
cy.wait("@getEnvVariables");
Expand All @@ -33,6 +38,8 @@ describe("Admin settings page", { tags: ["@tag.Settings"] }, function () {

it("2. Should test that settings page is not accessible to normal users", () => {
cy.LoginFromAPI(Cypress.env("TESTUSERNAME3"), Cypress.env("TESTPASSWORD3"));
agHelper.AssertElementAbsence(locators._loading);
assertHelper.AssertDocumentReady();
agHelper.AssertElementAbsence(adminSettingsHelper._adminSettingsBtn);
agHelper.VisitNAssert(adminSettingsHelper.routes.GENERAL);
// non super users are redirected to home page
Expand All @@ -54,7 +61,9 @@ describe("Admin settings page", { tags: ["@tag.Settings"] }, function () {
() => {
cy.visit("/applications", { timeout: 60000 });
if (!Cypress.env("AIRGAPPED")) cy.wait("@getAllWorkspaces");

agHelper.AssertElementAbsence(locators._loading);
assertHelper.AssertDocumentReady();
agHelper.WaitUntilEleAppear(adminSettingsHelper._adminSettingsBtn);
agHelper.GetNClick(adminSettingsHelper._adminSettingsBtn);
cy.wait("@getEnvVariables");
agHelper.GetNClick(adminsSettings.generalTab);
Expand Down Expand Up @@ -199,6 +208,9 @@ describe("Admin settings page", { tags: ["@tag.Settings"] }, function () {
it("10. Verify default instance name", () => {
cy.LogOut();
cy.LoginFromAPI(Cypress.env("USERNAME"), Cypress.env("PASSWORD"));
agHelper.AssertElementAbsence(locators._loading);
assertHelper.AssertDocumentReady();
agHelper.WaitUntilEleAppear(adminSettingsHelper._adminSettingsBtn);
agHelper.GetNClick(adminSettingsHelper._adminSettingsBtn);
agHelper.AssertURL(adminSettingsHelper.routes.GENERAL);
cy.wait("@getEnvVariables");
Expand All @@ -213,6 +225,9 @@ describe("Admin settings page", { tags: ["@tag.Settings"] }, function () {
() => {
homePage.LogOutviaAPI();
cy.LoginFromAPI(Cypress.env("USERNAME"), Cypress.env("PASSWORD"));
agHelper.AssertElementAbsence(locators._loading);
assertHelper.AssertDocumentReady();
agHelper.WaitUntilEleAppear(adminSettingsHelper._adminSettingsBtn);
agHelper.VisitNAssert("/applications", "getAllWorkspaces");
agHelper.GetNClick(adminSettingsHelper._adminSettingsBtn);
cy.wait("@getEnvVariables");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,12 @@ import {
} from "../../../../../support/Pages/EditorNavigation";
import PageList from "../../../../../support/Pages/PageList";

let tempBranch = "tempBranch",
tempBranch0 = "tempBranch0",
tempBranch1 = "tempBranch1",
tempBranch2 = "tempBranch2",
tempBranch3 = "tempBranch3";

const buttonNameMainBranch = "buttonMainBranch";
const buttonNameMainBranchEdited = "buttonMainBranchEdited";
const buttonNameTemp0Branch = "buttonTemp0Branch";
const buttonNameTempBranch1 = "buttonTempBranch1";
let tempBranch2 = "tempBranch2";
const mainBranch = "master";

const inputNameTempBranch3 = "inputNameTempBranch3";
const inputNameTempBranch31 = "inputNameTempBranch31";

const cleanUrlBranch = "feat/clean_url";

let applicationId: any;
let applicationName: any;
let repoName: any;
let newPageName: string;

describe(
"Git sync: Merge changes via remote",
Expand All @@ -49,7 +35,6 @@ describe(
cy.get("@guid").then((uid: any) => {
cy.get("@workspaceName").then((workspaceName: any) => {
_.homePage.CreateAppInWorkspace(workspaceName, uid);
applicationName = uid;
cy.get("@applicationId").then(
(currentAppId) => (applicationId = currentAppId),
);
Expand All @@ -62,17 +47,15 @@ describe(
});

it("1. Supports merging head to base branch", function () {
//cy.switchGitBranch(mainBranch);
_.gitSync.CreateGitBranch(tempBranch2, true);
PageLeftPane.switchSegment(PagePaneSegment.UI);
cy.Createpage("NewPage");
cy.commitAndPush();
cy.merge(mainBranch);
_.gitSync.CloseOpsModal();
cy.wait(4000);
cy.switchGitBranch(mainBranch);
cy.wait(4000); // wait for switch branch
cy.contains("NewPage");
PageList.AddNewPage("New blank page")?.then((pageName) => {
newPageName = pageName.toString();
_.gitSync.CommitAndPush();
_.gitSync.MergeToMaster();
_.gitSync.SwitchGitBranch(mainBranch);
PageList.assertPresence(newPageName);
});
});

it("2. Clicking '+' icon on bottom bar should open deploy popup", function () {
Expand All @@ -86,8 +69,7 @@ describe(
});

it("3. Checks clean url updates across branches", () => {
PageList.DeletePage("NewPage");
cy.wait(1000);
PageList.DeletePage(newPageName);
let legacyPathname = "";
let newPathname = "";
// question to qa can we remove this assertion
Expand All @@ -96,7 +78,8 @@ describe(
}).as("appAndPages");
cy.reload();
cy.wait("@getConsolidatedData").then((intercept2) => {
const { application, pages } = intercept2.response.body.data.pages.data;
const { application, pages } =
intercept2?.response?.body?.data?.pages?.data;
const defaultPage = pages.find((p) => p.isDefault);
legacyPathname = `/applications/${application.baseId}/pages/${defaultPage.baseId}`;
newPathname = `/app/${application.slug}/${defaultPage.slug}-${defaultPage.baseId}`;
Expand All @@ -116,7 +99,7 @@ describe(
expect(location.pathname).includes(legacyPathname);
});

cy.switchGitBranch(mainBranch);
_.gitSync.SwitchGitBranch(mainBranch);

cy.get(".t--upgrade").click({ force: true });

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import {
} from "../../../../support/Objects/ObjectsCore";
const apiwidget = require("../../../../locators/apiWidgetslocator.json");

describe(
//skipping this due to : https://github.com/appsmithorg/appsmith/issues/38156
describe.skip(
"To test [Bug]: A-force -> Not being able to upload file using binary format and multi part form data #34123",
{ tags: ["@tag.Datasource", "@tag.Git", "@tag.AccessControl"] },
() => {
Expand Down
30 changes: 15 additions & 15 deletions app/client/cypress/e2e/Sanity/Datasources/MockDBs_Spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,17 @@ describe(
expect(interception.request.body.source).to.equal("SELF");
});

dataSources.runQueryAndVerifyResponseViews({
count: 1,
operator: "gte",
}); //minimum 1 rows are expected
// dataSources.runQueryAndVerifyResponseViews({
// count: 1,
// operator: "gte",
// }); //minimum 1 rows are expected

AppSidebar.navigate(AppSidebarButton.Data);
dataSources
.getDatasourceListItemDescription(mockDBName)
.then(($queryCount) =>
expect($queryCount).to.eq("2 queries in this app"),
);
// AppSidebar.navigate(AppSidebarButton.Data);
// dataSources
// .getDatasourceListItemDescription(mockDBName)
// .then(($queryCount) =>
// expect($queryCount).to.eq("2 queries in this app"),
// );
});
});

Expand All @@ -90,11 +90,11 @@ describe(
assertHelper.AssertNetworkStatus("@trigger");
dataSources.ValidateNSelectDropdown("Command", "Find document(s)");

dataSources.runQueryAndVerifyResponseViews({
count: 1,
operator: "gte",
responseTypes: ["JSON", "RAW"],
});
// dataSources.runQueryAndVerifyResponseViews({
// count: 1,
// operator: "gte",
// responseTypes: ["JSON", "RAW"],
// });
});
});
},
Expand Down
2 changes: 1 addition & 1 deletion app/client/cypress/locators/QueryEditor.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"addDatasource": ".t--add-datasource",
"editDatasourceButton": ".t--edit-datasource",
"switch": ".t--form-control-SWITCH input",
"queryResponse": "(//div[@class='table']//div[@class='tr'])[2]//div[@class='td mp-mask']",
"queryResponse": "(//div[@class='table']//div[@class='tr'])[2]//div[@class='td as-mask']",
"querySelect": "//div[contains(@class, 't--template-menu')]//div[text()='Select']",
"queryCreate": "//div[contains(@class, 't--template-menu')]//div[text()='Create']",
"queryUpdate": "//div[contains(@class, 't--template-menu')]//div[text()='Update']",
Expand Down
4 changes: 1 addition & 3 deletions app/client/cypress/support/Pages/ApiPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ export class ApiPage {
"')]";
private _bodyTypeSelect = `//div[@data-testid="t--api-body-tab-switch"]`;
private _bodyTypeToSelect = (subTab: string) =>
"//div[contains(@class, 'rc-select-item-option')]//div[contains(text(),'" +
subTab +
"')]";
".rc-select-item-option:contains(" + subTab + ")";
private _rightPaneTab = (tab: string) =>
"//span[contains(text(), '" + tab + "')]/parent::button";
_visibleTextSpan = (spanText: string) => "//span[text()='" + spanText + "']";
Expand Down
2 changes: 1 addition & 1 deletion app/client/cypress/support/Pages/DataSources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export class DataSources {
option +
"']";
_queryTableResponse =
"//div[@data-guided-tour-id='query-table-response']//div[@class='tbody']//div[@class ='td mp-mask']";
"//div[@data-guided-tour-id='query-table-response']//div[@class='tbody']//div[@class ='td as-mask']";
_queryResponseHeader = (header: string) =>
"//div[@data-guided-tour-id='query-table-response']//div[@class='table']//div[@role ='columnheader']//span[text()='" +
header +
Expand Down
4 changes: 2 additions & 2 deletions app/client/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ Cypress.Commands.add("ValidatePaginateResponseUrlData", (runTestCss) => {
cy.wait(2000);
cy.get(runTestCss).click();
cy.wait(2000);
cy.xpath("//div[@class='tr'][1]//div[@class='td mp-mask'][6]//span")
cy.xpath("//div[@class='tr'][1]//div[@class='td as-mask'][6]//span")
.invoke("text")
.then((valueToTest) => {
// eslint-disable-next-line cypress/no-unnecessary-waiting
Expand All @@ -841,7 +841,7 @@ Cypress.Commands.add("ValidatePaginateResponseUrlDataV2", (runTestCss) => {
cy.wait(2000);
cy.get(runTestCss).click();
cy.wait(2000);
cy.xpath("//div[@class='tr'][1]//div[@class='td mp-mask'][6]//span")
cy.xpath("//div[@class='tr'][1]//div[@class='td as-mask'][6]//span")
.invoke("text")
.then((valueToTest) => {
// eslint-disable-next-line cypress/no-unnecessary-waiting
Expand Down
27 changes: 22 additions & 5 deletions app/client/packages/design-system/ads/src/List/List.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const items = [
{
startIcon: <Icon name="file-list-2-line" size={"md"} />,
title: "Action item 3",
isSelected: true,
},
{
startIcon: <Icon name="file-list-2-line" size={"md"} />,
Expand Down Expand Up @@ -210,20 +211,36 @@ export const ListItemInlineDescStory = ListItemTemplate.bind({}) as StoryObj;
ListItemInlineDescStory.storyName = "List item inline description";
ListItemInlineDescStory.argTypes = ListItemArgTypes;
ListItemInlineDescStory.args = {
title: "Action item 1",
title:
"Action_item_1_with_a_very_long_name_that_should_show_ellipsis_in_the_same_line",
description: "inline",
};

export const ListItemBlockDescStory = ListItemTemplate.bind({}) as StoryObj;
ListItemBlockDescStory.storyName = "List item block description";
ListItemBlockDescStory.argTypes = ListItemArgTypes;
ListItemBlockDescStory.args = {
export const ListItemBlockDescWithIconStory = ListItemTemplate.bind(
{},
) as StoryObj;
ListItemBlockDescWithIconStory.storyName =
"List item block description with icon";
ListItemBlockDescWithIconStory.argTypes = ListItemArgTypes;
ListItemBlockDescWithIconStory.args = {
startIcon: <Icon name="file-list-2-line" size={"md"} />,
title: "Action item 1",
description: "block",
descriptionType: "block",
};

export const ListItemBlockDescWithoutIconStory = ListItemTemplate.bind(
{},
) as StoryObj;
ListItemBlockDescWithoutIconStory.storyName =
"List item block description without icon";
ListItemBlockDescWithoutIconStory.argTypes = ListItemArgTypes;
ListItemBlockDescWithoutIconStory.args = {
title: "Action item 1",
description: "Action item 1 block description",
descriptionType: "block",
};

export const ListItemOverflowStory = ListItemTemplate.bind({}) as StoryObj;
ListItemOverflowStory.storyName = "List item title overflow";
ListItemOverflowStory.argTypes = ListItemArgTypes;
Expand Down
23 changes: 14 additions & 9 deletions app/client/packages/design-system/ads/src/List/List.styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ const Sizes = {
export const TooltipTextWrapper = styled.div`
display: flex;
min-width: 0;

&.${ListItemIDescClassName}-wrapper {
min-width: unset;
}
`;

export const RightControlWrapper = styled.div`
Expand All @@ -54,8 +58,11 @@ export const TopContentWrapper = styled.div`
`;

export const BottomContentWrapper = styled.div`
padding-left: var(--ads-v2-spaces-7);
padding-bottom: var(--ads-v2-spaces-2);

&[data-isiconpresent="true"] {
padding-left: var(--ads-v2-spaces-7);
}
`;

export const InlineDescriptionWrapper = styled.div`
Expand Down Expand Up @@ -91,9 +98,14 @@ export const StyledListItem = styled.div<{
gap: var(--ads-v2-spaces-1);
flex-shrink: 0;
flex-direction: column;
max-height: 32px;

${({ size }) => Sizes[size]}

&[data-isblockdescription="true"] {
max-height: 54px;
}

&[data-rightcontrolvisibility="hover"] {
${RightControlWrapper} {
display: none;
Expand Down Expand Up @@ -124,19 +136,12 @@ export const StyledListItem = styled.div<{
background-color: var(--ads-v2-colors-content-surface-active-bg);
}

/* Focus styles */

&:focus-visible {
outline: var(--ads-v2-border-width-outline) solid
var(--ads-v2-color-outline);
outline-offset: var(--ads-v2-offset-outline);
}

& .${ListItemTextOverflowClassName} {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
flex: 1;
padding-right: var(--ads-v2-spaces-2);
}

& .${ListItemTitleClassName} {
Expand Down
Loading
Loading