← Back to Discord Forum

How to invoke a fixture from another fixture?

It is possible to have fixture fromFirstPageToBaseUrl invoke the fixture setFromStartApis?

const baseTest = test.extend({
      setFromStartApis: async ({ page }) => {
        await setClientsApiMock(page);
        await setReconcileApiMock(page);
      fromFirstPageToBaseUrl: async ({ page, setFromStartApis }, use) => {
        await page.goto('/');
describe.only('When using the portal', function() {
    it('reconciler should be accessable from the portal', async ({ fromFirstPageToBaseUrl   }) => {                                 
      await fromFirstPageToBaseUrl.getByText('GO TO PATIENT RECONCILIATION').click();

This thread is trying to answer question "How to invoke a fixture from another fixture?"

1 reply

I believe they're working on this feature

AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.