-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #747 from baloise-incubator/test/footer-visual-test
Test/footer visual test
- Loading branch information
Showing
8 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
packages/components/cypress/e2e/visual/bal-footer.visual.cy.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,25 @@ | ||
describe('bal-footer', () => { | ||
before(() => cy.page('/components/bal-footer/test/bal-footer.visual.html')) | ||
|
||
it('basic component', () => { | ||
cy.platform('desktop').wait(1000) | ||
cy.getByTestId('basic').compareSnapshot('footer-desktop', 0.0) | ||
|
||
cy.platform('tablet') | ||
cy.getByTestId('basic').compareSnapshot('footer-tablet', 0.0) | ||
|
||
cy.platform('mobile') | ||
cy.getByTestId('basic').compareSnapshot('footer-mobile', 0.0) | ||
}) | ||
|
||
it('component variants', () => { | ||
cy.platform('desktop') | ||
cy.compareSnapshot('footer-variants-desktop', 0.0) | ||
|
||
cy.platform('tablet') | ||
cy.compareSnapshot('footer-variants-tablet', 0.0) | ||
|
||
cy.platform('mobile') | ||
cy.compareSnapshot('footer-variants-mobile', 0.0) | ||
}) | ||
}) |
Binary file added
BIN
+8.64 KB
...mponents/cypress/snapshots/base/bal-footer.visual.cy.ts/footer-desktop-base.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.45 KB
...omponents/cypress/snapshots/base/bal-footer.visual.cy.ts/footer-mobile-base.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+8.26 KB
...omponents/cypress/snapshots/base/bal-footer.visual.cy.ts/footer-tablet-base.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.6 KB
...cypress/snapshots/base/bal-footer.visual.cy.ts/footer-variants-desktop-base.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.4 KB
.../cypress/snapshots/base/bal-footer.visual.cy.ts/footer-variants-mobile-base.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+17.4 KB
.../cypress/snapshots/base/bal-footer.visual.cy.ts/footer-variants-tablet-base.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions
41
packages/components/src/components/bal-footer/test/bal-footer.visual.html
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,41 @@ | ||
<!DOCTYPE html> | ||
<html dir="ltr" lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | ||
<style> | ||
.bal-body { | ||
visibility: hidden; | ||
} | ||
</style> | ||
<script type="module" src="/build/design-system-components.esm.js"></script> | ||
<script nomodule src="/build/design-system-components.js"></script> | ||
</head> | ||
<body class="bal-body"> | ||
<bal-doc-app> | ||
<main class="container py-5"> | ||
<!-- Basic with Hidden Links Selection --> | ||
<section> | ||
<bal-footer data-testid="basic" hide-links> | ||
<div class="container"> | ||
<bal-logo color="white"></bal-logo> | ||
<p class="mt-2">Footer Content</p> | ||
</div> | ||
</bal-footer> | ||
</section> | ||
<br /> | ||
<br /> | ||
<!-- Hide Links Selection and Hide Language Selection --> | ||
<section> | ||
<bal-footer hide-links hide-language-selection> | ||
<div class="container"> | ||
<bal-logo color="white"></bal-logo> | ||
<p class="mt-2">Footer Content</p> | ||
</div> | ||
</bal-footer> | ||
</section> | ||
</main> | ||
</bal-doc-app> | ||
</body> | ||
</html> |