Skip to content

Commit d236ea3

Browse files
committed
fix(e2e): refine URL matching for ktor page test
- Update `waitForURL` logic in server-side-use-cases spec to handle dynamic URL matching fix(case-studies): improve description rendering logic - Wrap Markdown component in a div for better structure and testability
1 parent 8668f85 commit d236ea3

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

blocks/case-studies/card/case-studies-card.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,11 @@ const CaseStudyCardText: React.FC<CaseStudyCardProps> = ({ className, mode, ...i
5252
</div>
5353
}
5454

55-
{item.description && <Markdown
56-
className={cn(styles.description)}
57-
data-testid="case-studies-card-description"
58-
>{item.description}</Markdown>}
55+
{item.description &&
56+
<div className={cn(styles.description)} data-testid="case-studies-card-description">
57+
<Markdown>{item.description}</Markdown>
58+
</div>
59+
}
5960

6061
{item.signature &&
6162
<div>

data/case-studies/case-studies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ items:
683683
alternateLogo:
684684
- /images/case-studies/kakao-pay-logo-dark.svg
685685
isExternal: true
686-
link: https://blog.jetbrains.com/kotlin/2025/06/case-study-why-kakao-pay-chose-kotlin-for-backend-development/
686+
link: https://blog.jetbrains.com/kotlin/2025/07/case-study-why-kakao-pay-chose-kotlin-for-backend-development/
687687
#------------------------------------------------------------------------
688688
- id: case-study-kingfisher
689689
type: server-side

test/e2e/server-side-use-cases.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ test.describe('Server-Side landing page', async () => {
6969
// the url is hardcoded due to reditect
7070
const ktorGetStartedLinkURL = 'https://ktor.io/docs/welcome.html';
7171

72-
await page.waitForURL(ktorGetStartedLinkURL);
72+
await page.waitForURL(url => url.toString().includes(ktorGetStartedLinkURL));
7373
expect(page.url()).toContain(ktorGetStartedLinkURL);
7474
});
7575

0 commit comments

Comments
 (0)