-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: fix visual test lib * chore: update popups * chore: adjust scrolling * chore: adjust scrolling * chore: change nav visuals * chore: remove 400ms waits * chore: remove scroll to top * chore(): update base images * chore: trigger build * chore: hide scrollbar for visual test * chore: hide scrollbar for visual test * chore(): update base images * chore: trigger build * chore: adjust popup visuals * chore: adjust popup visuals * chore: adjust popup visuals * chore: adjust popup visuals * chore: adjust popup visuals --------- Co-authored-by: hirsch88 <[email protected]>
- Loading branch information
Showing
189 changed files
with
5,419 additions
and
1,908 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -3,6 +3,11 @@ | |
*/ | ||
export * from './selectors' | ||
|
||
/** | ||
* Viewports sizes | ||
*/ | ||
export * from './viewports' | ||
|
||
/** | ||
* Helpers | ||
*/ | ||
|
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,50 @@ | ||
import { Platforms } from './commands/helpers' | ||
|
||
type Viewport = { | ||
[key in Platforms]: Cypress.Dimensions | ||
} | ||
|
||
export const balViewport: Viewport = { | ||
mobile: { | ||
width: 375, | ||
height: 667, | ||
x: 0, | ||
y: 0, | ||
}, | ||
tablet: { | ||
width: 769, | ||
height: 1024, | ||
x: 0, | ||
y: 0, | ||
}, | ||
touch: { | ||
width: 769, | ||
height: 1024, | ||
x: 0, | ||
y: 0, | ||
}, | ||
desktop: { | ||
width: 1024, | ||
height: 1280, | ||
x: 0, | ||
y: 0, | ||
}, | ||
highDefinition: { | ||
width: 1280, | ||
height: 1440, | ||
x: 0, | ||
y: 0, | ||
}, | ||
widescreen: { | ||
width: 1440, | ||
height: 1920, | ||
x: 0, | ||
y: 0, | ||
}, | ||
fullhd: { | ||
width: 1920, | ||
height: 1920, | ||
x: 0, | ||
y: 0, | ||
}, | ||
} |
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 not shown.
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 |
---|---|---|
@@ -1,33 +1,55 @@ | ||
import { balViewport } from 'support/utils' | ||
|
||
describe('bal-nav-menu-flyout', () => { | ||
describe('basic', () => { | ||
it('basic component', () => { | ||
cy.visit('/components/bal-nav/bal-nav-menu-flyout/test/bal-nav-menu-flyout.visual.html') | ||
.platform('fullhd') | ||
.waitForDesignSystem() | ||
.wait(32) | ||
it('basic component', () => { | ||
cy.visit('/components/bal-nav/bal-nav-menu-flyout/test/bal-nav-menu-flyout.visual.html') | ||
.platform('fullhd') | ||
.waitForDesignSystem() | ||
|
||
cy.testVisual('menu-flyout-fullhd') | ||
cy.testVisual('menu-flyout-fullhd', { | ||
errorThreshold: 0.2, | ||
capture: 'viewport', | ||
clip: balViewport['fullhd'], | ||
}) | ||
|
||
cy.platform('highDefinition').wait(32) | ||
cy.testVisual('menu-flyout-highDefinition') | ||
cy.platform('highDefinition') | ||
cy.testVisual('menu-flyout-highDefinition', { | ||
errorThreshold: 0.2, | ||
capture: 'viewport', | ||
clip: balViewport['highDefinition'], | ||
}) | ||
|
||
cy.platform('widescreen').wait(32) | ||
cy.testVisual('menu-flyout-widescreen') | ||
cy.platform('widescreen') | ||
cy.testVisual('menu-flyout-widescreen', { | ||
errorThreshold: 0.2, | ||
capture: 'viewport', | ||
clip: balViewport['widescreen'], | ||
}) | ||
|
||
cy.platform('desktop').wait(32) | ||
cy.testVisual('menu-flyout-desktop') | ||
cy.platform('desktop') | ||
cy.testVisual('menu-flyout-desktop', { | ||
errorThreshold: 0.2, | ||
capture: 'viewport', | ||
clip: balViewport['desktop'], | ||
}) | ||
}) | ||
|
||
it('basic component touch', () => { | ||
cy.visit('/components/bal-nav/bal-nav-menu-flyout/test/bal-nav-menu-flyout.visual.html') | ||
.platform('tablet') | ||
.waitForDesignSystem() | ||
.wait(400) | ||
it('basic component touch', () => { | ||
cy.visit('/components/bal-nav/bal-nav-menu-flyout/test/bal-nav-menu-flyout.visual.html') | ||
.platform('tablet') | ||
.waitForDesignSystem() | ||
|
||
cy.testVisual('menu-flyout-tablet') | ||
cy.testVisual('menu-flyout-tablet', { | ||
errorThreshold: 0.2, | ||
capture: 'viewport', | ||
clip: balViewport['tablet'], | ||
}) | ||
|
||
cy.platform('mobile').wait(400) | ||
cy.testVisual('menu-flyout-mobile') | ||
cy.platform('mobile') | ||
cy.testVisual('menu-flyout-mobile', { | ||
errorThreshold: 0.2, | ||
capture: 'viewport', | ||
clip: balViewport['mobile'], | ||
}) | ||
}) | ||
}) |
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
Oops, something went wrong.