Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ccastrotrejo committed Jan 6, 2025
1 parent 226c3b1 commit 2591159
Show file tree
Hide file tree
Showing 3 changed files with 682 additions and 47 deletions.
12 changes: 0 additions & 12 deletions Localize/lang/strings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"++ZVe/": "Testing",
"+0H8Or": "Warning: input node type does not match the schema node's type",
"+0ua83": "Parameters",
"+0yxlR": "Function display",
"+3rROX": "Protected",
"+5Jp42": "By",
Expand Down Expand Up @@ -985,7 +984,6 @@
"Xnn0uj": "Request",
"XqamWZ": "Delete",
"XsktQ/": "Limit Logic Apps to not include workflow metadata headers in the response.",
"XtVOMn": "Something went wrong",
"XtuP5e": "Math functions",
"Xv5CGN": "(UTC-05:00) Indiana (East)",
"Xx/naD": "Required. The name of the action whose body outputs you want.",
Expand Down Expand Up @@ -1049,11 +1047,9 @@
"Zi9gQK": "Add new item",
"ZihyUf": "Close",
"ZkjTbp": "Learn more about dynamic content.",
"ZvAp7m": "Save",
"ZyDq4/": "Show a different suggestion",
"_++ZVe/.comment": "Title for testing section",
"_+0H8Or.comment": "Warning message for when input node type does not match schema node type",
"_+0ua83.comment": "Button text for parameters",
"_+0yxlR.comment": "Label for the function display radio group",
"_+3rROX.comment": "Label in the chatbot header stating that the users information is protected in this chatbot",
"_+5Jp42.comment": "Title for publisher",
Expand Down Expand Up @@ -2037,7 +2033,6 @@
"_Xnn0uj.comment": "Header text for request",
"_XqamWZ.comment": "Label of Delete Token Button",
"_XsktQ/.comment": "description of workflow headers on response setting",
"_XtVOMn.comment": "Something went wrong text",
"_XtuP5e.comment": "Label for math functions",
"_Xv5CGN.comment": "Time zone value ",
"_Xx/naD.comment": "Required string parameter to determine action's body output wanted",
Expand Down Expand Up @@ -2101,7 +2096,6 @@
"_Zi9gQK.comment": "Label to add item to property editor",
"_ZihyUf.comment": "Label for the close button in the chatbot header",
"_ZkjTbp.comment": "Text for dynamic content link",
"_ZvAp7m.comment": "Button text for save",
"_ZyDq4/.comment": "Text for the show different suggestion flow button",
"_a7j3gS.comment": "Required number parameter to divide in mod function",
"_aAXnqw.comment": "Required number of occurrences to get nthIndexOf function with",
Expand Down Expand Up @@ -2249,7 +2243,6 @@
"_fNlJSh.comment": "Error message to show when all connections are not connected",
"_fSMyDJ.comment": "title for request options setting",
"_fVG5aD.comment": "Time zone value ",
"_fZJWBR.comment": "Loading designer text",
"_faUrud.comment": "Message to show under the loading icon when loading connection parameters",
"_fg/34o.comment": "Label for logical functions",
"_fifSPb.comment": "Time zone value ",
Expand Down Expand Up @@ -2516,7 +2509,6 @@
"_oZMhX/.comment": "Text of Tooltip to expand",
"_ocW+RF.comment": "Title for the details section in the template overview tab",
"_odQ554.comment": "Response body for test map API",
"_ohOaXj.comment": "Button text for errors",
"_ohpbkw.comment": "title for retry policy exponential interval setting",
"_onXUu0.comment": "Text to tell users to click to add comments",
"_oqgNX3.comment": "Accessibility label for workflow name",
Expand Down Expand Up @@ -2612,7 +2604,6 @@
"_sFbnCs.comment": "Time zone value ",
"_sFwHQc.comment": "aria label description for cancel button",
"_sKy720.comment": "Error message when the workflow name is empty.",
"_sOnphB.comment": "Button text for resubmit",
"_sRpETS.comment": "Warning message for when custom value does not match schema node type",
"_sVQe34.comment": "The description for the test tab parameters.",
"_sVcvcG.comment": "The tab label for the monitoring name and state tab on the create workflow panel",
Expand Down Expand Up @@ -3005,7 +2996,6 @@
"fNlJSh": "All connections must be connected for workflow creation",
"fSMyDJ": "Request options - Timeout",
"fVG5aD": "(UTC-05:00) Haiti",
"fZJWBR": "Loading designer",
"faUrud": "Loading connection data...",
"fg/34o": "Logical functions",
"fifSPb": "(UTC-03:30) Newfoundland",
Expand Down Expand Up @@ -3272,7 +3262,6 @@
"oZMhX/": "Expand",
"ocW+RF": "Details",
"odQ554": "Response body",
"ohOaXj": "Errors",
"ohpbkw": "Exponential interval",
"onXUu0": "Add a note",
"oqgNX3": "Workflow name",
Expand Down Expand Up @@ -3368,7 +3357,6 @@
"sFbnCs": "(UTC-05:00) Chetumal",
"sFwHQc": "Cancel creating a connection",
"sKy720": "Must provide value for workflow name.",
"sOnphB": "Resubmit",
"sRpETS": "Warning: custom value does not match the schema node's type",
"sVQe34": "Provide parameters to test the output.",
"sVcvcG": "Basics",
Expand Down
20 changes: 10 additions & 10 deletions libs/designer-ui/src/lib/modals/__test__/DeleteNodeModal.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,27 +71,27 @@ describe('DeleteNodeModal', () => {

describe('DeleteNodeModal Snapshots', () => {
it('should match snapshot for operation node', () => {
const { asFragment } = renderComponent({ nodeType: 'OPERATION_NODE' });
expect(asFragment()).toMatchSnapshot();
const deleteNodeModal = renderComponent({ nodeType: 'OPERATION_NODE' });
expect(deleteNodeModal).toMatchSnapshot();
});

it('should match snapshot for graph node', () => {
const { asFragment } = renderComponent({ nodeType: 'GRAPH_NODE' });
expect(asFragment()).toMatchSnapshot();
const deleteNodeModal = renderComponent({ nodeType: 'GRAPH_NODE' });
expect(deleteNodeModal).toMatchSnapshot();
});

it('should match snapshot for switch case node', () => {
const { asFragment } = renderComponent({ nodeType: 'SUBGRAPH_NODE' });
expect(asFragment()).toMatchSnapshot();
const deleteNodeModal = renderComponent({ nodeType: 'SUBGRAPH_NODE' });
expect(deleteNodeModal).toMatchSnapshot();
});

it('should match snapshot for other node types', () => {
const { asFragment } = renderComponent({ nodeType: 'PLACEHOLDER_NODE' });
expect(asFragment()).toMatchSnapshot();
const deleteNodeModal = renderComponent({ nodeType: 'PLACEHOLDER_NODE' });
expect(deleteNodeModal).toMatchSnapshot();
});

it('should match snapshot when nodeId is not provided', () => {
const { asFragment } = renderComponent({ nodeId: '' });
expect(asFragment()).toMatchSnapshot();
const deleteNodeModal = renderComponent({ nodeId: '' });
expect(deleteNodeModal).toMatchSnapshot();
});
});
Loading

0 comments on commit 2591159

Please sign in to comment.