Skip to content

Commit

Permalink
Merge pull request #747 from baloise-incubator/test/footer-visual-test
Browse files Browse the repository at this point in the history
Test/footer visual test
  • Loading branch information
hirsch88 authored Oct 31, 2022
2 parents 61d9b6d + dd3e866 commit 9371202
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 0 deletions.
25 changes: 25 additions & 0 deletions packages/components/cypress/e2e/visual/bal-footer.visual.cy.ts
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)
})
})
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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>

0 comments on commit 9371202

Please sign in to comment.