mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
15 lines
382 B
TypeScript
15 lines
382 B
TypeScript
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}`);
|
|
});
|