Skip to content

Commit

Permalink
screenshot removal
Browse files Browse the repository at this point in the history
  • Loading branch information
chromaticWaster committed Aug 16, 2023
1 parent 09fa870 commit 4f6f7ec
Show file tree
Hide file tree
Showing 67 changed files with 4 additions and 2 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
4 changes: 3 additions & 1 deletion src/expander/Expander.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ test(`Expander - Visual and Behaviour`, async ({ page }) => {
const expander = page.locator('.Interactive').getByTestId('test-expander');

await expect(expander).toHaveScreenshot('expander-initial.png');
// The expanded attribute should be not set by default
await expect(expander).not.toHaveAttribute('expanded', '');

const expanderHeader = expander.locator('.header');
await expanderHeader.click();

// The expanded attribute should be set once the expander is expanded
await expect(expander).toHaveAttribute('expanded', '');

await expect(expander).toHaveScreenshot('expander-expanded.png');
Expand Down Expand Up @@ -49,6 +50,7 @@ test(`Expander - Button Alignment Behaviour`, async ({ page }) => {

const header = expander.locator('.header');

// Confirm that there is 3 elements in the header
await expect(await header.evaluate((h) => h.childElementCount)).toBe(3);

await expect(expander).toHaveAttribute('button-alignment', 'left');
Expand Down
2 changes: 1 addition & 1 deletion src/expander/Expander.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import '../label/Label.js';
* @cssprop --omni-expander-header-border-top - Expander header border top.
*
* @cssprop --omni-expander-header-hover-background - Expander header hover background.
*
*
* @cssprop --omni-expander-header-label-font-color - Expander header label font color.
* @cssprop --omni-expander-header-label-font-size - Expander header label font size.
* @cssprop --omni-expander-header-label-font-weight - Expander header label font weight.
Expand Down

0 comments on commit 4f6f7ec

Please sign in to comment.