Skip to content

Commit

Permalink
feat(plasma-b2c): update TextFieldGroup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TitanKuzmich committed Nov 12, 2024
1 parent 20664a7 commit 29e0d32
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ describe('plasma-b2c: TextFieldGroup', () => {
<CypressTestDecorator>
<TextFieldGroup size="l">{getTexFields()}</TextFieldGroup>
<PadMe />
<TextFieldGroup size="m">{getTexFields()}</TextFieldGroup>
<TextFieldGroup className="m-group" size="m">
{getTexFields()}
</TextFieldGroup>
<PadMe />
<TextFieldGroup size="s">{getTexFields()}</TextFieldGroup>
<PadMe />
Expand All @@ -26,6 +28,8 @@ describe('plasma-b2c: TextFieldGroup', () => {
</CypressTestDecorator>,
);

cy.get('.m-group input').last().click();

cy.viewport(1366, 768);
cy.matchImageSnapshot();
});
Expand Down Expand Up @@ -65,12 +69,14 @@ describe('plasma-b2c: TextFieldGroup', () => {
{getTexFields()}
</TextFieldGroup>
<PadMe />
<TextFieldGroup orientation="vertical" stretching="filled">
<TextFieldGroup className="vertical-group" orientation="vertical" stretching="filled">
{getTexFields()}
</TextFieldGroup>
</CypressTestDecorator>,
);

cy.get('.vertical-group input').first().click();

cy.viewport(1366, 768);
cy.matchImageSnapshot();
});
Expand All @@ -82,7 +88,7 @@ describe('plasma-b2c: TextFieldGroup', () => {
{getTexFields()}
</TextFieldGroup>
<PadMe />
<TextFieldGroup shape="segmented" gap="dense">
<TextFieldGroup className="segmented-group" shape="segmented" gap="dense">
{getTexFields()}
</TextFieldGroup>
<PadMe />
Expand All @@ -97,6 +103,8 @@ describe('plasma-b2c: TextFieldGroup', () => {
</CypressTestDecorator>,
);

cy.get('.segmented-group input').last().click();

cy.viewport(1366, 768);
cy.matchImageSnapshot();
});
Expand Down

0 comments on commit 29e0d32

Please sign in to comment.