Skip to content
Discussion options

You must be logged in to vote

Hey @netoabel, the 0.1.0 update we released enables running custom playwright code so you can execute arbitrary keypresses in your magnitude tests! docs here: https://docs.magnitude.run/integrations/playwright

Example:

import { test } from 'magnitude-test';

test('my test', async ({ ai, page }) => {
  await ai.step("do something");
  await page.keyboard.press('ArrowLeft');
  await ai.check("some check");
});

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@netoabel
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@netoabel
Comment options

Answer selected by netoabel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants