Skip to content

Playwright Test interoperability: Reusing Playwright native locators within SerenityJS? #2155

Answered by jan-molak
jase88 asked this question in How to... ?
Discussion options

You must be logged in to vote

Hey, @jase88!

Sure! Serenity/JS is designed to make it easy for you to enhance existing test suites to improve reporting, introduce the actor model and follow the Screenplay Pattern. I've written a detailed guide on this topic: "Extending Playwright Test with Serenity/JS".

In short, to introduce Serenity/JS to an existing Playwright Test suite, you need to:

- import { describe, it, test } from '@playwright/test'
+ import { describe, it, test } from '@s…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jan-molak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@serenity-js/web Screenplay Pattern APIs for interacting with the Web @serenity-js/playwright @serenity-js/playwright-test Serenity/JS reporter and test APIs for Playwright Test
2 participants