playwright/tests/components/ct-vue-cli/playwright/index.js
2022-08-23 11:35:43 -07:00

12 lines
332 B
JavaScript

//@ts-check
import { beforeMount, afterMount } from '@playwright/experimental-ct-vue/hooks';
beforeMount(async ({ app, hooksConfig }) => {
console.log(`Before mount: ${JSON.stringify(hooksConfig)}, app: ${!!app}`);
});
afterMount(async ({ instance }) => {
console.log(`After mount el: ${instance.$el.constructor.name}`);
});