test(ct-angular): remove duplicate test
This commit is contained in:
parent
a547da51b8
commit
20e4d8d22a
|
|
@ -1,20 +1,8 @@
|
|||
import { test, expect } from '@playwright/experimental-ct-angular';
|
||||
import { expect, test } from '@playwright/experimental-ct-angular';
|
||||
import type { HooksConfig } from 'playwright';
|
||||
import { InjectComponent } from '@/components/inject.component';
|
||||
import { AppComponent } from '@/app.component';
|
||||
|
||||
|
||||
test('navigate to a page by clicking a link', async ({ page, mount }) => {
|
||||
const component = await mount<HooksConfig>(AppComponent, {
|
||||
hooksConfig: { routing: true },
|
||||
});
|
||||
await expect(component.getByRole('main')).toHaveText('Login');
|
||||
await expect(page).toHaveURL('/');
|
||||
await component.getByRole('link', { name: 'Dashboard' }).click();
|
||||
await expect(component.getByRole('main')).toHaveText('Dashboard');
|
||||
});
|
||||
|
||||
test('inject a token', async ({ page, mount }) => {
|
||||
test('inject a token', async ({ mount }) => {
|
||||
const component = await mount<HooksConfig>(InjectComponent, {
|
||||
hooksConfig: { injectToken: true },
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue