Skip to content

Commit

Permalink
[MWPW-165793] changing used for check
Browse files Browse the repository at this point in the history
  • Loading branch information
DKos95 committed Jan 22, 2025
1 parent 99d9723 commit 9c1c5e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion nala/blocks/aside/aside.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export default class Aside {
lightGrey1: 'rgb(238, 238, 238)',
lightGrey2: 'rgb(245, 245, 245)',
lightGrey3: 'rgb(249, 249, 249)',
lightGrey4: 'rgb(248, 248, 248)',
},
};
}
Expand Down
9 changes: 3 additions & 6 deletions nala/blocks/aside/aside.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ test.describe('Aside Block test suite', () => {
const bgdColor = await Aside.asideSmall.evaluate(
(e) => window.getComputedStyle(e).getPropertyValue('background-color'),
);
// expect(bgdColor).toBe(Aside.props.background.lightGrey1);
expect([Aside.props.background.lightGrey1, Aside.props.background.lightGrey4]).toContain(bgdColor);
expect([Aside.props.background.lightGrey1, Aside.props.background.lightGrey3]).toContain(bgdColor);
});

await test.step('step-3: Verify the accessibility test on the Aside Small block', async () => {
Expand Down Expand Up @@ -70,8 +69,7 @@ test.describe('Aside Block test suite', () => {
expect(await Aside.actionButtons.count()).toEqual(2);
// Check Aside block background:
const bgdColor = await Aside.asideMedium.evaluate((e) => window.getComputedStyle(e).getPropertyValue('background-color'));
// expect(bgdColor).toBe(Aside.props.background.lightGrey1);
expect([Aside.props.background.lightGrey1, Aside.props.background.lightGrey4]).toContain(bgdColor);
expect([Aside.props.background.lightGrey1, Aside.props.background.lightGrey3]).toContain(bgdColor);
});

await test.step('step-3: Verify the accessibility test on the Aside Medium block', async () => {
Expand Down Expand Up @@ -105,8 +103,7 @@ test.describe('Aside Block test suite', () => {
expect(await Aside.actionButtons.count()).toEqual(2);
// Check Aside block background:
const bgdColor = await Aside.asideLarge.evaluate((e) => window.getComputedStyle(e).getPropertyValue('background-color'));
// expect(bgdColor).toBe(Aside.props.background.lightGrey1);
expect([Aside.props.background.lightGrey1, Aside.props.background.lightGrey4]).toContain(bgdColor);
expect([Aside.props.background.lightGrey1, Aside.props.background.lightGrey3]).toContain(bgdColor);
});

await test.step('step-3: Verify the accessibility test on the Aside Large block', async () => {
Expand Down

0 comments on commit 9c1c5e6

Please sign in to comment.