playwright/tests/components/ct-vue2-cli/playwright/index.ts
2022-10-18 13:04:54 -07:00

16 lines
394 B
TypeScript

//@ts-check
import '../src/assets/index.css';
import { beforeMount, afterMount } from '@playwright/experimental-ct-vue2/hooks';
export type hooksConfig = {
route: string;
}
beforeMount(async ({ hooksConfig }) => {
console.log(`Before mount: ${JSON.stringify(hooksConfig)}`);
});
afterMount(async ({ instance }) => {
console.log(`After mount el: ${instance.$el.constructor.name}`);
});