Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TagBox - selectAll checkBox should be aligned correctly in fluent (T1252002) #28809

Merged
merged 11 commits into from
Jan 22, 2025
Prev Previous commit
Next Next commit
add test
Zedwag committed Jan 21, 2025
commit b86394205ec86a16b2ba5f850f73c70f581ea160
18 changes: 18 additions & 0 deletions e2e/testcafe-devextreme/tests/editors/tagBox/common.ts
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@ import TagBox from 'devextreme-testcafe-models/tagBox';
import { testScreenshot } from '../../../helpers/themeUtils';
import url from '../../../helpers/getPageUrl';
import { createWidget } from '../../../helpers/createWidget';
import { safeSizeTest } from '../../../helpers/safeSizeTest';

fixture.disablePageReloads`TagBox`
.page(url(__dirname, '../../container.html'));
@@ -123,6 +124,23 @@ test('Select all checkbox should be focused by tab and closed by escape (T389453
applyValueMode: 'useButtons',
}));

safeSizeTest('TagBox with selection controls', async (t) => {
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
const tagBox = new TagBox('#container');

await t.click(tagBox.element);

await testScreenshot(t, takeScreenshot, 'TagBox with selection controls');

await t
.expect(compareResults.isValid())
.ok(compareResults.errorMessages());
}, [300, 400]).before(async () => createWidget('dxTagBox', {
items: [1, 2, 3, 4, 5, 6, 7],
showSelectionControls: true,
width: 300,
}));

test('Placeholder is visible after items option change when value is not chosen (T1099804)', async (t) => {
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
const tagBox = new TagBox('#container');