diff --git a/cypress/snapshots/b2c/components/Indicator/Indicator.update-test.component-test.tsx/plasma-b2c Indicator -- [PLASMA-T1738] Indicator size=l, view=default.snap.png b/cypress/snapshots/b2c/components/Indicator/Indicator.update-test.component-test.tsx/plasma-b2c Indicator -- [PLASMA-T1738] Indicator size=l, view=default.snap.png new file mode 100644 index 0000000000..e0c81db1e1 Binary files /dev/null and b/cypress/snapshots/b2c/components/Indicator/Indicator.update-test.component-test.tsx/plasma-b2c Indicator -- [PLASMA-T1738] Indicator size=l, view=default.snap.png differ diff --git a/cypress/snapshots/b2c/components/Indicator/Indicator.update-test.component-test.tsx/plasma-b2c Indicator -- [PLASMA-T1739] Indicator size=m, view=accent.snap.png b/cypress/snapshots/b2c/components/Indicator/Indicator.update-test.component-test.tsx/plasma-b2c Indicator -- [PLASMA-T1739] Indicator size=m, view=accent.snap.png new file mode 100644 index 0000000000..56e5a0146d Binary files /dev/null and b/cypress/snapshots/b2c/components/Indicator/Indicator.update-test.component-test.tsx/plasma-b2c Indicator -- [PLASMA-T1739] Indicator size=m, view=accent.snap.png differ diff --git a/cypress/snapshots/b2c/components/Indicator/Indicator.update-test.component-test.tsx/plasma-b2c Indicator -- [PLASMA-T1740] Indicator size=s, view=inactive.snap.png b/cypress/snapshots/b2c/components/Indicator/Indicator.update-test.component-test.tsx/plasma-b2c Indicator -- [PLASMA-T1740] Indicator size=s, view=inactive.snap.png new file mode 100644 index 0000000000..ccb161a02d Binary files /dev/null and b/cypress/snapshots/b2c/components/Indicator/Indicator.update-test.component-test.tsx/plasma-b2c Indicator -- [PLASMA-T1740] Indicator size=s, view=inactive.snap.png differ diff --git a/cypress/snapshots/b2c/components/Indicator/Indicator.update-test.component-test.tsx/plasma-b2c Indicator -- [PLASMA-T1741] Indicator size=l, view=positive.snap.png b/cypress/snapshots/b2c/components/Indicator/Indicator.update-test.component-test.tsx/plasma-b2c Indicator -- [PLASMA-T1741] Indicator size=l, view=positive.snap.png new file mode 100644 index 0000000000..e43bb7f092 Binary files /dev/null and b/cypress/snapshots/b2c/components/Indicator/Indicator.update-test.component-test.tsx/plasma-b2c Indicator -- [PLASMA-T1741] Indicator size=l, view=positive.snap.png differ diff --git a/cypress/snapshots/b2c/components/Indicator/Indicator.update-test.component-test.tsx/plasma-b2c Indicator -- [PLASMA-T1742] Indicator size=l, view=warning.snap.png b/cypress/snapshots/b2c/components/Indicator/Indicator.update-test.component-test.tsx/plasma-b2c Indicator -- [PLASMA-T1742] Indicator size=l, view=warning.snap.png new file mode 100644 index 0000000000..545a01587b Binary files /dev/null and b/cypress/snapshots/b2c/components/Indicator/Indicator.update-test.component-test.tsx/plasma-b2c Indicator -- [PLASMA-T1742] Indicator size=l, view=warning.snap.png differ diff --git a/cypress/snapshots/b2c/components/Indicator/Indicator.update-test.component-test.tsx/plasma-b2c Indicator -- [PLASMA-T1743] Indicator size=l, view=negative.snap.png b/cypress/snapshots/b2c/components/Indicator/Indicator.update-test.component-test.tsx/plasma-b2c Indicator -- [PLASMA-T1743] Indicator size=l, view=negative.snap.png new file mode 100644 index 0000000000..9e4fac5495 Binary files /dev/null and b/cypress/snapshots/b2c/components/Indicator/Indicator.update-test.component-test.tsx/plasma-b2c Indicator -- [PLASMA-T1743] Indicator size=l, view=negative.snap.png differ diff --git a/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1758] Link view=default.snap.png b/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1758] Link view=default.snap.png new file mode 100644 index 0000000000..f413e3aeb9 Binary files /dev/null and b/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1758] Link view=default.snap.png differ diff --git a/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1759] Link view=accent.snap.png b/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1759] Link view=accent.snap.png new file mode 100644 index 0000000000..fd41a4fdc8 Binary files /dev/null and b/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1759] Link view=accent.snap.png differ diff --git a/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1760] Link view=secondary.snap.png b/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1760] Link view=secondary.snap.png new file mode 100644 index 0000000000..061b8d6995 Binary files /dev/null and b/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1760] Link view=secondary.snap.png differ diff --git a/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1761] Link view=clear.snap.png b/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1761] Link view=clear.snap.png new file mode 100644 index 0000000000..accf433fa5 Binary files /dev/null and b/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1761] Link view=clear.snap.png differ diff --git a/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1762] Link view=warning.snap.png b/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1762] Link view=warning.snap.png new file mode 100644 index 0000000000..6a06ecb2e3 Binary files /dev/null and b/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1762] Link view=warning.snap.png differ diff --git a/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1763] Link view=positive.snap.png b/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1763] Link view=positive.snap.png new file mode 100644 index 0000000000..35dad855b8 Binary files /dev/null and b/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1763] Link view=positive.snap.png differ diff --git a/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1764] Link view=negative, focused.snap.png b/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1764] Link view=negative, focused.snap.png new file mode 100644 index 0000000000..917dc7f3c7 Binary files /dev/null and b/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1764] Link view=negative, focused.snap.png differ diff --git a/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1765] Link view=tertiary.snap.png b/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1765] Link view=tertiary.snap.png new file mode 100644 index 0000000000..64c2e6b16d Binary files /dev/null and b/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1765] Link view=tertiary.snap.png differ diff --git a/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1766] Link view=paragraph, disabled.snap.png b/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1766] Link view=paragraph, disabled.snap.png new file mode 100644 index 0000000000..a42bd078bb Binary files /dev/null and b/cypress/snapshots/b2c/components/Link/Link.update-test.component-test.tsx/plasma-b2c Link -- [PLASMA-T1766] Link view=paragraph, disabled.snap.png differ diff --git a/packages/plasma-b2c/src/components/Indicator/Indicator.update-test.component-test.tsx b/packages/plasma-b2c/src/components/Indicator/Indicator.update-test.component-test.tsx new file mode 100644 index 0000000000..c65600887a --- /dev/null +++ b/packages/plasma-b2c/src/components/Indicator/Indicator.update-test.component-test.tsx @@ -0,0 +1,66 @@ +import React from 'react'; +import { mount, CypressTestDecorator, getComponent } from '@salutejs/plasma-cy-utils'; + +describe('plasma-b2c: Indicator', () => { + const Indicator = getComponent('Indicator'); + + it('[PLASMA-T1738] Indicator: size=l, view=default', () => { + mount( + + + , + ); + + cy.matchImageSnapshot(); + }); + + it('[PLASMA-T1739] Indicator: size=m, view=accent', () => { + mount( + + + , + ); + + cy.matchImageSnapshot(); + }); + + it('[PLASMA-T1740] Indicator: size=s, view=inactive', () => { + mount( + + + , + ); + + cy.matchImageSnapshot(); + }); + + it('[PLASMA-T1741] Indicator: size=l, view=positive', () => { + mount( + + + , + ); + + cy.matchImageSnapshot(); + }); + + it('[PLASMA-T1742] Indicator: size=l, view=warning', () => { + mount( + + + , + ); + + cy.matchImageSnapshot(); + }); + + it('[PLASMA-T1743] Indicator: size=l, view=negative', () => { + mount( + + + , + ); + + cy.matchImageSnapshot(); + }); +}); diff --git a/packages/plasma-b2c/src/components/Link/Link.update-test.component-test.tsx b/packages/plasma-b2c/src/components/Link/Link.update-test.component-test.tsx new file mode 100644 index 0000000000..cdd49fa9b6 --- /dev/null +++ b/packages/plasma-b2c/src/components/Link/Link.update-test.component-test.tsx @@ -0,0 +1,116 @@ +import React from 'react'; +import { mount, CypressTestDecorator, getComponent } from '@salutejs/plasma-cy-utils'; + +describe('plasma-b2c: Link', () => { + const Link = getComponent('Link'); + + it('[PLASMA-T1758] Link: view=default', () => { + mount( + + + Hello Plasma + + , + ); + + cy.matchImageSnapshot(); + }); + + it('[PLASMA-T1759] Link: view=accent', () => { + mount( + + + Hello Plasma + + , + ); + + cy.matchImageSnapshot(); + }); + + it('[PLASMA-T1760] Link: view=secondary', () => { + mount( + + + Hello Plasma + + , + ); + + cy.matchImageSnapshot(); + }); + + it('[PLASMA-T1761] Link: view=clear', () => { + mount( + + + Hello Plasma + + , + ); + + cy.matchImageSnapshot(); + }); + + it('[PLASMA-T1762] Link: view=warning', () => { + mount( + + + Hello Plasma + + , + ); + + cy.matchImageSnapshot(); + }); + + it('[PLASMA-T1763] Link: view=positive', () => { + mount( + + + Hello Plasma + + , + ); + + cy.matchImageSnapshot(); + }); + + it('[PLASMA-T1764] Link: view=negative, focused', () => { + mount( + + + Hello Plasma + + , + ); + + cy.get('body').tab(); + + cy.matchImageSnapshot(); + }); + + it('[PLASMA-T1765] Link: view=tertiary', () => { + mount( + + + Hello Plasma + + , + ); + + cy.matchImageSnapshot(); + }); + + it('[PLASMA-T1766] Link: view=paragraph, disabled', () => { + mount( + + + Hello Plasma + + , + ); + + cy.matchImageSnapshot(); + }); +});