Skip to content

Commit 4741bc1

Browse files
authored
Merge pull request #11 from code-dot-org/stephen/eyes-branch
Stephen/eyes branch
2 parents 8e8f361 + 2ae86a8 commit 4741bc1

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

frontend/apps/marketing/playwright.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ export default defineConfig<EyesFixture>({
3636
},
3737
sendDom: true,
3838
failTestsOnDiff: 'afterEach',
39-
branchName: 'staging',
4039
// Additional configuration options...
4140
},
4241
},

frontend/packages/component-library/src/cms/section/stories/Section.story.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,28 @@ export const SectionWithBackgroundColor: Story = {
6868
},
6969
};
7070

71+
export const SectionWithBackgroundColorT: Story = {
72+
args: {
73+
background: sectionBackground.secondary,
74+
padding: 'l',
75+
children: (
76+
<>
77+
<Heading2>This is a section with a background color!</Heading2>
78+
<BodyOneText>I'm just a sentence.</BodyOneText>
79+
</>
80+
),
81+
},
82+
play: async ({canvasElement}: {canvasElement: HTMLElement}) => {
83+
const canvas = within(canvasElement);
84+
const heading = canvas.getByText(
85+
'This is a section with a background color!',
86+
);
87+
88+
// check if children content is in the section
89+
await expect(heading).toBeInTheDocument();
90+
},
91+
};
92+
7193
export const SectionWithBackgroundPattern: Story = {
7294
args: {
7395
background: sectionBackground.patternPrimary,

0 commit comments

Comments
 (0)