Skip to content

Commit 1d4eb25

Browse files
authored
test: split grid tests into common and import files (#6564)
1 parent 7223786 commit 1d4eb25

82 files changed

Lines changed: 139 additions & 130 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import '../all-imports.js';
2+
import './accessibility.common.js';

packages/grid/test/accessibility.test.js renamed to packages/grid/test/accessibility.common.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { expect } from '@esm-bundle/chai';
22
import { fixtureSync, nextFrame } from '@vaadin/testing-helpers';
3-
import '../all-imports.js';
43
import { flushGrid } from './helpers.js';
54

65
describe('accessibility', () => {
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import '../all-imports.js';
2+
import './array-data-provider.common.js';

packages/grid/test/array-data-provider.test.js renamed to packages/grid/test/array-data-provider.common.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import { expect } from '@esm-bundle/chai';
22
import { click, fixtureSync, nextFrame } from '@vaadin/testing-helpers';
33
import sinon from 'sinon';
4-
import '../vaadin-grid.js';
5-
import '../vaadin-grid-filter.js';
6-
import '../vaadin-grid-sorter.js';
74
import { flushGrid, getBodyCellContent, getRows } from './helpers.js';
85

96
describe('array data provider', () => {
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import '../vaadin-grid.js';
2+
import './basic.common.js';
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { expect } from '@esm-bundle/chai';
22
import { aTimeout, fixtureSync, oneEvent } from '@vaadin/testing-helpers';
33
import sinon from 'sinon';
4-
import '../vaadin-grid.js';
54
import {
65
flushGrid,
76
getBodyCellContent,
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import '../all-imports.js';
2+
import './column-auto-width.common.js';

packages/grid/test/column-auto-width.test.js renamed to packages/grid/test/column-auto-width.common.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import { expect } from '@esm-bundle/chai';
22
import { fixtureSync, nextFrame, oneEvent } from '@vaadin/testing-helpers';
33
import sinon from 'sinon';
4-
import '../vaadin-grid.js';
5-
import '../vaadin-grid-column-group.js';
6-
import '../vaadin-grid-tree-column.js';
74
import { flushGrid } from './helpers.js';
85

96
describe('column auto-width', () => {
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import '../all-imports.js';
2+
import './column-group.common.js';
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { expect } from '@esm-bundle/chai';
22
import { fixtureSync, nextFrame, nextRender } from '@vaadin/testing-helpers';
33
import sinon from 'sinon';
4-
import '../vaadin-grid.js';
5-
import '../vaadin-grid-column-group.js';
64
import { flushGrid, getContainerCell } from './helpers.js';
75

86
describe('column group', () => {

0 commit comments

Comments
 (0)