-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(services-page): add ServicesSection
- Loading branch information
1 parent
9d03c2a
commit 6314bd3
Showing
9 changed files
with
1,543 additions
and
1 deletion.
There are no files selected for viewing
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
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
31 changes: 31 additions & 0 deletions
31
src/components/demo/ServicesSection/ServicesSection.spec.ts
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,31 @@ | ||
import { describe, beforeEach, test } from 'vitest'; | ||
import { render, type RenderResult } from '@testing-library/vue'; | ||
import ServicesSection from './ServicesSection.vue'; | ||
|
||
describe('ServicesSection.vue', () => { | ||
let harness: RenderResult; | ||
|
||
beforeEach(() => { | ||
harness = render(ServicesSection, {}); | ||
}); | ||
|
||
test('renders component', () => { | ||
const { getByText } = harness; | ||
|
||
getByText('ServicesSection.title'); | ||
getByText('ServicesSection.Benefit1.title'); | ||
getByText('ServicesSection.Benefit1.description'); | ||
getByText('ServicesSection.Benefit2.title'); | ||
getByText('ServicesSection.Benefit2.description'); | ||
getByText('ServicesSection.Benefit3.title'); | ||
getByText('ServicesSection.Benefit3.description'); | ||
getByText('ServicesSection.Benefit4.title'); | ||
getByText('ServicesSection.Benefit4.description'); | ||
getByText('ServicesSection.Benefit5.title'); | ||
getByText('ServicesSection.Benefit5.description'); | ||
getByText('ServicesSection.Benefit6.title'); | ||
getByText('ServicesSection.Benefit6.description'); | ||
getByText('ServicesSection.Benefit7.title'); | ||
getByText('ServicesSection.Benefit7.description'); | ||
}); | ||
}); |
32 changes: 32 additions & 0 deletions
32
src/components/demo/ServicesSection/ServicesSection.stories.ts
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,32 @@ | ||
import type { StoryFn } from '@storybook/vue3'; | ||
import ServicesSection from './ServicesSection.vue'; | ||
import ComponentDocs from '~/assets/design-system/docs/components/ComponentDocs.vue'; | ||
|
||
export default { | ||
title: 'Demo/ServicesSection', | ||
component: ServicesSection, | ||
argTypes: {}, | ||
}; | ||
|
||
const Template: StoryFn = (args) => ({ | ||
components: { | ||
ServicesSection, | ||
ComponentDocs, | ||
}, | ||
inheritAttrs: false, | ||
setup() { | ||
return { args }; | ||
}, | ||
template: `<component-docs | ||
component-name="ServicesSection" | ||
usage="TBD" | ||
> | ||
<services-section v-bind="args" /> | ||
</component-docs>`, | ||
}); | ||
|
||
export const Default = { | ||
render: Template, | ||
|
||
args: {}, | ||
}; |
Oops, something went wrong.