Skip to content

Commit

Permalink
Fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Nov 20, 2023
1 parent 12649cd commit f72d5eb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions code/e2e-tests/addon-controls.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ test.describe('addon-controls', () => {
// Color picker: Background color
const color = sbPage.panelContent().locator('input[placeholder="Choose color..."]');
await color.fill('red');
await expect(sbPage.previewRoot().locator('button')).toHaveCSS(
'background-color',
'rgb(255, 0, 0)'
);
await expect(async () => {
await expect(sbPage.previewRoot().locator('button')).toHaveCSS(
'background-color',
'rgb(255, 0, 0)'
);
}).toPass();

// TODO: enable this once the controls for size are aligned in all CLI templates.
// Radio buttons: Size
Expand Down

0 comments on commit f72d5eb

Please sign in to comment.