Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
22 changes: 22 additions & 0 deletions Localize/lang/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"/mjH84": "Show raw outputs",
"/n13VL": "Properties",
"/nKih3": "Opens in a new tab",
"/oWzBF": "False",
"/qCaDo": "Indicates to template users whether the parameter must be filled to proceed",
"/qchXQ": "Required. The collection to join items from.",
"/qrBuJ": "Create",
Expand Down Expand Up @@ -178,6 +179,7 @@
"1KFpTX": "(UTC+03:00) Minsk",
"1KMc+6": "The integer should be between [{min}, {max}]",
"1LSKq8": "Basics",
"1MO/b/": "Enter a unique case name.",
"1NBvKu": "Convert the parameter argument to a floating-point number",
"1NVeRR": "This assistant can help you learn about your workflows, answer questions about Azure Logic Apps, and make changes to your workflow.",
"1OIW6v": "Set up now",
Expand Down Expand Up @@ -542,6 +544,7 @@
"7pjV7b": "Project details",
"7rItIH": "Cancel",
"7rokiZ": "Embedded chat is unavailable with authentication enabled. Click to open in new tab: {url}",
"7smF3w": "{label}, branch taken",
"7tPvNK": "After you turn on concurrency control and publish the workflow, this setting can't be changed.",
"7uQSsD": "Parameters",
"7yEdSt": "Show more",
Expand Down Expand Up @@ -691,6 +694,7 @@
"AhvQ7r": "Remove and clear all advanced parameters and their values",
"Aid5oX": "Handoff description",
"Ak2Lka": "Not connected to",
"Ak8mfG": "Edit test data",
"AkKqDo": "Built-in Tools",
"AlPxuK": "Description",
"AlWFOS": "Collapse chat panel",
Expand Down Expand Up @@ -846,6 +850,7 @@
"DYXoEM": "(UTC+02:00) Chisinau",
"DYbiZw": "Fail operation when limits are reached",
"DZZ3fj": "Duration",
"DZs1Ne": "More case actions",
"DabKOm": "API keys",
"DbxZhS": "Remove list of options",
"DcJBUx": "Trigger type",
Expand Down Expand Up @@ -1256,6 +1261,7 @@
"M8Aqm4": "Optional. The name of the scoped action where you want the inputs and outputs from the top-level actions inside that scope.",
"M9LjqI": "Conversational agents (Preview)",
"MAX7xS": "Show more",
"MBA7Al": "Rename case",
"MCzWDc": "Preview",
"MDbmMw": "Required. The collections to evaluate. An object must be in all collections passed in to appear in the result.",
"MDmYah": "Filter by resource group",
Expand Down Expand Up @@ -2016,6 +2022,7 @@
"ZmSjQV": "Learn how to set up a logic app",
"Zo2BOK": "Condition",
"ZtLSVc": "Search",
"Zwdunb": "True",
"ZyDq4/": "Show a different suggestion",
"ZyntX1": "Add a description",
"ZzQUve": "Save this API key in a secure place. You can't view the key later. Previous API keys still work based on their expiration date. However, regenerating access tokens invalidates all previous API keys.",
Expand Down Expand Up @@ -2102,6 +2109,7 @@
"_/mjH84.comment": "Show outputs text",
"_/n13VL.comment": "Properties text",
"_/nKih3.comment": "Accessible description for the extracted child workflow navigation action",
"_/oWzBF.comment": "False branch label",
"_/qCaDo.comment": "Description for the required field",
"_/qchXQ.comment": "Required collection parameter to apply join function on",
"_/qrBuJ.comment": "Button text for creating the workflow",
Expand Down Expand Up @@ -2198,6 +2206,7 @@
"_1KFpTX.comment": "Time zone value ",
"_1KMc+6.comment": "Error validation message for integers being out of range",
"_1LSKq8.comment": "Accessibility label for the basics section",
"_1MO/b/.comment": "Validation message when a switch-case key rename is invalid",
"_1NBvKu.comment": "Label for description of custom float Function",
"_1NVeRR.comment": "Chatbot introduction message when workflow editing is enabled",
"_1OIW6v.comment": "Button text to start Azure connector setup",
Expand Down Expand Up @@ -2562,6 +2571,7 @@
"_7pjV7b.comment": "Title for the details section",
"_7rItIH.comment": "Cancel button text for deployment model resource",
"_7rokiZ.comment": "Tooltip for chat button",
"_7smF3w.comment": "Announced phrase for the branch that ran in monitoring",
"_7tPvNK.comment": "Message for the confirmation dialog before enabling trigger concurrency control",
"_7uQSsD.comment": "Label for the parameters status column",
"_7yEdSt.comment": "Toggle button text for showing advanced parameters",
Expand Down Expand Up @@ -2711,6 +2721,7 @@
"_AhvQ7r.comment": "Button tooltip to remove all advanced parameters",
"_Aid5oX.comment": "Label text for the input field to enter a description of the handoff",
"_Ak2Lka.comment": "Chatbot text stating connection to api not made",
"_Ak8mfG.comment": "Open the selected action’s Testing tab",
"_AkKqDo.comment": "Header label for the built-in tools section in agent loop settings",
"_AlPxuK.comment": "This is for a label for a badge, it is used for screen readers and not shown on the screen.",
"_AlWFOS.comment": "Collapse button title",
Expand Down Expand Up @@ -2866,6 +2877,7 @@
"_DYXoEM.comment": "Time zone value ",
"_DYbiZw.comment": "Fail operation when limits are reached",
"_DZZ3fj.comment": "Column header text for duration",
"_DZs1Ne.comment": "Accessible label for the switch-case overflow actions menu",
"_DabKOm.comment": "Label for the API keys",
"_DbxZhS.comment": "Remove the drop-down list of options for the text input dynamic parameter",
"_DcJBUx.comment": "Type of the trigger in the template",
Expand Down Expand Up @@ -3276,6 +3288,7 @@
"_M8Aqm4.comment": "Optional string parameter to determine specific actions inside top-level actions",
"_M9LjqI.comment": "Conversational agent workflow option",
"_MAX7xS.comment": "Label for show more text.",
"_MBA7Al.comment": "Dialog title shown when renaming a switch-case lane",
"_MCzWDc.comment": "Recurrence preview title",
"_MDbmMw.comment": "Required collection parameters to check intersection function on",
"_MDmYah.comment": "Filter resource groups label",
Expand Down Expand Up @@ -4036,6 +4049,7 @@
"_ZmSjQV.comment": "Title for the setup instructions link",
"_Zo2BOK.comment": "Conditional action title",
"_ZtLSVc.comment": "Search label",
"_Zwdunb.comment": "True branch label",
"_ZyDq4/.comment": "Text for the show different suggestion flow button",
"_ZyntX1.comment": "Text that tells you to select for adding a description",
"_ZzQUve.comment": "Description for the MCP server workflows section",
Expand Down Expand Up @@ -4459,6 +4473,7 @@
"_hrbDu6.comment": "Label text for retry duration",
"_hrs5f4.comment": "The description for button text of saving the template as testing status",
"_htj+eZ.comment": "Header to update target schema",
"_hu8PnM.comment": "Button text to dismiss switch-case rename dialog",
"_huLRj0.comment": "Error message when the hub name is invalid regex.",
"_hvbclb.comment": "MSI Audience Label Display Name",
"_hwgU6Y.comment": "Error message when name is empty",
Expand Down Expand Up @@ -4535,9 +4550,11 @@
"_izUiSp.comment": "Parameters button",
"_j/Pssm.comment": "Label for description of custom formatTimeSpan Function",
"_j1FtOw.comment": "Aria label for add new tag",
"_j2TDoU.comment": "Accessible label for the switch-case rename action",
"_j2v8BE.comment": "Text to show no connections present in the template.",
"_j4OKkU.comment": "label to set text color",
"_j5z8Vd.comment": "Label for array connection",
"_j6+gS9.comment": "Input label for renaming a switch-case key",
"_j6RrLt.comment": "Project setup section title",
"_j7HEKm.comment": "Text for days",
"_jA6Wrp.comment": "label to inform to upload or select target schema to be used",
Expand Down Expand Up @@ -4701,6 +4718,7 @@
"_m8Q61y.comment": "Parameter Field Name Title",
"_m8z4Yr.comment": "placeholder for pagination setting",
"_mB14zV.comment": "HTTP queries label",
"_mBHY52.comment": "Button text to confirm renaming a switch-case key",
"_mCKsFw.comment": "Time zone value ",
"_mCzkXX.comment": "Text for button to add a new action",
"_mE7w9G.comment": "Message on deleting connection",
Expand Down Expand Up @@ -5895,6 +5913,7 @@
"hrbDu6": "Duration",
"hrs5f4": "Save + publish for testing",
"htj+eZ": "Update target schema",
"hu8PnM": "Cancel",
"huLRj0": "Enter a unique name under 244 characters with only letters and numbers.",
"hvbclb": "Audience",
"hwgU6Y": "Name is required",
Expand Down Expand Up @@ -5971,9 +5990,11 @@
"izUiSp": "Parameters",
"j/Pssm": "Formats a timespan value according to the specified format string and optional culture.",
"j1FtOw": "Add new tag",
"j2TDoU": "Rename case",
"j2v8BE": "No connections are needed in this template",
"j4OKkU": "Text color",
"j5z8Vd": "Repeating",
"j6+gS9": "Case name",
"j6RrLt": "Project setup",
"j7HEKm": "days",
"jA6Wrp": "Add or select a target schema to use for your map.",
Expand Down Expand Up @@ -6137,6 +6158,7 @@
"m8Q61y": "Name",
"m8z4Yr": "Threshold of items to return",
"mB14zV": "Queries",
"mBHY52": "Save",
"mCKsFw": "(UTC+07:00) Barnaul, Gorno-Altaysk",
"mCzkXX": "Add an action",
"mE7w9G": "Function deleted.",
Expand Down
7 changes: 5 additions & 2 deletions e2e/designer/nodeSearchPanel.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ test.describe(
expect(await page.getByText('Terminate', { exact: true }).isVisible()).toBeTruthy();

// Open node search panel and select action
await page.getByLabel('Search workflow actions').click();
await page.getByTestId('msla-op-search-result-verify_property_changes').click();
await page.getByRole('button', { name: 'Search workflow actions', exact: true }).click();
const search = page.getByRole('dialog', { name: 'Go to operation', exact: true });
await search.getByPlaceholder('Search for operation', { exact: true }).fill('Verify property changes');
await search.getByText('Verify property changes', { exact: true }).click();
await expect(search).toBeHidden();

// node panel tab is open with terminate action
expect(await page.getByText('Terminate', { exact: true }).isVisible()).toBeTruthy();
Expand Down
86 changes: 86 additions & 0 deletions e2e/designer/sharedNodeUiBranchCommands.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
import { expect, test, type Page } from '@playwright/test';
import { getSerializedWorkflowFromStateV2 } from './utils/designerFunctions';
import { openSharedWorkflow } from './utils/sharedNodeUi';

async function readMenuItems(page: Page) {
return await page
.locator('[role="menuitem"]')
.allInnerTexts()
.then((items) => items.map((item) => item.trim()).filter(Boolean));
}

test.describe('Shared node UI branch lane commands', { tag: ['@mock', '@shared-node-ui'] }, () => {
test('renames the switch-case key from the edit glyph without mutating case value or branch actions', async ({ page }) => {
await openSharedWorkflow(page, 'Switch', 'true');
const before = await getSerializedWorkflowFromStateV2(page);
const beforeCases = before.definition.actions.Switch.cases;
const caseIds = Object.keys(beforeCases);
const firstCaseId = caseIds[0];
expect(firstCaseId).toBeTruthy();

const caseCard = page.locator(`[id="msla-node-${firstCaseId}"]`);
await expect(caseCard).toBeVisible();
await caseCard.getByRole('button', { name: 'Rename case', exact: true }).click();
const renameDialog = page.getByRole('dialog', { name: 'Rename case', exact: true });
await expect(renameDialog).toBeVisible();
await renameDialog.getByRole('textbox', { name: 'Case name', exact: true }).fill('Renamed case lane');
await renameDialog.getByRole('button', { name: 'Save', exact: true }).click();
await expect(renameDialog).not.toBeVisible();

await expect
.poll(async () => Object.keys((await getSerializedWorkflowFromStateV2(page)).definition.actions.Switch.cases))
.not.toContain(firstCaseId);

const after = await getSerializedWorkflowFromStateV2(page);
const afterCases = after.definition.actions.Switch.cases;
const renamedCaseId = Object.keys(afterCases).find((id) => !beforeCases[id]);
if (!renamedCaseId) {
throw new Error('Switch-case rename did not produce a new case key.');
}
expect(Object.keys(afterCases)).toHaveLength(caseIds.length);
expect(afterCases[renamedCaseId].case).toEqual(beforeCases[firstCaseId].case);
expect(afterCases[renamedCaseId].actions).toEqual(beforeCases[firstCaseId].actions);
expect(after.definition.actions.Switch.default).toEqual(before.definition.actions.Switch.default);
});

test('opens lane-header More actions for switch cases and keeps Default lane protected', async ({ page }, testInfo) => {
await openSharedWorkflow(page, 'Switch', 'true');
const ids = { caseId: 'First_Case', defaultId: 'Switch-defaultCase' };
const before = await getSerializedWorkflowFromStateV2(page);
const beforeCount = Object.keys(before.definition.actions.Switch.cases).length;

const caseCard = page.locator(`[id="msla-node-${ids.caseId}"]`);
await caseCard.getByRole('button', { name: 'More case actions', exact: true }).click();
await expect(page.getByRole('menuitem', { name: /^Delete\b/ })).toBeVisible();
await testInfo.attach('switch-case-more-actions', {
body: JSON.stringify({ items: await readMenuItems(page) }),
contentType: 'application/json',
});
await page.getByRole('menuitem', { name: /^Delete\b/ }).click();
const deleteDialog = page.getByRole('dialog');
await expect(deleteDialog).toBeVisible();
await deleteDialog.getByRole('button', { name: 'Cancel', exact: true }).click();
await expect(deleteDialog).not.toBeVisible();

await caseCard.getByRole('button', { name: 'More case actions', exact: true }).click();
await page.getByRole('menuitem', { name: /^Delete\b/ }).click();
await expect(deleteDialog).toBeVisible();
await deleteDialog.getByRole('button', { name: /^Delete\b/ }).click();
await expect(deleteDialog).not.toBeVisible();
await expect
.poll(async () => Object.keys((await getSerializedWorkflowFromStateV2(page)).definition.actions.Switch.cases).length)
.toBe(beforeCount - 1);

const defaultCard = page.locator(`[id="msla-node-${ids.defaultId}"]`);
await expect(defaultCard.getByRole('button', { name: 'Rename case', exact: true })).toHaveCount(0);
await expect(defaultCard.getByRole('button', { name: 'More case actions', exact: true })).toHaveCount(0);
});

test('hides shared lane-header branch commands when the shared flag is off', async ({ page }) => {
await openSharedWorkflow(page, 'Switch', 'false');
const caseCard = page.locator('[id="msla-node-First_Case"]');
await expect(caseCard).toBeVisible();
await expect(caseCard.getByRole('button', { name: 'Rename case', exact: true })).toHaveCount(0);
await expect(caseCard.getByRole('button', { name: 'More case actions', exact: true })).toHaveCount(0);
});
});
12 changes: 8 additions & 4 deletions e2e/designer/sharedNodeUiCanvas.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ for (const dark of [false, true]) {
if (dark) {
await setContextSetting(page, 'Dark Mode', true);
}
// Changing layout can move Compose under a stationary mouse; don't compare its rest paint to its hover paint.
await page.mouse.move(0, 0);
const compose = page.locator('#msla-node-Compose');
await expect(compose.and(page.locator(':hover'))).toHaveCount(0);
const before = await getSerializedWorkflowFromStateV2(page);
let previous = '';
await expect
Expand Down Expand Up @@ -80,12 +84,12 @@ for (const dark of [false, true]) {
expect(paint.backgroundOverFlow).toBe(paint.background1);
} else {
await setSharedNodeUi(page, true);
await expect(page.locator('#msla-node-Compose')).toHaveAttribute('data-node-card', 'action');
await expect(compose).toHaveAttribute('data-node-card', 'action');
await setSharedNodeUi(page, false);
await expect(page.locator('#msla-node-Compose')).not.toHaveAttribute('data-node-card', 'action');
await expect(compose).not.toHaveAttribute('data-node-card', 'action');
await waitForViewport(page);
const restored = await readPaint(page);
expect({ ...restored, pattern: undefined }).toEqual({ ...paint, pattern: undefined });
await expect(compose.and(page.locator(':hover'))).toHaveCount(0);
await expect.poll(async () => ({ ...(await readPaint(page)), pattern: undefined })).toEqual({ ...paint, pattern: undefined });
}
expect((await getSerializedWorkflowFromStateV2(page)).definition.actions).toEqual(before.definition.actions);
}
Expand Down
Loading
Loading