Skip to content

Commit

Permalink
fix: beforeEach
Browse files Browse the repository at this point in the history
  • Loading branch information
xandervedder committed Nov 16, 2024
1 parent 324d64c commit fa84474
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/elements/test/integration/po/Breadcrumb.po.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default class Breadcrumb extends PageObject {

public async clickOnSearchIcon(): Promise<void> {
const button = this.$('button');
console.log(button);
await button.click();
}
}
10 changes: 5 additions & 5 deletions packages/elements/test/integration/theming.it.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ test.describe('Theming', () => {
});

test.describe('when opening the file picker', () => {
test('should show the file picker', async () => {
await page.breadcrumb().clickOnSearchIcon();
test.beforeEach(async () => {
await page.breadcrumb().clickOnSearchIcon();
});

itShouldMatchScreenshot('should match the dark theme');
});
});
Expand Down Expand Up @@ -77,10 +77,10 @@ test.describe('Theming', () => {
});

test.describe('when opening the file picker', () => {
test('should match screenshot', async () => {
test.beforeEach(async () => {
await page.breadcrumb().clickOnSearchIcon();
});

itShouldMatchScreenshot('should match the light theme');
});
});
Expand Down

0 comments on commit fa84474

Please sign in to comment.