forked from appsmithorg/appsmith
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Namatek/dev
Remove additional button from workspace.
- Loading branch information
Showing
216 changed files
with
9,547 additions
and
5,651 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
app/client/cypress/e2e/Regression/ClientSide/ActionExecution/Bug33601_spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
import { | ||
agHelper, | ||
appSettings, | ||
assertHelper, | ||
deployMode, | ||
homePage, | ||
locators, | ||
} from "../../../../support/Objects/ObjectsCore"; | ||
import EditorNavigation, { | ||
EntityType, | ||
PageLeftPane, | ||
} from "../../../../support/Pages/EditorNavigation"; | ||
|
||
describe( | ||
"Bug:33601: resetWidget function causes the next async method to be undefined", | ||
{ tags: ["@tag.JS"] }, | ||
() => { | ||
it("1. Bug 33601", () => { | ||
homePage.NavigateToHome(); | ||
homePage.ImportApp("resetWidgetBug33601.json"); | ||
EditorNavigation.SelectEntityByName("List1", EntityType.Widget); | ||
PageLeftPane.expandCollapseItem("List1"); | ||
PageLeftPane.expandCollapseItem("Container1"); | ||
EditorNavigation.SelectEntityByName("Input1", EntityType.Widget); | ||
|
||
agHelper.EnterInputText("Label", "Widget Input2"); | ||
EditorNavigation.SelectEntityByName("Button1", EntityType.Widget); | ||
cy.get(locators._widgetInputSelector("inputwidgetv2")) | ||
.first() | ||
.invoke("attr", "value") | ||
.should("contain", "Widget Input2"); | ||
agHelper | ||
.GetAttribute(locators._imgWidgetInsideList, "src") | ||
.then((labelValue) => { | ||
expect(labelValue).not.to.contain("data:image/png;base64"); | ||
}); | ||
|
||
agHelper.ClickButton("Submit"); | ||
cy.get(locators._widgetInputSelector("inputwidgetv2")) | ||
.first() | ||
.invoke("attr", "value") | ||
.should("be.empty"); | ||
assertHelper.WaitForNetworkCall("@postExecute"); | ||
agHelper | ||
.GetAttribute(locators._imgWidgetInsideList, "src") | ||
.then((labelValue) => { | ||
expect(labelValue).to.contain("data:image/png;base64"); | ||
}); | ||
|
||
deployMode.DeployApp(); | ||
agHelper.AssertElementVisibility(appSettings.locators._header); | ||
agHelper.EnterInputText("Label", "Widget Input2"); | ||
cy.get(locators._widgetInputSelector("inputwidgetv2")) | ||
.first() | ||
.invoke("attr", "value") | ||
.should("contain", "Widget Input2"); | ||
agHelper | ||
.GetAttribute(locators._imgWidgetInsideList, "src") | ||
.then((labelValue) => { | ||
expect(labelValue).not.to.contain("data:image/png;base64"); | ||
}); | ||
agHelper.ClickButton("Submit"); | ||
cy.get(locators._widgetInputSelector("inputwidgetv2")) | ||
.first() | ||
.invoke("attr", "value") | ||
.should("be.empty"); | ||
agHelper | ||
.GetAttribute(locators._imgWidgetInsideList, "src") | ||
.then((labelValue) => { | ||
expect(labelValue).to.contain("data:image/png;base64"); | ||
}); | ||
}); | ||
}, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...esign-system/ads/src/Templates/EntityExplorer/EditorSegments/EditorSegments.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Canvas, Meta } from "@storybook/blocks"; | ||
|
||
import * as EditorSegmentsStories from "./EditorSegments.stories"; | ||
|
||
<Meta of={EditorSegmentsStories} /> | ||
|
||
# Editor Segments | ||
|
||
Editor Segments is is built on top of the ADS component - Segmented Control. It is a preset template built for Entity Explorer which has a `max-width of 247px` and has extra padding around each of the segments. | ||
|
||
Editor Segments present a range of options, and should be used when the user can execute those options instantaneously. It can also accept `children` to add more UI controls, if needed. These will be placed on the right side of the segments. It takes `options`, `selectedSegment` and `onSegmentChange` props to handle the value and onChange functionalities of Segmented Control component. | ||
|
||
The options presented should not be binary. If you have a `yes | no` scenario, use a switch, instead. | ||
|
||
## Anatomy | ||
|
||
### Default implementation | ||
|
||
Note: The `options` needs to be passed as required, the UI shown below are not default values being provided to the Editor segments. It also means the `selectedSegment` and `onSegmentChange` props needs to be passed as well. | ||
|
||
<Canvas of={EditorSegmentsStories.EditorSegmentsStory} /> | ||
|
||
### More UI controls | ||
|
||
<Canvas of={EditorSegmentsStories.EditorSegmentsStoryWithChildren} /> |
Oops, something went wrong.