Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
3d0b6ed
[date-picker] update snapshots and tests
Valeria-Zimnitskaya May 15, 2025
9ef7c99
[date-picker] update snapshots and tests
Valeria-Zimnitskaya May 15, 2025
24459b7
[button] update unit snapshots
Valeria-Zimnitskaya May 15, 2025
af8ee31
[carousel] update unit snapshots
Valeria-Zimnitskaya May 15, 2025
9a0e277
[color-picker] update tests and snapshots
Valeria-Zimnitskaya May 15, 2025
c0c0f4c
[color-picker] update tests and snapshots
Valeria-Zimnitskaya May 15, 2025
5b7e4f0
[counter] update unit snapshots
Valeria-Zimnitskaya May 15, 2025
4be7763
[dropdown] update unit snapshot
Valeria-Zimnitskaya May 15, 2025
dbc04f9
[dropdown-menu] update unit snapshot
Valeria-Zimnitskaya May 15, 2025
9b8f668
[errors] update unit snapshots
Valeria-Zimnitskaya May 15, 2025
fa076ea
[inline-edit] update snapshots and some tests
Valeria-Zimnitskaya May 15, 2025
b7b03ee
[inline-input] update snapshots and some tests
Valeria-Zimnitskaya May 15, 2025
4f875d8
[input] update snapshots and some tests
Valeria-Zimnitskaya May 15, 2025
573ab63
[input] update snapshots
Valeria-Zimnitskaya May 15, 2025
86df7e7
[link] update snapshots
Valeria-Zimnitskaya May 15, 2025
04c17fc
[pagination] update tests and snapshots
Valeria-Zimnitskaya May 15, 2025
abe7bcb
[pagination] update tests and snapshots
Valeria-Zimnitskaya May 15, 2025
4b9e099
[pills] update snapshots
Valeria-Zimnitskaya May 16, 2025
b31af87
[product-head] update snapshots
Valeria-Zimnitskaya May 16, 2025
da84e05
[progress-bar] update snapshots
Valeria-Zimnitskaya May 16, 2025
dc336a8
[chore] update tests and snapshots
Valeria-Zimnitskaya May 16, 2025
0298c73
[chore] update tests and snapshots
Valeria-Zimnitskaya May 16, 2025
4844fc0
Merge branch 'major/16' into major/update-tests
Valeria-Zimnitskaya May 16, 2025
ca52d41
[side-panel] fixed test
ilyabrower May 16, 2025
dc810b1
[notice-bubble] added timeout to browser test
ilyabrower May 16, 2025
fb627d0
[date-picker] added timout to test and update snapshot
Valeria-Zimnitskaya May 16, 2025
448cff4
[date-picker] added timout to test and update snapshot
Valeria-Zimnitskaya May 16, 2025
5fe6dbd
Merge branch 'major/16' into major/update-tests
Valeria-Zimnitskaya May 16, 2025
dd3f283
Merge branch 'major/16' into major/update-tests
Valeria-Zimnitskaya May 16, 2025
57993b8
[slider] update snapshots
Valeria-Zimnitskaya May 16, 2025
47f97dc
[tooltip] fixed timeouts in tooltips for working in tests
ilyabrower May 16, 2025
6e324e6
[chore] update some tests added timeouts
Valeria-Zimnitskaya May 16, 2025
b133d38
[chore] update some tests added timeouts
Valeria-Zimnitskaya May 16, 2025
1590e3b
[tooltip] fixed timeouts in tooltips for working in tests
ilyabrower May 16, 2025
6dcde00
[tooltip] only logic, no env specific
ilyabrower May 16, 2025
7a19893
[data-table] update stories and improve some tests
Valeria-Zimnitskaya May 16, 2025
8742525
Merge branch 'major/16' into major/update-tests
Valeria-Zimnitskaya May 16, 2025
e53c3e5
[chore] fixed unit tests + linter
ilyabrower May 16, 2025
2ae6c5e
[chore] fixed unit tests + linter
ilyabrower May 16, 2025
6457aee
[data-table] update snapshots and some storybook tests
Valeria-Zimnitskaya May 17, 2025
4307496
[data-table] upadte snapshots after story has been updated
Valeria-Zimnitskaya May 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 7 additions & 21 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions semcore/base-components/__tests__/popper.browser-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ test.describe('Popper', () => {
const htmlContent = await e2eStandToHtml(standPath, 'en');

await page.setContent(htmlContent);
await new Promise((resolve) => setTimeout(resolve, 250));

const popperD = page.locator('text=Popper');
const popperF = page.locator('text=Fixed');
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 3 additions & 11 deletions semcore/color-picker/__tests__/color-picker.browser-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ test.describe('Color-picker', () => {
await expectAttributes(locators.trigger, {
'aria-expanded': 'false',
'aria-label': 'Color field',
tabindex: '0',
'aria-haspopup': 'dialog',
role: 'combobox',
});
Expand All @@ -49,7 +48,6 @@ test.describe('Color-picker', () => {
await expectAttributes(locators.trigger, {
'aria-expanded': 'true',
'aria-label': 'Color field',
tabindex: '0',
'aria-haspopup': 'dialog',
role: 'combobox',
});
Expand All @@ -60,7 +58,6 @@ test.describe('Color-picker', () => {
await expect(locators.popper).toBeVisible();
await expectAttributes(locators.popper, {
'aria-label': 'Colors palette',
tabindex: '0',
role: 'dialog',
});
});
Expand All @@ -85,7 +82,6 @@ test.describe('Color-picker', () => {
for (const item of await items.all()) {
await expectAttributes(item, {
role: 'option',
tabindex: '0',
});
}
});
Expand Down Expand Up @@ -115,7 +111,6 @@ test.describe('Color-picker', () => {
});

await expectAttributes(locators.inputColor, {
tabindex: '0',
'aria-invalid': 'false',
'aria-label': 'Custom color, HEX format',
});
Expand Down Expand Up @@ -153,7 +148,6 @@ test.describe('Color-picker', () => {
await expect(paletteItem).toHaveCount(1);

await expectAttributes(paletteItem, {
tabindex: '0',
'aria-label': '#000',
'aria-selected': 'false',
role: 'option',
Expand All @@ -169,7 +163,6 @@ test.describe('Color-picker', () => {
await locators.inputColor.fill('vdnsjkv');

await expectAttributes(locators.inputColor, {
tabindex: '0',
'aria-invalid': 'true',
'aria-label': 'Custom color, HEX format',
});
Expand Down Expand Up @@ -237,8 +230,8 @@ test.describe('Color-picker', () => {
const box = await item.boundingBox();
expect(box).not.toBeNull();
if (box) {
expect(box.width).toBeGreaterThanOrEqual(26);
expect(box.height).toBeGreaterThanOrEqual(26);
expect(Math.round(box.width)).toBeGreaterThanOrEqual(26);
expect(Math.round(box.height)).toBeGreaterThanOrEqual(26);
}
}

Expand Down Expand Up @@ -343,8 +336,7 @@ test.describe('Color-picker', () => {
});

test('Custom colors states ', async ({ page }) => {
const standPath =
'stories/components/color-picker/docs/examples/several_ways_to_use_component.tsx';
const standPath = 'stories/components/color-picker/docs/examples/predefined_palette.tsx';
const htmlContent = await e2eStandToHtml(standPath, 'en');

await page.setContent(htmlContent);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Diff not rendered.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ test.describe('Accordion in table', () => {
await expect(firstArrow).toBeFocused();
await page.keyboard.press('ArrowDown');
await page.keyboard.press('Enter');
await page.waitForTimeout(100);
await expect(plot).toHaveCount(0);
await page.keyboard.press('ArrowRight');
await page.keyboard.press('ArrowRight');
Expand Down Expand Up @@ -117,7 +118,7 @@ test.describe('Accordion in table', () => {
});

await test.step('Verify accordion not expands when clicking interactive element in any cell when accordion on 1st', async () => {
const button = page.getByRole('button', { name: 'someB' });
const button = page.getByRole('button', { name: 'Click Me' });
await button.click();
await expect(plot).not.toBeVisible();
});
Expand Down Expand Up @@ -182,6 +183,7 @@ test.describe('Accordion in table', () => {
});

await firstArrow.click();
await page.waitForTimeout(150);
if (browserName !== 'firefox')
for (let i = 0; i < cellCount; i++) {
const cell = cells.nth(i);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const checkStyles = async (element: any, styles: Record<string, string>) => {

test.describe('Base styles Primary Table', () => {
test('Verify styles when no interactive elements in header', async ({ page, browserName }) => {
const standPath = 'stories/components/data-table/tests/examples/header-tests/base.tsx';
const standPath = 'stories/components/data-table/docs/examples/base.tsx';
const htmlContent = await e2eStandToHtml(standPath, 'en');
await page.setContent(htmlContent);
const table = page.locator('[data-ui-name="DataTable"]');
Expand Down Expand Up @@ -167,7 +167,7 @@ test.describe('Base styles Primary Table', () => {
});

test('Verify Column width by default - auto', async ({ page }) => {
const standPath = 'stories/components/data-table/tests/examples/header-tests/base.tsx';
const standPath = 'stories/components/data-table/docs/examples/base.tsx';
const htmlContent = await e2eStandToHtml(standPath, 'en');

await page.setContent(htmlContent);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test.describe('One level Header', () => {
page,
browserName,
}) => {
const standPath = 'stories/components/data-table/tests/examples/header-tests/base.tsx';
const standPath = 'stories/components/data-table/docs/examples/base.tsx';
const htmlContent = await e2eStandToHtml(standPath, 'en');

await page.setContent(htmlContent);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ test.describe('Vertical Scroll', () => {
}
const nowNumber = await checkScrollNowIncreased(scrollBar);
expect(nowNumber).toBeLessThanOrEqual(initialValue);
await expect(page).toHaveScreenshot();
});

test('Verify Mouse scroll when Sticky header and no interactive in cells', async ({ page }) => {
Expand Down
Diff not rendered.
Diff not rendered.
Diff not rendered.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ test.describe('Vertical Scroll', () => {
const htmlContent = await e2eStandToHtml(standPath, 'en');
await page.setContent(htmlContent);

const dataTable = await page.locator('[data-ui-name="DataTable"]');
await dataTable.hover();
const dataTable = await page.locator('[data-ui-name="Body.Row"]');
await dataTable.first().hover();
await page.mouse.wheel(0, 600);
await page.waitForTimeout(1000);
await expect(page).toHaveScreenshot({ maxDiffPixelRatio: 0.01 });
Expand Down
Loading