-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into atoledano-poster-card-background
- Loading branch information
Showing
125 changed files
with
498 additions
and
392 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
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 modified
BIN
-5.31 KB
(13%)
...shot_tests__/__image_snapshots__/divider-screenshot-test-tsx-divider-1-snap.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
+832 Bytes
...ts__/__image_snapshots__/divider-screenshot-test-tsx-divider-inverse-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file modified
BIN
+1.46 KB
(110%)
..._tests__/__image_snapshots__/header-screenshot-test-tsx-header-small-1-snap.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 modified
BIN
+14.3 KB
(170%)
...eader-screenshot-test-tsx-header-with-truncation-and-color-overrides-1-snap.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
+386 KB
...ts__/__image_snapshots__/hero-screenshot-test-tsx-hero-brand-desktop-1-snap.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
+523 KB
..._/__image_snapshots__/hero-screenshot-test-tsx-hero-brand-mobile-ios-1-snap.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 removed
BIN
-365 KB
...ot_tests__/__image_snapshots__/hero-screenshot-test-tsx-hero-default-2-snap.png
Binary file not shown.
Binary file added
BIN
+387 KB
...__/__image_snapshots__/hero-screenshot-test-tsx-hero-default-desktop-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file removed
BIN
-388 KB
...ot_tests__/__image_snapshots__/hero-screenshot-test-tsx-hero-desktop-1-snap.png
Binary file not shown.
Binary file removed
BIN
-388 KB
...ot_tests__/__image_snapshots__/hero-screenshot-test-tsx-hero-desktop-2-snap.png
Binary file not shown.
Binary file removed
BIN
-227 KB
.../__image_snapshots__/hero-screenshot-test-tsx-hero-slideshow-desktop-1-snap.png
Binary file not shown.
Binary file removed
BIN
-316 KB
..._/__image_snapshots__/hero-screenshot-test-tsx-hero-slideshow-mobile-1-snap.png
Binary file not shown.
Binary file modified
BIN
+2.98 KB
(100%)
...__image_snapshots__/icons-screenshot-test-tsx-icons-catalog-for-blau-1-snap.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 modified
BIN
+7.37 KB
(100%)
...__image_snapshots__/icons-screenshot-test-tsx-icons-catalog-for-blau-2-snap.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 modified
BIN
+3.43 KB
(100%)
...__image_snapshots__/icons-screenshot-test-tsx-icons-catalog-for-blau-3-snap.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 modified
BIN
+2.98 KB
(100%)
...age_snapshots__/icons-screenshot-test-tsx-icons-catalog-for-movistar-1-snap.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 modified
BIN
+7.37 KB
(100%)
...age_snapshots__/icons-screenshot-test-tsx-icons-catalog-for-movistar-2-snap.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 modified
BIN
+3.43 KB
(100%)
...age_snapshots__/icons-screenshot-test-tsx-icons-catalog-for-movistar-3-snap.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 modified
BIN
+2.98 KB
(100%)
.../__image_snapshots__/icons-screenshot-test-tsx-icons-catalog-for-o-2-1-snap.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 modified
BIN
+7.37 KB
(100%)
.../__image_snapshots__/icons-screenshot-test-tsx-icons-catalog-for-o-2-2-snap.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 modified
BIN
+3.43 KB
(100%)
.../__image_snapshots__/icons-screenshot-test-tsx-icons-catalog-for-o-2-3-snap.png
Oops, something went wrong.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added
BIN
+19.5 KB
...est-tsx-main-navigation-bar-desktop-inverse-false-is-dark-mode-false-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+19.5 KB
...test-tsx-main-navigation-bar-desktop-inverse-false-is-dark-mode-true-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+18.5 KB
...test-tsx-main-navigation-bar-desktop-inverse-true-is-dark-mode-false-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+19.5 KB
...-test-tsx-main-navigation-bar-desktop-inverse-true-is-dark-mode-true-1-snap.png
Oops, something went wrong.
Binary file removed
BIN
-19.5 KB
...-tsx-main-navigation-bar-desktop-is-inverse-false-is-dark-mode-false-1-snap.png
Diff not rendered.
Binary file removed
BIN
-19.5 KB
...t-tsx-main-navigation-bar-desktop-is-inverse-false-is-dark-mode-true-1-snap.png
Diff not rendered.
Binary file removed
BIN
-18.5 KB
...t-tsx-main-navigation-bar-desktop-is-inverse-true-is-dark-mode-false-1-snap.png
Diff not rendered.
Binary file removed
BIN
-19.5 KB
...st-tsx-main-navigation-bar-desktop-is-inverse-true-is-dark-mode-true-1-snap.png
Diff not rendered.
File renamed without changes
Binary file added
BIN
+29.7 KB
...test-tsx-main-navigation-bar-mobile-inverse-false-is-dark-mode-false-2-snap.png
Oops, something went wrong.
Binary file added
BIN
+17.5 KB
...-test-tsx-main-navigation-bar-mobile-inverse-false-is-dark-mode-true-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+30 KB
...-test-tsx-main-navigation-bar-mobile-inverse-false-is-dark-mode-true-2-snap.png
Oops, something went wrong.
Binary file added
BIN
+17.3 KB
...-test-tsx-main-navigation-bar-mobile-inverse-true-is-dark-mode-false-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+29.6 KB
...-test-tsx-main-navigation-bar-mobile-inverse-true-is-dark-mode-false-2-snap.png
Oops, something went wrong.
Binary file added
BIN
+17.5 KB
...t-test-tsx-main-navigation-bar-mobile-inverse-true-is-dark-mode-true-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+30 KB
...t-test-tsx-main-navigation-bar-mobile-inverse-true-is-dark-mode-true-2-snap.png
Oops, something went wrong.
Binary file removed
BIN
-29.8 KB
...t-tsx-main-navigation-bar-mobile-is-inverse-false-is-dark-mode-false-2-snap.png
Diff not rendered.
Binary file removed
BIN
-17.6 KB
...st-tsx-main-navigation-bar-mobile-is-inverse-false-is-dark-mode-true-1-snap.png
Diff not rendered.
Binary file removed
BIN
-30 KB
...st-tsx-main-navigation-bar-mobile-is-inverse-false-is-dark-mode-true-2-snap.png
Diff not rendered.
Binary file removed
BIN
-17.4 KB
...st-tsx-main-navigation-bar-mobile-is-inverse-true-is-dark-mode-false-1-snap.png
Diff not rendered.
Binary file removed
BIN
-29.7 KB
...st-tsx-main-navigation-bar-mobile-is-inverse-true-is-dark-mode-false-2-snap.png
Diff not rendered.
Binary file removed
BIN
-17.6 KB
...est-tsx-main-navigation-bar-mobile-is-inverse-true-is-dark-mode-true-1-snap.png
Diff not rendered.
Binary file removed
BIN
-30 KB
...est-tsx-main-navigation-bar-mobile-is-inverse-true-is-dark-mode-true-2-snap.png
Diff not rendered.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added
BIN
+10.1 KB
...st-tsx-navigation-bar-inverse-true-is-dark-mode-false-device-desktop-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+12.3 KB
...tsx-navigation-bar-inverse-true-is-dark-mode-false-device-mobile-ios-1-snap.png
Oops, something went wrong.
File renamed without changes
File renamed without changes
Binary file removed
BIN
-9.72 KB
...tsx-navigation-bar-is-inverse-true-is-dark-mode-false-device-desktop-1-snap.png
Diff not rendered.
Binary file removed
BIN
-11.8 KB
...-navigation-bar-is-inverse-true-is-dark-mode-false-device-mobile-ios-1-snap.png
Diff not rendered.
Binary file modified
BIN
+20.8 KB
(170%)
...mage_snapshots__/title-screenshot-test-desktop-with-link-and-long-text-snap.png
Oops, something went wrong.
Binary file modified
BIN
+5.23 KB
(140%)
...ot_tests__/__image_snapshots__/title-screenshot-test-desktop-with-link-snap.png
Oops, something went wrong.
Binary file modified
BIN
+3.55 KB
(130%)
...tests__/__image_snapshots__/title-screenshot-test-desktop-without-link-snap.png
Oops, something went wrong.
Binary file modified
BIN
+36.4 KB
(160%)
...apshots__/title-screenshot-test-mobile_android-with-link-and-long-text-snap.png
Oops, something went wrong.
Binary file modified
BIN
+8.72 KB
(140%)
...s__/__image_snapshots__/title-screenshot-test-mobile_android-with-link-snap.png
Oops, something went wrong.
Binary file modified
BIN
+5.24 KB
(130%)
.../__image_snapshots__/title-screenshot-test-mobile_android-without-link-snap.png
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 |
---|---|---|
@@ -1,109 +1,27 @@ | ||
import {openStoryPage, screen} from '../test-utils'; | ||
|
||
test('Hero (default)', async () => { | ||
import type {Device} from '../test-utils'; | ||
|
||
const DEVICES = ['MOBILE_IOS', 'DESKTOP']; | ||
const BACKGROUND = ['default', 'brand']; | ||
|
||
const getCases = () => { | ||
const cases = []; | ||
for (const background of BACKGROUND) { | ||
for (const device of DEVICES) { | ||
cases.push([background, device]); | ||
} | ||
} | ||
return cases; | ||
}; | ||
|
||
test.each(getCases())('Hero - %s (%s)', async (background, device) => { | ||
await openStoryPage({ | ||
id: 'components-hero-component--default', | ||
device: 'MOBILE_IOS', | ||
args: { | ||
media: 'image', | ||
headlineType: 'promo', | ||
headline: 'Hero', | ||
pretitle: 'Pretitle', | ||
title: 'Title', | ||
description: 'This is a long description with a long text to see how this works', | ||
withExtra: false, | ||
actions: 'button and link', | ||
background: 'default', | ||
height: '100vh', | ||
aspectRatio: '16:9', | ||
}, | ||
id: 'components-hero--default', | ||
device: device as Device, | ||
args: {background}, | ||
}); | ||
|
||
const heroDefault = await screen.findByTestId('hero'); | ||
expect(await heroDefault.screenshot()).toMatchImageSnapshot(); | ||
|
||
await openStoryPage({ | ||
id: 'components-hero-component--default', | ||
device: 'MOBILE_IOS', | ||
args: { | ||
media: 'image', | ||
headlineType: 'promo', | ||
headline: 'Hero', | ||
pretitle: 'Pretitle', | ||
title: 'Title', | ||
withExtra: true, | ||
actions: 'button and link', | ||
background: 'brand', | ||
height: '100vh', | ||
aspectRatio: '16:9', | ||
}, | ||
}); | ||
|
||
const heroBrand = await screen.findByTestId('hero'); | ||
expect(await heroBrand.screenshot()).toMatchImageSnapshot(); | ||
}); | ||
|
||
test('Hero desktop', async () => { | ||
await openStoryPage({ | ||
id: 'components-hero-component--default', | ||
device: 'DESKTOP', | ||
args: { | ||
media: 'image', | ||
headlineType: 'promo', | ||
headline: 'Hero', | ||
pretitle: 'Pretitle', | ||
title: 'Title', | ||
description: 'This is a long description with a long text to see how this works', | ||
withExtra: false, | ||
actions: 'button and link', | ||
background: 'default', | ||
height: '100vh', | ||
aspectRatio: '16:9', | ||
desktopMediaPosition: 'left', | ||
}, | ||
}); | ||
|
||
const heroDefault = await screen.findByTestId('hero'); | ||
expect(await heroDefault.screenshot()).toMatchImageSnapshot(); | ||
|
||
await openStoryPage({ | ||
id: 'components-hero-component--default', | ||
device: 'DESKTOP', | ||
args: { | ||
media: 'image', | ||
headlineType: 'promo', | ||
headline: 'Hero', | ||
pretitle: 'Pretitle', | ||
title: 'Title', | ||
withExtra: true, | ||
actions: 'button and link', | ||
background: 'brand', | ||
height: '100vh', | ||
aspectRatio: '16:9', | ||
desktopMediaPosition: 'right', | ||
}, | ||
}); | ||
|
||
const heroBrand = await screen.findByTestId('hero'); | ||
expect(await heroBrand.screenshot()).toMatchImageSnapshot(); | ||
}); | ||
|
||
test('Hero slideshow (mobile)', async () => { | ||
await openStoryPage({ | ||
id: 'components-hero-slideshow--default', | ||
device: 'MOBILE_IOS', | ||
}); | ||
|
||
const slideshowMobile = await screen.findByTestId('hero'); | ||
expect(await slideshowMobile.screenshot()).toMatchImageSnapshot(); | ||
}); | ||
|
||
test('Hero slideshow (desktop)', async () => { | ||
await openStoryPage({ | ||
id: 'components-hero-slideshow--default', | ||
device: 'DESKTOP', | ||
}); | ||
|
||
const slideshowDesktop = await screen.findByTestId('hero'); | ||
expect(await slideshowDesktop.screenshot()).toMatchImageSnapshot(); | ||
const story = await screen.findByTestId('hero'); | ||
expect(await story.screenshot()).toMatchImageSnapshot(); | ||
}); |
Oops, something went wrong.