test(ct-angular): remove duplicate test

This commit is contained in:
Younes Jaaidi 2024-03-27 22:53:26 +01:00
parent a547da51b8
commit 20e4d8d22a
No known key found for this signature in database
GPG key ID: 3126C5717BDF3241

View file

@ -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 },
});