Files
web/packages/design-system/lib/components/RateCard/NoRateAvailable/NoRateAvailable.stories.tsx
Joakim Jäderberg f531c7a49f Merged in feature/storybook-tests (pull request #2623)
Feature/storybook tests

* feature: add interaction tests for storybook and upgrade storybook@9

* add a11y testing for storybook

* Merge branch 'master' of bitbucket.org:scandic-swap/web into feature/storybook-tests

* Test and build only required packages

* .

* .

* .

* .

* .

* .

* .

* disable playwright tests in netlify ci

* .

* debug out process.env

* don't run playwright on CI

* remove unused netlify-plugin-playwright-cache

* .

* .

* .

* .

* .

* .

* remove turbo dependancy to design-system#test

* merge

* merge


Approved-by: Anton Gunnarsson
2025-08-14 06:25:08 +00:00

63 lines
1.5 KiB
TypeScript

import type { Meta, StoryObj } from '@storybook/react-vite'
import NoRateAvailableCard from '.'
const meta: Meta<typeof NoRateAvailableCard> = {
title: 'Components/RateCard/NoRateAvailable',
component: NoRateAvailableCard,
decorators: [
(Story) => (
<div style={{ maxWidth: '400px' }}>
<Story />
</div>
),
],
argTypes: {
rateTitle: { control: 'text' },
paymentTerm: { control: 'text' },
noPricesAvailableText: { control: 'text' },
},
}
export default meta
type Story = StoryObj<typeof NoRateAvailableCard>
export const NoRateAvailable: Story = {
args: {
variant: 'Regular',
rateTitle: 'FREE CANCELLATION',
paymentTerm: 'PAY NOW',
noPricesAvailableText: 'No prices available',
},
}
export const NoRateAvailableCampaign: Story = {
args: {
variant: 'Campaign',
rateTitle: 'FREE CANCELLATION',
paymentTerm: 'PAY NOW',
bannerText: 'Campaign ∙ Breakfast included',
noPricesAvailableText: 'No prices available',
},
}
export const NoRateAvailableCode: Story = {
args: {
variant: 'Code',
rateTitle: 'FREE CANCELLATION',
paymentTerm: 'PAY NOW',
bannerText: 'WDCPHG ∙ Breakfast included',
noPricesAvailableText: 'No prices available',
},
}
export const NoRateAvailablePoints: Story = {
args: {
variant: 'Points',
rateTitle: 'FREE CANCELLATION',
paymentTerm: 'PAY NOW',
bannerText: 'WDCPHG ∙ Breakfast included',
noPricesAvailableText: 'No prices available',
},
}