12 lines
471 B
TypeScript
12 lines
471 B
TypeScript
import { test, expect } from '@playwright/experimental-ct-angular';
|
|
import type { HooksConfig } from 'playwright';
|
|
import { InjectComponent } from '@/components/inject.component';
|
|
|
|
test('inject a token', async ({ page, mount }) => {
|
|
const component = await mount<HooksConfig>(InjectComponent, {
|
|
hooksConfig: { injectToken: true },
|
|
});
|
|
await expect(component).toHaveText('has been overwritten');
|
|
await expect(component).not.toHaveText('gets overwritten');
|
|
});
|