Skip to content

Commit

Permalink
- fix: send files after breaking changes in node (#154)
Browse files Browse the repository at this point in the history
* - fix: send files after breaking changes in node

* - fix: removed unused dependency
  • Loading branch information
agallardol authored Mar 1, 2024
1 parent 3c31503 commit 3968855
Show file tree
Hide file tree
Showing 8 changed files with 99 additions and 1,194 deletions.
22 changes: 12 additions & 10 deletions apps/shinkai-visor-e2e/src/fixtures/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,20 @@ export const test = base.extend<{
await use(page);
},
popup: async ({ context, page, worker, extensionId }, use) => {
// Hack: This code let use control the sidel panel open/close
const manifestPage = await context.newPage();
await manifestPage.goto(`chrome-extension://${extensionId}/manifest.json`);
await manifestPage.evaluate(async () => {
await chrome.runtime.sendMessage({
type: 'open-side-panel',
});
});

await page.bringToFront();
// eslint-disable-next-line playwright/no-networkidle
await page.waitForLoadState('networkidle');

await waitFor(
async () => {
await expect(page.getByTestId('action-button')).toBeVisible();
},
500,
5000,
);
await page.getByTestId('action-button').click();


let popupPage: Page | undefined = undefined;
await waitFor(
async () => {
Expand All @@ -85,7 +87,7 @@ export const test = base.extend<{
await expect(popupPage).toBeDefined();
},
500,
1000,
5000,
);
// eslint-disable-next-line playwright/no-networkidle
await popupPage.waitForLoadState('networkidle');
Expand Down
Loading

0 comments on commit 3968855

Please sign in to comment.