Skip to content

Commit

Permalink
test: update testing helpers, use browser utils (#3052) (#3053)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Nov 16, 2021
1 parent 38142a3 commit c9f6a1c
Show file tree
Hide file tree
Showing 63 changed files with 66 additions and 68 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@polymer/iron-component-page": "^4.0.1",
"@typescript-eslint/eslint-plugin": "^5.3.1",
"@typescript-eslint/parser": "^5.3.1",
"@vaadin/testing-helpers": "^0.3.1",
"@vaadin/testing-helpers": "^0.3.2",
"@web/dev-server": "^0.1.28",
"@web/rollup-plugin-html": "^1.10.1",
"@web/test-runner": "^0.13.22",
Expand Down
2 changes: 1 addition & 1 deletion packages/accordion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.1"
}
}
2 changes: 1 addition & 1 deletion packages/app-layout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/tabs": "22.0.0-beta2",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.1"
}
}
2 changes: 1 addition & 1 deletion packages/avatar-group/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.1"
}
}
2 changes: 1 addition & 1 deletion packages/avatar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.1"
}
}
2 changes: 1 addition & 1 deletion packages/board/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.1"
}
}
2 changes: 1 addition & 1 deletion packages/button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.4"
}
}
2 changes: 1 addition & 1 deletion packages/charts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.4"
}
}
2 changes: 1 addition & 1 deletion packages/checkbox-group/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.0"
}
}
2 changes: 1 addition & 1 deletion packages/checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.0"
}
}
2 changes: 1 addition & 1 deletion packages/combo-box/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@esm-bundle/chai": "^4.3.4",
"@vaadin/dialog": "22.0.0-beta2",
"@vaadin/polymer-legacy-adapter": "22.0.0-beta2",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"@vaadin/text-field": "22.0.0-beta2",
"lit": "^2.0.0",
"sinon": "^9.2.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/component-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.4"
}
}
2 changes: 1 addition & 1 deletion packages/confirm-dialog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.1"
}
}
2 changes: 1 addition & 1 deletion packages/context-menu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/polymer-legacy-adapter": "22.0.0-beta2",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.1"
}
}
2 changes: 1 addition & 1 deletion packages/context-menu/test/items.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
escKeyDown,
fire,
fixtureSync,
isChrome,
isIOS,
nextFrame,
nextRender,
Expand Down Expand Up @@ -431,7 +432,6 @@ describe('items', () => {
expect(menuComponents()[0].getAttribute('aria-expanded')).to.equal('false');
});

const isChrome = window.chrome || /HeadlessChrome/.test(navigator.userAgent);
(isChrome ? describe : describe.skip)('scrolling', () => {
let rootOverlay, subOverlay1, subOverlay2, scrollElm;

Expand Down
2 changes: 1 addition & 1 deletion packages/cookie-consent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.3.0"
"@vaadin/testing-helpers": "^0.3.2"
}
}
2 changes: 1 addition & 1 deletion packages/crud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/polymer-legacy-adapter": "22.0.0-beta2",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.1"
}
}
2 changes: 1 addition & 1 deletion packages/custom-field/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@vaadin/password-field": "22.0.0-beta2",
"@vaadin/polymer-legacy-adapter": "22.0.0-beta2",
"@vaadin/select": "22.0.0-beta2",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"@vaadin/text-area": "22.0.0-beta2",
"@vaadin/text-field": "22.0.0-beta2",
"@vaadin/time-picker": "22.0.0-beta2",
Expand Down
3 changes: 1 addition & 2 deletions packages/custom-field/test/keyboard.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect } from '@esm-bundle/chai';
import { aTimeout, fixtureSync, tabKeyDown } from '@vaadin/testing-helpers';
import { aTimeout, fixtureSync, isChrome, tabKeyDown } from '@vaadin/testing-helpers';
import sinon from 'sinon';
import '../src/vaadin-custom-field.js';
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
Expand Down Expand Up @@ -94,7 +94,6 @@ describe('keyboard navigation', () => {
customField = wrapper.$.field;
});

