diff --git a/packages/documentation/cypress/snapshots/components/form-footer.snapshot.ts b/packages/documentation/cypress/snapshots/components/form-footer.snapshot.ts new file mode 100644 index 0000000000..31594064b4 --- /dev/null +++ b/packages/documentation/cypress/snapshots/components/form-footer.snapshot.ts @@ -0,0 +1,7 @@ +describe('Form footer', () => { + it('default', () => { + cy.visit('/iframe.html?id=snapshots--form-footer'); + cy.get('.form-footer post-icon', { timeout: 30000 }).should('be.visible'); + cy.percySnapshot('Form footer', { widths: [320, 1440] }); + }); +}); diff --git a/packages/documentation/src/stories/components/forms/form-footer/form-footer.snapshot.stories.ts b/packages/documentation/src/stories/components/forms/form-footer/form-footer.snapshot.stories.ts new file mode 100644 index 0000000000..cc54c62dca --- /dev/null +++ b/packages/documentation/src/stories/components/forms/form-footer/form-footer.snapshot.stories.ts @@ -0,0 +1,50 @@ +import type { StoryObj } from '@storybook/web-components'; +import meta from './form-footer.stories'; +import { html } from 'lit'; +import { bombArgs } from '@/utils'; + +const { id, ...metaWithoutId } = meta; + +export default { + ...metaWithoutId, + title: 'Snapshots', +}; + +type Story = StoryObj; + +export const FormFooter: Story = { + render: () => { + return html` +