-
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.
- Loading branch information
Pedro Ladaria
committed
Nov 19, 2024
1 parent
78d3544
commit 3d8f7f9
Showing
40 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
Binary file modified
BIN
+11.1 KB
(170%)
...ots__/private-skin-components-screenshot-test-tsx-components-in-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
+11.8 KB
(180%)
...e-skin-components-screenshot-test-tsx-components-in-blau-alternative-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
+12.4 KB
(180%)
...ate-skin-components-screenshot-test-tsx-components-in-blau-dark-mode-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
+11.7 KB
(180%)
...ivate-skin-components-screenshot-test-tsx-components-in-blau-inverse-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
-144 Bytes
(100%)
...ivate-skin-components-screenshot-test-tsx-components-in-blau-inverse-4-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
+12.5 KB
(180%)
...ponents-screenshot-test-tsx-components-in-blau-inverse-and-dark-mode-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
+11.7 KB
(170%)
..._/private-skin-components-screenshot-test-tsx-components-in-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
+11.4 KB
(170%)
...in-components-screenshot-test-tsx-components-in-movistar-alternative-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
+13 KB
(180%)
...skin-components-screenshot-test-tsx-components-in-movistar-dark-mode-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
+12 KB
(180%)
...e-skin-components-screenshot-test-tsx-components-in-movistar-inverse-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
+13.1 KB
(180%)
...nts-screenshot-test-tsx-components-in-movistar-inverse-and-dark-mode-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
+11.5 KB
(170%)
...hots__/private-skin-components-screenshot-test-tsx-components-in-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
+11.8 KB
(180%)
...te-skin-components-screenshot-test-tsx-components-in-o-2-alternative-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
+12.8 KB
(180%)
...vate-skin-components-screenshot-test-tsx-components-in-o-2-dark-mode-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
+13.1 KB
(190%)
...rivate-skin-components-screenshot-test-tsx-components-in-o-2-inverse-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
+12.9 KB
(180%)
...mponents-screenshot-test-tsx-components-in-o-2-inverse-and-dark-mode-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
+11.1 KB
(170%)
...__/private-skin-components-screenshot-test-tsx-components-in-o-2-new-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
+11.7 KB
(170%)
...kin-components-screenshot-test-tsx-components-in-o-2-new-alternative-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
+12.6 KB
(180%)
...-skin-components-screenshot-test-tsx-components-in-o-2-new-dark-mode-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
+61 Bytes
(100%)
...te-skin-components-screenshot-test-tsx-components-in-o-2-new-inverse-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
+12.8 KB
(180%)
...te-skin-components-screenshot-test-tsx-components-in-o-2-new-inverse-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
-185 Bytes
(100%)
...te-skin-components-screenshot-test-tsx-components-in-o-2-new-inverse-4-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
+12.7 KB
(180%)
...ents-screenshot-test-tsx-components-in-o-2-new-inverse-and-dark-mode-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
+11.5 KB
(180%)
...private-skin-components-screenshot-test-tsx-components-in-telefonica-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
+11.4 KB
(180%)
...-components-screenshot-test-tsx-components-in-telefonica-alternative-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
+12.3 KB
(180%)
...in-components-screenshot-test-tsx-components-in-telefonica-dark-mode-3-snap.png
Oops, something went wrong.
Binary file modified
BIN
+11.5 KB
(180%)
...skin-components-screenshot-test-tsx-components-in-telefonica-inverse-3-snap.png
Oops, something went wrong.
Binary file modified
BIN
+12.4 KB
(180%)
...s-screenshot-test-tsx-components-in-telefonica-inverse-and-dark-mode-3-snap.png
Oops, something went wrong.
Binary file modified
BIN
+12.4 KB
(180%)
...shots__/private-skin-components-screenshot-test-tsx-components-in-tu-3-snap.png
Oops, something went wrong.
Binary file modified
BIN
+12.1 KB
(170%)
...ate-skin-components-screenshot-test-tsx-components-in-tu-alternative-3-snap.png
Oops, something went wrong.
Binary file modified
BIN
+13.1 KB
(180%)
...ivate-skin-components-screenshot-test-tsx-components-in-tu-dark-mode-3-snap.png
Oops, something went wrong.
Binary file modified
BIN
+13.5 KB
(180%)
...private-skin-components-screenshot-test-tsx-components-in-tu-inverse-3-snap.png
Oops, something went wrong.
Binary file modified
BIN
+13.3 KB
(180%)
...omponents-screenshot-test-tsx-components-in-tu-inverse-and-dark-mode-3-snap.png
Oops, something went wrong.
Binary file modified
BIN
+11.5 KB
(170%)
..._/private-skin-components-screenshot-test-tsx-components-in-vivo-new-3-snap.png
Oops, something went wrong.
Binary file modified
BIN
+11.7 KB
(170%)
...in-components-screenshot-test-tsx-components-in-vivo-new-alternative-3-snap.png
Oops, something went wrong.
Binary file modified
BIN
+12.6 KB
(180%)
...skin-components-screenshot-test-tsx-components-in-vivo-new-dark-mode-3-snap.png
Oops, something went wrong.
Binary file modified
BIN
+13.7 KB
(190%)
...e-skin-components-screenshot-test-tsx-components-in-vivo-new-inverse-3-snap.png
Oops, something went wrong.
Binary file modified
BIN
+12.6 KB
(180%)
...nts-screenshot-test-tsx-components-in-vivo-new-inverse-and-dark-mode-3-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import * as React from 'react'; | ||
import {screen, render} from '@testing-library/react'; | ||
import ThemeContextProvider from '../theme-context-provider'; | ||
import {makeTheme} from './test-utils'; | ||
import Meter from '../meter'; | ||
|
||
test('Meter custom label', () => { | ||
render( | ||
<ThemeContextProvider theme={makeTheme()}> | ||
<Meter aria-label="Patata" values={[10, 20, 30]} /> | ||
</ThemeContextProvider> | ||
); | ||
|
||
const meter = screen.getByRole('meter', {name: 'Patata'}); | ||
expect(meter).toBeInTheDocument(); | ||
}); | ||
|
||
test('Meter default label', () => { | ||
render( | ||
<ThemeContextProvider theme={makeTheme()}> | ||
<Meter values={[10, 20, 30]} /> | ||
</ThemeContextProvider> | ||
); | ||
|
||
const expectedLabel = | ||
'Indicador de progreso con 3 secciones, total 60% de 100%. Sección 1: 10%. Sección 2: 20%. Sección 3: 30%'; | ||
|
||
const meter = screen.getByRole('meter', {name: expectedLabel}); | ||
expect(meter).toBeInTheDocument(); | ||
}); |
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