const isChrome = window.chrome || /HeadlessChrome/.test(window.navigator.userAgent);
// Skip this test on any platform apart from Chrome
(isChrome ? it : it.skip)('should properly set tabindex on Shift Tab for wrapping slots', async () => {
for (let i = 2; i > -1; i--) {
Expand Down
2 changes: 1 addition & 1 deletion packages/date-picker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@esm-bundle/chai": "^4.3.4",
"@vaadin/dialog": "22.0.0-beta2",
"@vaadin/polymer-legacy-adapter": "22.0.0-beta2",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.0"
}
}
2 changes: 1 addition & 1 deletion packages/date-time-picker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.1"
}
}
2 changes: 1 addition & 1 deletion packages/details/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.1"
}
}
2 changes: 1 addition & 1 deletion packages/dialog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/polymer-legacy-adapter": "22.0.0-beta2",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"@vaadin/text-area": "22.0.0-beta2",
"sinon": "^9.2.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/email-field/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.1"
}
}
2 changes: 1 addition & 1 deletion packages/field-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.1"
}
}
2 changes: 1 addition & 1 deletion packages/form-layout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"@vaadin/text-field": "22.0.0-beta2",
"sinon": "^9.2.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/grid-pro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@vaadin/date-picker": "22.0.0-beta2",
"@vaadin/dialog": "22.0.0-beta2",
"@vaadin/polymer-legacy-adapter": "22.0.0-beta2",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"lit": "^2.0.0",
"sinon": "^9.2.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/grid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/polymer-legacy-adapter": "22.0.0-beta2",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"lit": "^2.0.0",
"sinon": "^9.2.0"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/horizontal-layout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.3.0"
"@vaadin/testing-helpers": "^0.3.2"
}
}
2 changes: 1 addition & 1 deletion packages/icon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
"lit": "^2.0.0"
},
"devDependencies": {
"@vaadin/testing-helpers": "^0.3.0"
"@vaadin/testing-helpers": "^0.3.2"
}
}
2 changes: 1 addition & 1 deletion packages/input-container/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@
"@esm-bundle/chai": "^4.3.4",
"@vaadin/icon": "22.0.0-beta2",
"@vaadin/icons": "22.0.0-beta2",
"@vaadin/testing-helpers": "^0.3.0"
"@vaadin/testing-helpers": "^0.3.2"
}
}
2 changes: 1 addition & 1 deletion packages/integer-field/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.1"
}
}
2 changes: 1 addition & 1 deletion packages/item/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.1"
}
}
2 changes: 1 addition & 1 deletion packages/list-box/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.1"
}
}
2 changes: 1 addition & 1 deletion packages/login/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.1"
}
}
2 changes: 1 addition & 1 deletion packages/menu-bar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/icon": "22.0.0-beta2",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.1"
}
}
2 changes: 1 addition & 1 deletion packages/message-input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.4"
}
}
2 changes: 1 addition & 1 deletion packages/message-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.4"
}
}
2 changes: 1 addition & 1 deletion packages/notification/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@esm-bundle/chai": "^4.3.4",
"@vaadin/button": "22.0.0-beta2",
"@vaadin/polymer-legacy-adapter": "22.0.0-beta2",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.1"
}
}
2 changes: 1 addition & 1 deletion packages/number-field/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.1"
}
}
2 changes: 1 addition & 1 deletion packages/password-field/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.1"
}
}
2 changes: 1 addition & 1 deletion packages/polymer-legacy-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@vaadin/checkbox": "22.0.0-beta2",
"@vaadin/grid": "22.0.0-beta2",
"@vaadin/grid-pro": "22.0.0-beta2",
"@vaadin/testing-helpers": "^0.3.0",
"@vaadin/testing-helpers": "^0.3.2",
"sinon": "^9.2.4"
}
}
2 changes: 1 addition & 1 deletion packages/progress-bar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4",
"@vaadin/testing-helpers": "^0.3.0"
"@vaadin/testing-helpers": "^0.3.2"
}
}
Loading

0 comments on commit c9f6a1c

Please sign in to comment.