@iblai/iblai-js 2.7.4 → 2.7.6
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/dist/data-layer/playwright/agent-skills-helpers.d.ts +8 -6
- package/dist/playwright/index.cjs +13 -8
- package/dist/playwright/index.cjs.map +1 -1
- package/dist/playwright/index.d.ts +8 -6
- package/dist/playwright/index.esm.js +13 -8
- package/dist/playwright/index.esm.js.map +1 -1
- package/dist/playwright/playwright/agent-skills-helpers.d.ts +8 -6
- package/dist/security/playwright/agent-skills-helpers.d.ts +8 -6
- package/dist/web-containers/playwright/agent-skills-helpers.d.ts +8 -6
- package/dist/web-containers/source/index.esm.js +56 -16
- package/dist/web-containers/source/next/index.esm.js +60 -20
- package/dist/web-utils/playwright/agent-skills-helpers.d.ts +8 -6
- package/package.json +3 -3
|
@@ -817,15 +817,17 @@ declare function addSkillToAgent(page: Page, skillName: string): Promise<void>;
|
|
|
817
817
|
*/
|
|
818
818
|
declare function verifySkillAdded(page: Page, skillName: string): Promise<void>;
|
|
819
819
|
/**
|
|
820
|
-
* Open the three-dots actions menu for a skill row on
|
|
821
|
-
* Agent-tab rows
|
|
822
|
-
*
|
|
823
|
-
* document.body, so the returned locator is page-level by design.
|
|
820
|
+
* Open the three-dots actions menu for a CATALOG skill row (Edit/Delete on
|
|
821
|
+
* editable skills). Agent-tab rows have no menu — detaching is a direct
|
|
822
|
+
* "Remove" button there (see `removeSkillFromAgent`). The menu content
|
|
823
|
+
* portals to document.body, so the returned locator is page-level by design.
|
|
824
824
|
*/
|
|
825
825
|
declare function openSkillActionsMenu(page: Page, skillName: string): Promise<Locator>;
|
|
826
826
|
/**
|
|
827
|
-
* Detach a skill from the agent via its row
|
|
828
|
-
* "Agent Skills" sub-tab
|
|
827
|
+
* Detach a skill from the agent via its row's direct "Remove" button on the
|
|
828
|
+
* "Agent Skills" sub-tab (the visible text is just "Remove"; the button's
|
|
829
|
+
* accessible name carries the skill, mirroring the catalog's Add button).
|
|
830
|
+
* Waits for the toast confirming the detach.
|
|
829
831
|
*/
|
|
830
832
|
declare function removeSkillFromAgent(page: Page, skillName: string): Promise<void>;
|
|
831
833
|
/**
|
|
@@ -2917,10 +2917,10 @@ async function verifySkillAdded(page, skillName) {
|
|
|
2917
2917
|
logger.info(`Skill "${skillName}" shows as Added`);
|
|
2918
2918
|
}
|
|
2919
2919
|
/**
|
|
2920
|
-
* Open the three-dots actions menu for a skill row on
|
|
2921
|
-
* Agent-tab rows
|
|
2922
|
-
*
|
|
2923
|
-
* document.body, so the returned locator is page-level by design.
|
|
2920
|
+
* Open the three-dots actions menu for a CATALOG skill row (Edit/Delete on
|
|
2921
|
+
* editable skills). Agent-tab rows have no menu — detaching is a direct
|
|
2922
|
+
* "Remove" button there (see `removeSkillFromAgent`). The menu content
|
|
2923
|
+
* portals to document.body, so the returned locator is page-level by design.
|
|
2924
2924
|
*/
|
|
2925
2925
|
async function openSkillActionsMenu(page, skillName) {
|
|
2926
2926
|
const actionsButton = page.getByRole('button', { name: `${skillName} actions` });
|
|
@@ -2931,12 +2931,17 @@ async function openSkillActionsMenu(page, skillName) {
|
|
|
2931
2931
|
return menu;
|
|
2932
2932
|
}
|
|
2933
2933
|
/**
|
|
2934
|
-
* Detach a skill from the agent via its row
|
|
2935
|
-
* "Agent Skills" sub-tab
|
|
2934
|
+
* Detach a skill from the agent via its row's direct "Remove" button on the
|
|
2935
|
+
* "Agent Skills" sub-tab (the visible text is just "Remove"; the button's
|
|
2936
|
+
* accessible name carries the skill, mirroring the catalog's Add button).
|
|
2937
|
+
* Waits for the toast confirming the detach.
|
|
2936
2938
|
*/
|
|
2937
2939
|
async function removeSkillFromAgent(page, skillName) {
|
|
2938
|
-
const
|
|
2939
|
-
|
|
2940
|
+
const removeButton = page.getByRole('button', {
|
|
2941
|
+
name: `Remove ${skillName} from this agent`,
|
|
2942
|
+
});
|
|
2943
|
+
await expect(removeButton).toBeVisible({ timeout: 10000 });
|
|
2944
|
+
await removeButton.click();
|
|
2940
2945
|
await expect(page.getByText(`${skillName} removed`, { exact: false })).toBeVisible({
|
|
2941
2946
|
timeout: 10000,
|
|
2942
2947
|
});
|