-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin' into pladaria/WEB-1570_configur…
…e-sonarqube
- Loading branch information
Showing
245 changed files
with
854 additions
and
443 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
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
Binary file added
BIN
+308 KB
...snapshots__/carousel-screenshot-test-tsx-carousel-mobile-in-vivo-new-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
+321 KB
...snapshots__/carousel-screenshot-test-tsx-carousel-mobile-in-vivo-new-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 added
BIN
+203 KB
...el-screenshot-test-tsx-carousel-mobile-with-large-mobile-page-offset-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
+216 KB
...el-screenshot-test-tsx-carousel-mobile-with-large-mobile-page-offset-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
+21 Bytes
(100%)
...ots__/data-card-screenshot-test-tsx-data-card-with-aspect-ratio-7-10-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
+17 Bytes
(100%)
...ta-card-screenshot-test-tsx-display-data-card-with-aspect-ratio-7-10-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
-145 Bytes
(100%)
...ts__/display-media-card-screenshot-test-tsx-display-media-card-group-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
+283 Bytes
(100%)
...ccess-feedback-screen-appears-properly-with-vivo-new-skin-on-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 modified
BIN
+1022 Bytes
(100%)
...ss-feedback-screen-appears-properly-with-vivo-new-skin-on-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 modified
BIN
+131 Bytes
(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
+14 Bytes
(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
-169 Bytes
(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
+131 Bytes
(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
+14 Bytes
(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
-169 Bytes
(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
+131 Bytes
(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
+14 Bytes
(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
-169 Bytes
(100%)
.../__image_snapshots__/icons-screenshot-test-tsx-icons-catalog-for-o-2-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
-1.93 KB
(99%)
..._image_snapshots__/poster-card-screenshot-test-tsx-poster-card-group-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
-208 Bytes
...__/__image_snapshots__/progress-bar-screenshot-test-tsx-progress-bar-1-snap.png
Binary file not shown.
Binary file added
BIN
+224 Bytes
...pshots__/progress-bar-screenshot-test-tsx-progress-bar-color-default-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
+212 Bytes
..._snapshots__/progress-bar-screenshot-test-tsx-progress-bar-color-red-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
+53.1 KB
...-screenshot-test-tsx-info-sheet-with-multiple-description-paragraphs-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
+20 Bytes
(100%)
...ots__/snap-card-screenshot-test-tsx-snap-card-with-aspect-ratio-7-10-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
-8.99 KB
..._image_snapshots__/stacking-group-screenshot-test-tsx-stacking-group-1-snap.png
Binary file not shown.
Binary file removed
BIN
-10.5 KB
..._image_snapshots__/stacking-group-screenshot-test-tsx-stacking-group-2-snap.png
Diff not rendered.
Binary file removed
BIN
-10.2 KB
..._image_snapshots__/stacking-group-screenshot-test-tsx-stacking-group-3-snap.png
Diff not rendered.
Binary file removed
BIN
-10.6 KB
..._image_snapshots__/stacking-group-screenshot-test-tsx-stacking-group-4-snap.png
Diff not rendered.
Binary file removed
BIN
-9.29 KB
..._image_snapshots__/stacking-group-screenshot-test-tsx-stacking-group-5-snap.png
Diff not rendered.
Binary file removed
BIN
-11.3 KB
..._image_snapshots__/stacking-group-screenshot-test-tsx-stacking-group-6-snap.png
Diff not rendered.
Binary file removed
BIN
-10.1 KB
..._image_snapshots__/stacking-group-screenshot-test-tsx-stacking-group-7-snap.png
Diff not rendered.
Binary file removed
BIN
-10.6 KB
..._image_snapshots__/stacking-group-screenshot-test-tsx-stacking-group-8-snap.png
Diff not rendered.
Binary file added
BIN
+10.9 KB
...shot-test-tsx-stacking-group-type-circle-stacked-false-inverse-false-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+11 KB
...nshot-test-tsx-stacking-group-type-circle-stacked-false-inverse-true-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+10.1 KB
...nshot-test-tsx-stacking-group-type-circle-stacked-true-inverse-false-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+10.8 KB
...enshot-test-tsx-stacking-group-type-circle-stacked-true-inverse-true-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+10.2 KB
...shot-test-tsx-stacking-group-type-square-stacked-false-inverse-false-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+10.3 KB
...nshot-test-tsx-stacking-group-type-square-stacked-false-inverse-true-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+9.37 KB
...nshot-test-tsx-stacking-group-type-square-stacked-true-inverse-false-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+9.72 KB
...enshot-test-tsx-stacking-group-type-square-stacked-true-inverse-true-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+257 Bytes
(100%)
...ss-feedback-component-appears-properly-with-vivo-new-skin-on-desktop-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+931 Bytes
(100%)
...feedback-component-appears-properly-with-vivo-new-skin-on-mobile-ios-1-snap.png
Oops, something went wrong.
Binary file removed
BIN
-52.6 KB
...mage_snapshots__/title-screenshot-test-desktop-with-link-and-long-text-snap.png
Diff not rendered.
Binary file removed
BIN
-18.9 KB
...ot_tests__/__image_snapshots__/title-screenshot-test-desktop-with-link-snap.png
Diff not rendered.
Binary file removed
BIN
-13.7 KB
...tests__/__image_snapshots__/title-screenshot-test-desktop-without-link-snap.png
Diff not rendered.
Binary file removed
BIN
-93.5 KB
...apshots__/title-screenshot-test-mobile_android-with-link-and-long-text-snap.png
Diff not rendered.
Binary file removed
BIN
-29.3 KB
...s__/__image_snapshots__/title-screenshot-test-mobile_android-with-link-snap.png
Diff not rendered.
Binary file removed
BIN
-20.4 KB
.../__image_snapshots__/title-screenshot-test-mobile_android-without-link-snap.png
Diff not rendered.
Binary file added
BIN
+2.19 KB
...mage_snapshots__/title-screenshot-test-tsx-title-1-with-icon-desktop-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+3.59 KB
...e_snapshots__/title-screenshot-test-tsx-title-1-with-icon-mobile-ios-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+8.33 KB
...__/title-screenshot-test-tsx-title-1-with-link-and-long-text-desktop-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+18.5 KB
...title-screenshot-test-tsx-title-1-with-link-and-long-text-mobile-ios-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+3.05 KB
...mage_snapshots__/title-screenshot-test-tsx-title-1-with-link-desktop-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+4.71 KB
...e_snapshots__/title-screenshot-test-tsx-title-1-with-link-mobile-ios-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+1.71 KB
...e_snapshots__/title-screenshot-test-tsx-title-1-without-link-desktop-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+2.55 KB
...napshots__/title-screenshot-test-tsx-title-1-without-link-mobile-ios-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+3.34 KB
...mage_snapshots__/title-screenshot-test-tsx-title-2-with-icon-desktop-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+5.77 KB
...e_snapshots__/title-screenshot-test-tsx-title-2-with-icon-mobile-ios-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+17.2 KB
...__/title-screenshot-test-tsx-title-2-with-link-and-long-text-desktop-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+32.5 KB
...title-screenshot-test-tsx-title-2-with-link-and-long-text-mobile-ios-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+4.8 KB
...mage_snapshots__/title-screenshot-test-tsx-title-2-with-link-desktop-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+7.63 KB
...e_snapshots__/title-screenshot-test-tsx-title-2-with-link-mobile-ios-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+2.89 KB
...e_snapshots__/title-screenshot-test-tsx-title-2-without-link-desktop-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+4.73 KB
...napshots__/title-screenshot-test-tsx-title-2-without-link-mobile-ios-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+4.37 KB
...mage_snapshots__/title-screenshot-test-tsx-title-3-with-icon-desktop-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+6.71 KB
...e_snapshots__/title-screenshot-test-tsx-title-3-with-icon-mobile-ios-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+21 KB
...__/title-screenshot-test-tsx-title-3-with-link-and-long-text-desktop-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+39.6 KB
...title-screenshot-test-tsx-title-3-with-link-and-long-text-mobile-ios-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+5.71 KB
...mage_snapshots__/title-screenshot-test-tsx-title-3-with-link-desktop-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+8.68 KB
...e_snapshots__/title-screenshot-test-tsx-title-3-with-link-mobile-ios-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+3.86 KB
...e_snapshots__/title-screenshot-test-tsx-title-3-without-link-desktop-1-snap.png
Oops, something went wrong.
Binary file added
BIN
+5.63 KB
...napshots__/title-screenshot-test-tsx-title-3-without-link-mobile-ios-1-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
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,37 +1,48 @@ | ||
import {openStoryPage} from '../test-utils'; | ||
import {openStoryPage, screen} from '../test-utils'; | ||
|
||
test('Title', async () => { | ||
const argsCases = [ | ||
{ | ||
caseName: 'without-link', | ||
title: 'This is a title', | ||
linkText: '', | ||
}, | ||
{ | ||
caseName: 'with-link', | ||
title: 'This is a title with link', | ||
linkText: 'Link', | ||
}, | ||
{ | ||
caseName: 'with-link-and-long-text', | ||
title: 'This is a title with link and with a very long text that may wrap to multiple lines in small screens', | ||
linkText: 'Link', | ||
}, | ||
]; | ||
import type {Device} from '../test-utils'; | ||
|
||
const devices = ['DESKTOP', 'MOBILE_ANDROID'] as const; | ||
const COMPONENT_TYPES = [ | ||
{component: 'Title1', storyName: 'title-1'}, | ||
{component: 'Title2', storyName: 'title-2'}, | ||
{component: 'Title3', storyName: 'title-3'}, | ||
]; | ||
const CASE_NAMES = ['without-link', 'with-link', 'with-link-and-long-text', 'with-icon'] as const; | ||
const DEVICES = ['DESKTOP', 'MOBILE_IOS'] as const; | ||
|
||
for (const {caseName, title, linkText} of argsCases) { | ||
for (const device of devices) { | ||
await openStoryPage({ | ||
id: 'components-title--default', | ||
device, | ||
args: {title, linkText}, | ||
}); | ||
const image = await page.screenshot(); | ||
expect(image).toMatchImageSnapshot({ | ||
customSnapshotIdentifier: `title-screenshot-test-${device.toLowerCase()}-${caseName}`, | ||
}); | ||
const caseArgs = { | ||
'without-link': {title: 'This is a title', right: 'undefined', linkText: undefined}, | ||
'with-link': {title: 'This is a title with link', right: 'link', linkText: 'Link'}, | ||
'with-link-and-long-text': { | ||
title: 'This is a title with link and with a very long text that may wrap to multiple lines in small screens', | ||
right: 'link', | ||
linkText: 'Link', | ||
}, | ||
'with-icon': {title: 'This is a title', right: 'icon', linkText: undefined}, | ||
}; | ||
|
||
const getCases = () => { | ||
const cases = []; | ||
for (const componentType of COMPONENT_TYPES) { | ||
for (const caseName of CASE_NAMES) { | ||
for (const device of DEVICES) { | ||
cases.push([componentType.component, caseName, device, componentType.storyName]); | ||
} | ||
} | ||
} | ||
return cases; | ||
}; | ||
|
||
test.each(getCases())('%s (%s) - %s', async (component, caseName, device, storyName) => { | ||
const args = caseArgs[caseName as (typeof CASE_NAMES)[number]]; | ||
|
||
await openStoryPage({ | ||
id: `components-titles--${storyName}-story`, | ||
device: device as Device, | ||
args: {title: args.title, right: args.right, ...(args.linkText ? {linkText: args.linkText} : {})}, | ||
}); | ||
|
||
const element = await screen.findByTestId(component); | ||
const image = await element.screenshot(); | ||
expect(image).toMatchImageSnapshot(); | ||
}); |
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.