From cef3cf68a8a7bb853345b785d2aa741908667c89 Mon Sep 17 00:00:00 2001 From: Andrei Kharitonov Date: Tue, 17 Nov 2026 15:38:38 +0100 Subject: [PATCH 1/5] Migrate SelectBox testcafe tests to playwright --- e2e/playwright/README.md | 39 ++++ .../models/internal/dropDownList.ts | 53 +++++ e2e/playwright/models/list.ts | 29 +++ e2e/playwright/models/selectBox.ts | 7 + e2e/playwright/models/textBox.ts | 10 + .../editors/selectBox/actionButton.spec.ts | 139 +++++++++++++ .../tests/editors/selectBox/common.spec.ts | 103 ++++++++++ ...opDown Button (fluent-next.blue.light).png | Bin 0 -> 1226 bytes ...ze DropDown Button (fluent.blue.light).png | Bin 0 -> 1235 bytes ...ctBox no data (fluent-next.blue.light).png | Bin 0 -> 5434 bytes .../SelectBox no data (fluent.blue.light).png | Bin 0 -> 5480 bytes ...e items count (fluent-next.blue.light).png | Bin 0 -> 4192 bytes ...source items count (fluent.blue.light).png | Bin 0 -> 4294 bytes ...e items count (fluent-next.blue.light).png | Bin 0 -> 4192 bytes ...source items count (fluent.blue.light).png | Bin 0 -> 4294 bytes ...e items count (fluent-next.blue.light).png | Bin 0 -> 4192 bytes ...source items count (fluent.blue.light).png | Bin 0 -> 4294 bytes ...s not choosen (fluent-next.blue.light).png | Bin 0 -> 2377 bytes ...lue is not choosen (fluent.blue.light).png | Bin 0 -> 2406 bytes ...ast page load (fluent-next.blue.light).png | Bin 0 -> 4442 bytes ...ter last page load (fluent.blue.light).png | Bin 0 -> 4526 bytes ...ngMode=filled (fluent-next.blue.light).png | Bin 0 -> 6970 bytes ...stylingMode=filled (fluent.blue.light).png | Bin 0 -> 7012 bytes ...Mode=outlined (fluent-next.blue.light).png | Bin 0 -> 7149 bytes ...ylingMode=outlined (fluent.blue.light).png | Bin 0 -> 7218 bytes ...de=underlined (fluent-next.blue.light).png | Bin 0 -> 6773 bytes ...ingMode=underlined (fluent.blue.light).png | Bin 0 -> 6866 bytes ...ngMode=filled (fluent-next.blue.light).png | Bin 0 -> 8103 bytes ...stylingMode=filled (fluent.blue.light).png | Bin 0 -> 8389 bytes ...Mode=outlined (fluent-next.blue.light).png | Bin 0 -> 8270 bytes ...ylingMode=outlined (fluent.blue.light).png | Bin 0 -> 8541 bytes ...de=underlined (fluent-next.blue.light).png | Bin 0 -> 8059 bytes ...ingMode=underlined (fluent.blue.light).png | Bin 0 -> 8434 bytes ...ngMode=filled (fluent-next.blue.light).png | Bin 0 -> 7038 bytes ...stylingMode=filled (fluent.blue.light).png | Bin 0 -> 7143 bytes ...Mode=outlined (fluent-next.blue.light).png | Bin 0 -> 7625 bytes ...ylingMode=outlined (fluent.blue.light).png | Bin 0 -> 7690 bytes ...de=underlined (fluent-next.blue.light).png | Bin 0 -> 6801 bytes ...ingMode=underlined (fluent.blue.light).png | Bin 0 -> 6903 bytes .../tests/editors/selectBox/label.spec.ts | 45 ++++ .../tests/editors/selectBox/popup.spec.ts | 82 ++++++++ .../selectBox/toolbarIntegration.spec.ts | 36 ++++ .../tests/editors/selectBox/actionButton.ts | 193 ------------------ .../tests/editors/selectBox/common.ts | 120 ----------- ...opDown Button (fluent-next.blue.light).png | Bin 1417 -> 0 bytes ...ze DropDown Button (fluent.blue.light).png | Bin 1408 -> 0 bytes ...ctBox no data (fluent-next.blue.light).png | Bin 7578 -> 0 bytes .../SelectBox no data (fluent.blue.light).png | Bin 7561 -> 0 bytes ...e items count (fluent-next.blue.light).png | Bin 5686 -> 0 bytes ...source items count (fluent.blue.light).png | Bin 5656 -> 0 bytes ...e items count (fluent-next.blue.light).png | Bin 5686 -> 0 bytes ...source items count (fluent.blue.light).png | Bin 5656 -> 0 bytes ...e items count (fluent-next.blue.light).png | Bin 5686 -> 0 bytes ...source items count (fluent.blue.light).png | Bin 5656 -> 0 bytes ...s not choosen (fluent-next.blue.light).png | Bin 2797 -> 0 bytes ...lue is not choosen (fluent.blue.light).png | Bin 2828 -> 0 bytes ...ast page load (fluent-next.blue.light).png | Bin 6009 -> 0 bytes ...ter last page load (fluent.blue.light).png | Bin 5979 -> 0 bytes ...ngMode=filled (fluent-next.blue.light).png | Bin 11652 -> 0 bytes ...stylingMode=filled (fluent.blue.light).png | Bin 11567 -> 0 bytes ...Mode=outlined (fluent-next.blue.light).png | Bin 11844 -> 0 bytes ...ylingMode=outlined (fluent.blue.light).png | Bin 11832 -> 0 bytes ...de=underlined (fluent-next.blue.light).png | Bin 11928 -> 0 bytes ...ingMode=underlined (fluent.blue.light).png | Bin 11904 -> 0 bytes ...ngMode=filled (fluent-next.blue.light).png | Bin 13028 -> 0 bytes ...stylingMode=filled (fluent.blue.light).png | Bin 13118 -> 0 bytes ...Mode=outlined (fluent-next.blue.light).png | Bin 13162 -> 0 bytes ...ylingMode=outlined (fluent.blue.light).png | Bin 13388 -> 0 bytes ...de=underlined (fluent-next.blue.light).png | Bin 13039 -> 0 bytes ...ingMode=underlined (fluent.blue.light).png | Bin 13223 -> 0 bytes ...ngMode=filled (fluent-next.blue.light).png | Bin 12345 -> 0 bytes ...stylingMode=filled (fluent.blue.light).png | Bin 12221 -> 0 bytes ...Mode=outlined (fluent-next.blue.light).png | Bin 12515 -> 0 bytes ...ylingMode=outlined (fluent.blue.light).png | Bin 12508 -> 0 bytes ...de=underlined (fluent-next.blue.light).png | Bin 12789 -> 0 bytes ...ingMode=underlined (fluent.blue.light).png | Bin 12765 -> 0 bytes .../tests/editors/selectBox/label.ts | 57 ------ .../tests/editors/selectBox/popup.ts | 145 ------------- .../editors/selectBox/toolbarIntegration.ts | 36 ---- 79 files changed, 543 insertions(+), 551 deletions(-) create mode 100644 e2e/playwright/models/internal/dropDownList.ts create mode 100644 e2e/playwright/models/list.ts create mode 100644 e2e/playwright/models/selectBox.ts create mode 100644 e2e/playwright/tests/editors/selectBox/actionButton.spec.ts create mode 100644 e2e/playwright/tests/editors/selectBox/common.spec.ts create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox Customize DropDown Button (fluent-next.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox Customize DropDown Button (fluent.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox no data (fluent-next.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox no data (fluent.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox pagesize equal datasource items count (fluent-next.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox pagesize equal datasource items count (fluent.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox pagesize less datasource items count (fluent-next.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox pagesize less datasource items count (fluent.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox pagesize more datasource items count (fluent-next.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox pagesize more datasource items count (fluent.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox placeholder after items change if value is not choosen (fluent-next.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox placeholder after items change if value is not choosen (fluent.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox popup height after last page load (fluent-next.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox popup height after last page load (fluent.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox with label-labelMode=floating-stylingMode=filled (fluent-next.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox with label-labelMode=floating-stylingMode=filled (fluent.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox with label-labelMode=floating-stylingMode=outlined (fluent-next.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox with label-labelMode=floating-stylingMode=outlined (fluent.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox with label-labelMode=floating-stylingMode=underlined (fluent-next.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox with label-labelMode=floating-stylingMode=underlined (fluent.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox with label-labelMode=outside-stylingMode=filled (fluent-next.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox with label-labelMode=outside-stylingMode=filled (fluent.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox with label-labelMode=outside-stylingMode=outlined (fluent-next.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox with label-labelMode=outside-stylingMode=outlined (fluent.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox with label-labelMode=outside-stylingMode=underlined (fluent-next.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox with label-labelMode=outside-stylingMode=underlined (fluent.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox with label-labelMode=static-stylingMode=filled (fluent-next.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox with label-labelMode=static-stylingMode=filled (fluent.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox with label-labelMode=static-stylingMode=outlined (fluent-next.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox with label-labelMode=static-stylingMode=outlined (fluent.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox with label-labelMode=static-stylingMode=underlined (fluent-next.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/etalons/SelectBox with label-labelMode=static-stylingMode=underlined (fluent.blue.light).png create mode 100644 e2e/playwright/tests/editors/selectBox/label.spec.ts create mode 100644 e2e/playwright/tests/editors/selectBox/popup.spec.ts create mode 100644 e2e/playwright/tests/editors/selectBox/toolbarIntegration.spec.ts delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/actionButton.ts delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/common.ts delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox Customize DropDown Button (fluent-next.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox Customize DropDown Button (fluent.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox no data (fluent-next.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox no data (fluent.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox pagesize equal datasource items count (fluent-next.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox pagesize equal datasource items count (fluent.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox pagesize less datasource items count (fluent-next.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox pagesize less datasource items count (fluent.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox pagesize more datasource items count (fluent-next.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox pagesize more datasource items count (fluent.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox placeholder after items change if value is not choosen (fluent-next.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox placeholder after items change if value is not choosen (fluent.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox popup height after last page load (fluent-next.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox popup height after last page load (fluent.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox with label-labelMode=floating-stylingMode=filled (fluent-next.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox with label-labelMode=floating-stylingMode=filled (fluent.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox with label-labelMode=floating-stylingMode=outlined (fluent-next.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox with label-labelMode=floating-stylingMode=outlined (fluent.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox with label-labelMode=floating-stylingMode=underlined (fluent-next.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox with label-labelMode=floating-stylingMode=underlined (fluent.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox with label-labelMode=outside-stylingMode=filled (fluent-next.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox with label-labelMode=outside-stylingMode=filled (fluent.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox with label-labelMode=outside-stylingMode=outlined (fluent-next.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox with label-labelMode=outside-stylingMode=outlined (fluent.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox with label-labelMode=outside-stylingMode=underlined (fluent-next.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox with label-labelMode=outside-stylingMode=underlined (fluent.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox with label-labelMode=static-stylingMode=filled (fluent-next.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox with label-labelMode=static-stylingMode=filled (fluent.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox with label-labelMode=static-stylingMode=outlined (fluent-next.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox with label-labelMode=static-stylingMode=outlined (fluent.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox with label-labelMode=static-stylingMode=underlined (fluent-next.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/etalons/SelectBox with label-labelMode=static-stylingMode=underlined (fluent.blue.light).png delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/label.ts delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/popup.ts delete mode 100644 e2e/testcafe-devextreme/tests/editors/selectBox/toolbarIntegration.ts diff --git a/e2e/playwright/README.md b/e2e/playwright/README.md index 5891f87c6999..868c953ff829 100644 --- a/e2e/playwright/README.md +++ b/e2e/playwright/README.md @@ -57,6 +57,41 @@ test together with its etalon. The two sets must never cover the same case at on left behind gets updated by whoever touches the component next and starts asserting a render nobody checks. +### Record etalons on a Mac + +The image is `linux/amd64`, the platform of the CI agent. On Apple Silicon it runs through Rosetta; +under QEMU emulation Chrome is several times slower. [Colima](https://github.com/abiosoft/colima) +gives the `docker` CLI a free runtime that uses Rosetta: + +```bash +softwareupdate --install-rosetta --agree-to-license +brew install colima docker docker-buildx +colima start --vm-type vz --vz-rosetta --cpu 4 --memory 8 +docker run --rm --platform linux/amd64 ubuntu:24.04 uname -m # prints x86_64 +``` + +4 CPUs and 8 GB are enough for a component folder: `docker/run.sh` takes half the cores, so two +workers. Give the VM more for a larger run (`colima stop`, then `colima start --cpu 8 --memory 12`). +After a reboot, `colima start` brings it back with the same settings. + +The container uses the host's `node_modules` and DevExtreme build, so build first and rebuild after +a source change. Then, from `e2e/playwright`, record and verify the etalons of the folder in both +themes the CI jobs run: + +```bash +pnpm exec nx build devextreme-scss # from the repository root +pnpm exec nx build devextreme -c testing + +docker/run.sh --update-snapshots tests/editors/selectBox/ +THEME=fluent-next.blue.light docker/run.sh --update-snapshots tests/editors/selectBox/ + +docker/run.sh tests/editors/selectBox/ +THEME=fluent-next.blue.light docker/run.sh tests/editors/selectBox/ +``` + +The first run builds the image and takes a few minutes. Look through the new files before +committing them, as with etalons from CI. + ### Etalons from CI Without a container, CI records the etalons. A test whose etalon does not exist fails, and @@ -204,3 +239,7 @@ relied on it needs the target made reachable, not the check switched off. **Page errors.** A test fails on an uncaught error in the page, as it did in TestCafe. A test whose TestCafe version ended with `expect(true).ok()` checks exactly that and needs no assertion. + +**Old models.** A model in `packages/testcafe-models` that the ported tests used goes in the same +PR, but only after a search proves nothing else uses it: grep all of `e2e/` and `packages/` for its +import path, since other tests and other models import models too. A model still in use stays. diff --git a/e2e/playwright/models/internal/dropDownList.ts b/e2e/playwright/models/internal/dropDownList.ts new file mode 100644 index 000000000000..6919418848be --- /dev/null +++ b/e2e/playwright/models/internal/dropDownList.ts @@ -0,0 +1,53 @@ +import type { Locator, Page } from '@playwright/test'; +import { expect } from '@playwright/test'; +import List from '../list'; +import TextBox from '../textBox'; + +const ATTR = { + popupId: 'aria-owns', +}; + +const CLASS = { + dropDownButton: 'dx-dropdowneditor-button', + invisible: 'dx-state-invisible', + list: 'dx-list', +}; + +export default abstract class DropDownList extends TextBox { + public readonly dropDownButton: Locator; + + constructor(page: Page, selector: Locator | string) { + super(page, selector); + + this.dropDownButton = this.element.locator(`.${CLASS.dropDownButton}`); + } + + // The input names the popup content in "aria-owns" once the popup is rendered; the content + // itself sits in an overlay wrapper elsewhere in the body. + public isOpened(): Promise { + return this.input.evaluate((input, { attr, invisible }) => { + const popupId = input.getAttribute(attr); + const popup = popupId ? document.getElementById(popupId) : null; + + return !!popup && !popup.parentElement?.classList.contains(invisible); + }, { attr: ATTR.popupId, invisible: CLASS.invisible }); + } + + public async getPopup(): Promise { + await expect(this.input).toHaveAttribute(ATTR.popupId, /./); + + const popupId = await this.input.getAttribute(ATTR.popupId); + + return this.page.locator(`#${popupId}`); + } + + public async getList(): Promise { + await expect.poll(() => this.isOpened()).toBe(true); + + return new List(this.page, (await this.getPopup()).locator(`.${CLASS.list}`)); + } + + public async open(): Promise { + await this.invoke('open'); + } +} diff --git a/e2e/playwright/models/list.ts b/e2e/playwright/models/list.ts new file mode 100644 index 000000000000..d1a06f58ddd8 --- /dev/null +++ b/e2e/playwright/models/list.ts @@ -0,0 +1,29 @@ +import type { Locator, Page } from '@playwright/test'; +import type { WidgetName } from './types'; +import Widget from './internal/widget'; + +const CLASS = { + item: 'dx-list-item', + nestedItem: 'nested-item', +}; + +export default class List extends Widget { + public readonly items: Locator; + + constructor(page: Page, selector: Locator | string) { + super(page, selector); + + this.items = this.element.locator(`.${CLASS.item}:not(.${CLASS.nestedItem})`); + } + + // eslint-disable-next-line class-methods-use-this + public getName(): WidgetName { return 'dxList'; } + + public getItem(index = 0): Locator { + return this.items.nth(index); + } + + public async scrollTo(value: number): Promise { + await this.invoke('scrollTo', value); + } +} diff --git a/e2e/playwright/models/selectBox.ts b/e2e/playwright/models/selectBox.ts new file mode 100644 index 000000000000..fa44d41b035a --- /dev/null +++ b/e2e/playwright/models/selectBox.ts @@ -0,0 +1,7 @@ +import type { WidgetName } from './types'; +import DropDownList from './internal/dropDownList'; + +export default class SelectBox extends DropDownList { + // eslint-disable-next-line class-methods-use-this + public getName(): WidgetName { return 'dxSelectBox'; } +} diff --git a/e2e/playwright/models/textBox.ts b/e2e/playwright/models/textBox.ts index c53a59c206ca..5b351127e5c6 100644 --- a/e2e/playwright/models/textBox.ts +++ b/e2e/playwright/models/textBox.ts @@ -1,10 +1,13 @@ import type { Locator, Page } from '@playwright/test'; import type { WidgetName } from './types'; import Widget from './internal/widget'; +import Button from './button'; const CLASS = { input: 'dx-texteditor-input', label: 'dx-label', + buttonsContainer: 'dx-texteditor-buttons-container', + button: 'dx-button', }; export default class TextBox extends Widget { @@ -19,6 +22,13 @@ export default class TextBox extends Widget { // eslint-disable-next-line class-methods-use-this public getName(): WidgetName { return 'dxTextBox'; } + public getButton(index = 0): Button { + return new Button( + this.page, + this.element.locator(`.${CLASS.buttonsContainer} > .${CLASS.button}`).nth(index), + ); + } + public getLabel(): Locator { return this.element.locator(`.${CLASS.label}`); } diff --git a/e2e/playwright/tests/editors/selectBox/actionButton.spec.ts b/e2e/playwright/tests/editors/selectBox/actionButton.spec.ts new file mode 100644 index 000000000000..0656143a05f0 --- /dev/null +++ b/e2e/playwright/tests/editors/selectBox/actionButton.spec.ts @@ -0,0 +1,139 @@ +import type { Page } from '@playwright/test'; +import { expect, test } from '../../../fixtures'; +import { createWidget } from '../../../helpers/createWidget'; +import { appendElementTo } from '../../../helpers/domUtils'; +import { testScreenshot } from '../../../helpers/screenshots'; +import SelectBox from '../../../models/selectBox'; + +const FOCUSED_STATE_CLASS = 'dx-state-focused'; + +interface ActionButtonOptions { + refocus?: boolean; + type?: string; + disabled?: boolean; +} + +const setActionButton = async ( + page: Page, + { refocus = false, ...buttonOptions }: ActionButtonOptions = {}, +): Promise => page.evaluate(({ shouldRefocus, options }) => { + const selectBox = ($('#container') as any).dxSelectBox('instance'); + + selectBox.option('buttons', [{ + name: 'test', + options: { + icon: 'home', + ...options, + onClick: () => { + selectBox.option('value', 'item2'); + + if (shouldRefocus) { + // The editor rerenders its input. + selectBox.focus(); + } + }, + }, + }]); +}, { shouldRefocus: refocus, options: buttonOptions }); + +test.describe('SelectBox', () => { + test('Click on action button should correctly work with SelectBox containing the field template (T811890)', async ({ page }) => { + await createWidget(page, 'dxSelectBox', () => ({ + items: ['item1', 'item2'], + fieldTemplate: (value) => ($('
') as any).dxTextBox({ value }), + })); + + const selectBox = new SelectBox(page, '#container'); + + await setActionButton(page, { refocus: true }); + + await selectBox.element.click(); + await page.keyboard.press('Alt+ArrowUp'); + await selectBox.expectFocused(); + await expect.poll(() => selectBox.isOpened()).toBe(false); + + await selectBox.getButton(0).element.click(); + await selectBox.expectFocused(); + await expect(selectBox.input).toHaveValue('item2'); + }); + + test('Click on action button after typing should correctly work with SelectBox containing the field template (T811890)', async ({ page }) => { + await createWidget(page, 'dxSelectBox', () => ({ + items: ['item1', 'item2'], + fieldTemplate: (value) => ($('
') as any).dxTextBox({ value }), + })); + + const selectBox = new SelectBox(page, '#container'); + + await setActionButton(page, { refocus: true }); + + await selectBox.element.click(); + await page.keyboard.press('Alt+ArrowUp'); + await selectBox.expectFocused(); + await expect.poll(() => selectBox.isOpened()).toBe(false); + + await selectBox.input.pressSequentially('tt'); + await selectBox.getButton(0).element.click(); + await selectBox.expectFocused(); + await expect(selectBox.input).toHaveValue('item2'); + }); + + test('editor can be focused out after click on action button', async ({ page }) => { + await createWidget(page, 'dxSelectBox', { + items: ['item1', 'item2'], + }); + + const selectBox = new SelectBox(page, '#container'); + + await setActionButton(page); + + await selectBox.element.click(); + await selectBox.expectFocused(); + + await selectBox.getButton(0).element.click(); + await selectBox.expectFocused(); + + await page.keyboard.press('Tab'); + + if (await selectBox.hasClass(FOCUSED_STATE_CLASS)) { + await page.keyboard.press('Tab'); + } + + await selectBox.expectFocused(false); + }); + + test('selectbox should not be opened after click on disabled action button (T1117453)', async ({ page }) => { + await createWidget(page, 'dxSelectBox', { + items: ['item1', 'item2'], + value: 'item1', + }); + + const selectBox = new SelectBox(page, '#container'); + + await setActionButton(page, { type: 'default', disabled: true }); + + // The button is aria-disabled, and a locator click waits for it to become enabled. A user + // clicks it anyway: the mouse goes to the point where the button is. + const box = await selectBox.getButton(0).element.boundingBox(); + + expect(box).not.toBeNull(); + await page.mouse.click(box!.x + box!.width / 2, box!.y + box!.height / 2); + + await selectBox.expectFocused(false); + await expect.poll(() => selectBox.isOpened()).toBe(false); + await expect(selectBox.input).toHaveValue('item1'); + }); + + test('SelectBox: positioning content in the custom dropdown button', async ({ page }) => { + await appendElementTo(page, '#container', 'div', 'selectBox'); + await createWidget(page, 'dxSelectBox', () => ({ + items: ['item1', 'item2'], + value: 'item1', + dropDownButtonTemplate() { + return 'X'; + }, + }), '#container'); + + await testScreenshot(page, 'SelectBox Customize DropDown Button.png', { element: '#container' }); + }); +}); diff --git a/e2e/playwright/tests/editors/selectBox/common.spec.ts b/e2e/playwright/tests/editors/selectBox/common.spec.ts new file mode 100644 index 000000000000..23fd8af4b0e4 --- /dev/null +++ b/e2e/playwright/tests/editors/selectBox/common.spec.ts @@ -0,0 +1,103 @@ +import type { Page } from '@playwright/test'; +import { expect, test } from '../../../fixtures'; +import { createWidget } from '../../../helpers/createWidget'; +import { appendElementTo, setStyleAttribute } from '../../../helpers/domUtils'; +import { testScreenshot } from '../../../helpers/screenshots'; +import SelectBox from '../../../models/selectBox'; + +const isDataSourceLoading = (page: Page): Promise => page.evaluate( + () => ($('#selectBox') as any).dxSelectBox('instance').getDataSource().isLoading(), +); + +test.describe('SelectBox placeholder', () => { + test('Placeholder is visible after items option change when value is not chosen (T1099804)', async ({ page }) => { + await appendElementTo(page, '#container', 'div', 'selectBox'); + await setStyleAttribute(page, '#container', 'box-sizing: border-box; width: 300px; height: 100px; padding: 8px;'); + await createWidget(page, 'dxSelectBox', { + width: '100%', + placeholder: 'Choose a value', + }, '#selectBox'); + + const selectBox = new SelectBox(page, '#selectBox'); + + await selectBox.option('items', [1, 2, 3]); + await testScreenshot(page, 'SelectBox placeholder after items change if value is not choosen.png', { element: '#container' }); + }); + + test('Pages should be loaded consistently after closing the dropdown popup and filtering the data (T1274576)', async ({ page }) => { + await appendElementTo(page, '#container', 'div', 'selectBox'); + await setStyleAttribute(page, '#container', 'box-sizing: border-box; width: 300px; height: 100px; padding: 8px;'); + await createWidget(page, 'dxSelectBox', () => { + const data: { id: number; text: string; anotherId: number }[] = []; + + for (let index = 0; index < 100; index += 1) { + data.push({ + id: index + 1, + text: `item ${index + 1}`, + anotherId: index % 2 === 0 ? 1 : 2, + }); + } + + const sampleAPI = new (window as any).DevExpress.data.ArrayStore({ key: 'id', data }); + const store = new (window as any).DevExpress.data.CustomStore({ + key: 'id', + load(loadOptions) { + return new Promise((resolve) => { + // The store answers late, like a server; the test waits for the load to finish. + // eslint-disable-next-line no-restricted-syntax + setTimeout(() => { + sampleAPI.load(loadOptions).done((items) => { + resolve(items); + }); + }, 100); + }); + }, + totalCount(loadOptions) { + return sampleAPI.totalCount(loadOptions); + }, + byKey(key) { + return sampleAPI.byKey(key); + }, + }); + + return { + dataSource: { + store, + paginate: true, + pageSize: 6, + }, + valueExpr: 'id', + displayExpr: 'text', + }; + }, '#selectBox'); + + const selectBox = new SelectBox(page, '#selectBox'); + + await selectBox.option('opened', true); + + const list = await selectBox.getList(); + + await expect(list.items).toHaveCount(12); + await expect(list.getItem(0)).toHaveText('item 1'); + await expect(list.getItem(11)).toHaveText('item 12'); + + await list.scrollTo(50); + await expect.poll(() => isDataSourceLoading(page)).toBe(false); + + await page.locator('body').click(); + + await page.evaluate(() => { + const dataSource = ($('#selectBox') as any).dxSelectBox('instance').getDataSource(); + + dataSource.filter(['anotherId', '=', 2]); + dataSource.load(); + }); + await expect.poll(() => isDataSourceLoading(page)).toBe(false); + + await selectBox.option('opened', true); + + await expect(list.items).toHaveCount(12); + await expect(list.getItem(0)).toHaveText('item 2'); + await expect(list.getItem(11)).toHaveText('item 24'); + }); +}); diff --git a/e2e/playwright/tests/editors/selectBox/etalons/SelectBox Customize DropDown Button (fluent-next.blue.light).png b/e2e/playwright/tests/editors/selectBox/etalons/SelectBox Customize DropDown Button (fluent-next.blue.light).png new file mode 100644 index 0000000000000000000000000000000000000000..670217f09f4caeeeeed651e0458f6146faa21f21 GIT binary patch literal 1226 zcmXYxc~sI_6vuysmYP~)lS}1N&cTygn3`+H796!PunAkttr}BLM<=&HLD3RVn1;z1 zDG2Jgqz*bx$!02JlO95*AzU)k6w^s@Arx{$hM&$q@4olF%lVx9-hIRnM1YaOeggmi zjDiB;KLUVGg?4YFw_Uq7{6(?R3iu%SDHMh_JK_=?mVS``#qacddoA&3f+W_PpOy`! zyq&~A&vE^ITK?3DXb|>at$x7K+xuoRwJV4hXO>hv9Z9)2xfEO!M1zU>(eoqGk$WfF z;8JyKA^Yx!5c%4bu@jgaB~`PaW-KTaZYUL_&m&fNzmGM(nc;HKeG+=nY$%d&WnEyup$L? zkKC8>lIIYh4D5K^>urJVK-5hrGju^AI$H1>ImzQNxChSU@F7~0edyE}ScP9?BM0T^ zz&#ky!oK4f`Len6V^9%q3-M!hA_S@IQ8W_RZ`_A6n6EF^Oy_TKogAoog%;EKPGHv9 z!;~2U+_Q`|OC3!<@Cx)!&I)fy^Oal_>nEK{)h&W&q z?PS~|^vZL5k6R;Cc7xp#Z#pa{5SBw9q*eBOBl1Ji8tqp-=uvzMk4xy}()B!tr&4RH&M`MSq8voJ z)T!XVd2|+v1`(QEXdFj5fypG zE8N>7y-rl_KI~y?p)RkJ(;VSep21!9QY1QC7)|E{+LMXIa)l~wyq;t$SnjvPX27KQ zbx#u#!M$>3{Qf+vOr=SJScBw-w(fhPiim8*xV)smv7Pcmrc@Q)Ho_Y2|2pxpv(u|? z{oO|K&t*-GgTj=Cs;BRtHsRFa_wlP8nY+RCyeF9f7Sj9u^OgF)<1ES71?K22Bm`!{F3*nJY$ovZr3pxMX`oYXl}2?dP1eJk-9 z?dk{P+QkLvjZ$1P3QF(Klq#(-`Bi#@EeXR(zXamC@R!{ll+;e}M9h^wYB<+ly7|r$ zI3f`(UG7W9W8E$4{auIZ&kNn!5HCg{$Xz{lOEc@T&%sBQ>-v^=zq&`h2y) z3JQGy!z;Y*2s?gUC8Z$eR8v$l1@jRLGwP+~$@UQ@;Am0a1-&uk%H}II{;{IIIDcp) z+994E#=L2s2SNjef3&x^XL(%NoEn_1o-Zhxo9I|=I`y}2^+_jZCwM+{_y75Dkt#EM z${&InVCYzyc5ME8RA}14fK6d*#^@4>B#a3q8NI~F$8xqJjfYaPSgb;{yv+Gmp-4uf z*(iHUYimY%`DUm2V;sC@LsEylP~Rt{9Mx#2K%+sa1edhgJHW390{Fy`!nYOYMuPQ% M{1Nb`)6sYT19wI`h5!Hn literal 0 HcmV?d00001 diff --git a/e2e/playwright/tests/editors/selectBox/etalons/SelectBox Customize DropDown Button (fluent.blue.light).png b/e2e/playwright/tests/editors/selectBox/etalons/SelectBox Customize DropDown Button (fluent.blue.light).png new file mode 100644 index 0000000000000000000000000000000000000000..94633fdee7a48ffd015d8039975189c65eed278c GIT binary patch literal 1235 zcmeAS@N?(olHy`uVBq!ia0y~yU|9fUD{wFY$yG*%2zF4OQ) zJdk~=tl*?zrY5D-ApWFja~8bTSq`QTRAzfx$dC*7S=8fGau3fwK?Gpn!g`we4U{Fv{SXfwWY;0g);_e+gEUc|puUt7%`V%`NNP&h- zQGj}T+4AMf%XaU*V&WTF9vT`7@&!Xc#*+o_)Lx|AnYtus<*8F%5akg@uYn@VE@#d@ zs|HfV!0Megx5qkf7c-FEpyc=fq|9NW!UvGt0uO--5FMbxVFRKygl@9U6ODhF|8iEx zEU+aX{7#vD5D9lrc=ys_u2!`F{m9-Ux)bfa`+dHcnQ!TFg_vr+ZOJB zsjI#1%KbY=dsd}~Cq(LB43T-Kwq5&j`R&i=&4nxbKlR*Qd9Zymdsmbm$U+9ETq&+T ztMbDSJLcWomZZJ#=i_Y-3vMq>`O0pock#~e+<)EYovJ&}PQ3Q)V5qHe%WSDPS$P>5 zKQ=7={?SY4a;;m+n!VXMnRRRa*Hv%6^Z%`ziIM3YZSyCFtIZGFpBB1xVe@( zo_jp!N3C782_;rV9(!t--kTnMIrm@TFZsYsng72nz!CT(e%d}MuJ>1diZfMZ*oeHl zptgDbqoEIkpnSAIGOlCbQen_JBW5|I)Iu>C~xH zn>KA)yLK&5Yl@L3SV8OJMT-u-EUDTXCs|$(6#4)EEaMK46dR~aVrJNq-)3~^d%$Oq NVoz5;mvv4FO#p#99clmo literal 0 HcmV?d00001 diff --git a/e2e/playwright/tests/editors/selectBox/etalons/SelectBox no data (fluent-next.blue.light).png b/e2e/playwright/tests/editors/selectBox/etalons/SelectBox no data (fluent-next.blue.light).png new file mode 100644 index 0000000000000000000000000000000000000000..c5f29e3a1bc7bb3ecb2ecd9774a383d84cec590d GIT binary patch literal 5434 zcmeI0`8OL}x5rbRDT=meEA&CNRH<1^olHeh#4I%hHAI_4G)U^Hp(u)~F`}hX^BCHy zp%gXO5HT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@?Ydk*X$_Pzj3zr zX?mskK&)KY!v~8ZS%1!c;hVP(r>f;WOIU=UJt_zx`thp7gpX@bK_-n_hUIOM}P; zYyH@_t=m^0Gh4u4vTt)g1S;x;LEU0{{J-v!8P#nk*5Qfy1WR(*8A+~ftJz=^#F|O` z+x)0D8L^WBk8-9SOOyA_Iz{dKVZ}8jSYe>!0@cYSiPMTDMK~eD?PhAmUD1Jugizan zBXpNTtFfU)_0F_`WT${hgpK|58;Lru@ctb?B~3PSMVNuQm)MC}QD^b79+ULVa>B^Q zf#~P51!lL}Dr?tFW_)QC)UD?4Xe*X2g^#A0hB4)=V~IL)iz2yZ9jh5%3BAu_nWP|? zOz=cE$6L2yg=0UZID5+l$IN=B6d~SE8$dTW=%nj)m-+0Mp4Ldad#vZpn%V1$Gxw|Z z8%+r##eFVNOWKiH$D_>Vn~X>+7L)bZx!#n*$5F?dBLDys*S}bRnw+9C(C|o%%&EUn z7j@B$j)(q({*MOy+>Zk6 zOK39s{%IFnQZnYbozi2rYME6)ipGWANkl_Ia<77};pwKd;`eKpvK$?o=lfcxX0s5! z>Vam=#o5a^r>*;{197BRwzJ;aHlJ3$vSy#J%~|(aN)#EOF#~$vt;hZ+clhrw;r}3s zf0zCzp!xSS{ymNV`ltUNZORD;0C0NxI&k9GA6|OlU*>oYAUC_Au-{Y5_@e;y9vVGB IYd?SeANx@a-v9sr literal 0 HcmV?d00001 diff --git a/e2e/playwright/tests/editors/selectBox/etalons/SelectBox pagesize equal datasource items count (fluent-next.blue.light).png b/e2e/playwright/tests/editors/selectBox/etalons/SelectBox pagesize equal datasource items count (fluent-next.blue.light).png new file mode 100644 index 0000000000000000000000000000000000000000..375930463a6ccc6d2e7c4a06c3e049604378e411 GIT binary patch literal 4192 zcmeHLXH?VKw*Lcy6a^F&F(3$nLlLA)kAM^bkwK+{1gRo%LWvMUlOi3YMj!}C6KSCh zB?+3L34}qVNC++T&`%ZVUrrQWz*zsz!vB}4{{Ol!y=D-=`c0Yr0 zlrM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