@griddo/ax 1.68.2 → 1.68.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@griddo/ax",
3
3
  "description": "Griddo Author Experience",
4
- "version": "1.68.2",
4
+ "version": "1.68.3",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Carlos Torres <carlos.torres@secuoyas.com>",
@@ -221,5 +221,5 @@
221
221
  "publishConfig": {
222
222
  "access": "public"
223
223
  },
224
- "gitHead": "6a6e90c93a8dc31f77b2b67df24fbda20f16aadf"
224
+ "gitHead": "51a9cfb56854b1b9102de4d73d37b2835be55562"
225
225
  }
@@ -63,6 +63,26 @@ describe("ComponentArraySelector trigger events", () => {
63
63
  text: "This is a warning",
64
64
  },
65
65
  });
66
+
67
+ expect(screen.getByTestId("tooltipComponent")).toHaveTextContent("Paste from clipboard");
68
+ });
69
+
70
+ test("should trigger the onClick and resolve promise", async () => {
71
+ defaultProps.isModuleCopyUnavailable = false;
72
+ mockedFunction.mockResolvedValue({});
73
+
74
+ render(
75
+ <ThemeProvider theme={parseTheme(globalTheme)}>
76
+ <PasteModuleButton {...defaultProps} />
77
+ </ThemeProvider>
78
+ );
79
+ const iconButton = screen.getByTestId("iconActionComponent");
80
+ expect(iconButton).toBeTruthy();
81
+ await act(async () => {
82
+ fireEvent.click(iconButton);
83
+ });
84
+ await expect(mockedFunction).toHaveBeenCalled();
85
+ await expect(mockedFunction(1)).resolves.toEqual({});
66
86
  expect(screen.getByTestId("toastMessage")).toHaveTextContent("Module pasted from clipboard");
67
87
  });
68
88
 
@@ -89,6 +89,7 @@ const LinkField = (props: ILinkFieldProps): JSX.Element => {
89
89
  mandatory
90
90
  condition="url"
91
91
  field={urlFieldSchema}
92
+ advanced
92
93
  />,
93
94
  ]}
94
95
  />