Skip to content

Commit dfe6aa5

Browse files
committed
test: replace TestsModule with GroupComponent in Cypress tests and remove TestsModule
1 parent 4b72acc commit dfe6aa5

File tree

5 files changed

+10
-37
lines changed

5 files changed

+10
-37
lines changed

cypress/group.cy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { TestsModule } from 'src/app/tests/tests.module';
1+
import { GroupComponent } from "src/app/tests/group.component";
22

33
describe('group', async () => {
44
beforeEach(() => {
5-
cy.mount(`<app-group></app-group>`, { imports: [TestsModule] });
5+
cy.mount(`<app-group></app-group>`, { imports: [GroupComponent] });
66
});
77

88
it('groups are shown/hidden based on item matches', () => {

cypress/item.cy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { TestsModule } from 'src/app/tests/tests.module';
1+
import { GroupComponent } from "src/app/tests/group.component";
22

33
describe('item', () => {
44
beforeEach(() => {
5-
cy.mount(`<app-item></app-item>`, { imports: [TestsModule] });
5+
cy.mount(`<app-item></app-item>`, { imports: [GroupComponent] });
66
});
77

88
it('mounted item matches search', () => {

cypress/keybindings.cy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { TestsModule } from 'src/app/tests/tests.module';
1+
import { GroupComponent } from "src/app/tests/group.component";
22

33
describe('arrow keybinds', async () => {
44
beforeEach(() => {
5-
cy.mount('<app-keybindings></app-keybindings>', { imports: [TestsModule] });
5+
cy.mount('<app-keybindings></app-keybindings>', { imports: [GroupComponent] });
66
});
77

88
test('arrow up/down changes selected item', () => {

cypress/props.cy.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import { TestsModule } from 'src/app/tests/tests.module';
1+
import { GroupComponent } from "src/app/tests/group.component";
22

33
describe('props', () => {
44
it('results match against custom filter', async () => {
55
cy.mount("<app-props [customFilter]='true'></app-props>", {
6-
imports: [TestsModule],
6+
imports: [GroupComponent],
77
});
88
cy.get(`[cmdkinput]`).type(`ant`);
99
cy.get(`[cmdkitem]`).should('have.data', 'value', 'ant');
1010
});
1111

1212
it('controlled value', () => {
1313
cy.mount('<app-props></app-props>', {
14-
imports: [TestsModule],
14+
imports: [GroupComponent],
1515
});
1616
cy.get(`[cmdkitem][aria-selected="true"]`).should(
1717
'have.data',
@@ -28,7 +28,7 @@ describe('props', () => {
2828

2929
it('controlled search', () => {
3030
cy.mount('<app-props></app-props>', {
31-
imports: [TestsModule],
31+
imports: [GroupComponent],
3232
});
3333
cy.get(`[cmdkitem][aria-selected="true"]`).should(
3434
'have.data',

src/app/tests/tests.module.ts

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

0 commit comments

Comments
 (0)