import { test as test1, expect as expect1, mergeTests, mergeExpects } from '@playwright/test'; import { test as test2, expect as expect2 } from 'playwright-test-plugin'; const test = mergeTests(test1, test2); const expect = mergeExpects(expect1, expect2); test('sample test', async ({ page, plugin }) => { await page.setContent(`
hello
world`); expect(await page.textContent('span')).toBe('world'); console.log(`plugin value: ${plugin}`); expect(plugin).toBe('hello from plugin'); await page.setContent('
hello world
'); await expect(page).toContainText('hello'); });