Skip to content

Commit 01682ad

Browse files
committed
fix: rollback vite plugin
1 parent c2a8503 commit 01682ad

File tree

9 files changed

+548
-252124
lines changed

9 files changed

+548
-252124
lines changed

ct-angular/tests/angular-router.spec.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

ct-angular/tests/slots.spec.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@ test('render a default slot', async ({ mount }) => {
1111
await expect(component.getByRole('strong')).toContainText('Main Content');
1212
});
1313

14-
test.fixme('render a component as slot', async ({ mount }) => {
15-
const component = await mount(DefaultSlotComponent, {
16-
slots: {
17-
default: '<button-component title="Submit" />', // component is registered globally in /playwright/index.ts
18-
},
19-
});
20-
await expect(component).toContainText('Submit');
21-
});
22-
2314
test('render a component with multiple slots', async ({ mount }) => {
2415
const component = await mount(DefaultSlotComponent, {
2516
slots: {

ct-angular/tests/update.spec.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,3 @@ test('update event listeners without remounting', async ({ mount }) => {
3030

3131
await expect(component.getByTestId('remount-count')).toContainText('1');
3232
});
33-
34-
test.fixme('update slots without remounting', async ({ mount }) => {
35-
const component = await mount(CounterComponent, {
36-
slots: { default: 'Default Slot' },
37-
});
38-
await expect(component).toContainText('Default Slot');
39-
40-
await component.update({
41-
slots: { main: '<div>Test Slot<div>' },
42-
});
43-
await expect(component).not.toContainText('Default Slot');
44-
await expect(component).toContainText('Test Slot');
45-
46-
await component.update({
47-
slots: { default: 'Default Slot' },
48-
});
49-
await expect(component).toContainText('Default Slot');
50-
51-
await expect(component.locator('#remount-count')).toContainText('1');
52-
});

playwright-ct-angular/.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@
99
!index.js
1010
!hooks.d.ts
1111
!hooks.mjs
12-
!angularVitePlugin.js

0 commit comments

Comments
 (0)