Skip to content

Stephen/eyes branch #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion frontend/apps/marketing/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export default defineConfig<EyesFixture>({
},
sendDom: true,
failTestsOnDiff: 'afterEach',
branchName: 'staging',
// Additional configuration options...
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,28 @@ export const SectionWithBackgroundColor: Story = {
},
};

export const SectionWithBackgroundColorT: Story = {
args: {
background: sectionBackground.secondary,
padding: 'l',
children: (
<>
<Heading2>This is a section with a background color!</Heading2>
<BodyOneText>I'm just a sentence.</BodyOneText>
</>
),
},
play: async ({canvasElement}: {canvasElement: HTMLElement}) => {
const canvas = within(canvasElement);
const heading = canvas.getByText(
'This is a section with a background color!',
);

// check if children content is in the section
await expect(heading).toBeInTheDocument();
},
};

export const SectionWithBackgroundPattern: Story = {
args: {
background: sectionBackground.patternPrimary,
Expand Down
Loading