Skip to content

test(extension): Add object registry e2e tests.#555

Merged
grypez merged 3 commits into
mainfrom
grypez/revoke-e2e
Jun 26, 2025
Merged

test(extension): Add object registry e2e tests.#555
grypez merged 3 commits into
mainfrom
grypez/revoke-e2e

Conversation

@grypez

@grypez grypez commented Jun 26, 2025

Copy link
Copy Markdown
Contributor

This PR adds e2e coverage for the object registry, covering the following.

  • sending a message to an object
  • revoking an object

Bonus: forwards command line arguments from yarn test:e2e:ci to the underlying yarn playwright test command.

@grypez grypez marked this pull request as ready for review June 26, 2025 14:39
@grypez grypez requested a review from a team as a code owner June 26, 2025 14:39
Comment on lines +31 to +36
test('should send a message to an object', async () => {
const response = await sendMessage(popupPage, target, method, params);
await expect(response).toContainText(/body(.+):(.+)hello(.+)from(.+)Bob/u);
});

test('should revoke an object', async () => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these could be one test though and you can move the should send a message to a vat from packages/extension/test/e2e/control-panel.test.ts here :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@grypez grypez requested a review from sirtimid June 26, 2025 15:10

@sirtimid sirtimid left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! 👌

@grypez grypez merged commit dd82de0 into main Jun 26, 2025
22 checks passed
@grypez grypez deleted the grypez/revoke-e2e branch June 26, 2025 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants