Skip to content

🎥 Make videos programmatically with React

test: select the caption timeline track by accessible group name

Alec Wattsfcde79766701
diff --git a/packages/example/e2e/captions-inspector.test.mts b/packages/example/e2e/captions-inspector.test.mts
index a9e4c61df4..c3ce18633c 100644
--- a/packages/example/e2e/captions-inspector.test.mts
+++ b/packages/example/e2e/captions-inspector.test.mts
@@ -66,7 +66,7 @@ test.describe('captions inspector', () => {
);
const captionsSequence = page
- .getByText('<AnimatedCaptions>', {exact: true})
+ .getByRole('group', {name: 'AnimatedCaptions', exact: true})
.first();
const pageBreakAfterFirstCaption = page.getByRole('button', {
name: 'Add page break after caption 1',