-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(divider): refactor and update horizontal screenshot tests (#912)
* test(divider): refactor and update existing horizontal lightmode and darkmode tests * test(divider): refactor tests to use beforeEach for page navigation
- Loading branch information
Showing
8 changed files
with
31 additions
and
30 deletions.
There are no files selected for viewing
8 changes: 5 additions & 3 deletions
8
...nts/divider/test/darkmode/darkmode.e2e.ts → ...r/test/horizontal/darkmode/divider.e2e.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file renamed
BIN
+4.27 KB
...-render-a-divider-in-darkmode-1-linux.png → ...-render-a-divider-in-darkmode-1-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
packages/core/src/components/divider/test/horizontal/divider.e2e.ts
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
packages/core/src/components/divider/test/horizontal/lightmode/divider.e2e.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { test } from 'stencil-playwright'; | ||
import { expect } from '@playwright/test'; | ||
|
||
const componentTestPath = 'src/components/divider/test/horizontal/lightmode/index.html'; | ||
|
||
test.describe.parallel('tds-divider-lightmode', () => { | ||
test.beforeEach(async ({ page }) => { | ||
await page.goto(componentTestPath); | ||
}); | ||
|
||
test('expect to render a divider in lightmode', async ({ page }) => { | ||
/* Check diff on screenshot */ | ||
await expect(page).toHaveScreenshot({ maxDiffPixels: 0 }); | ||
}); | ||
}); |
Binary file renamed
BIN
+4.26 KB
...o-render-a-horizontal-divider-1-linux.png → ...render-a-divider-in-lightmode-1-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters