🎥 Make videos programmatically with React
Internal: Consolidate timeline context menu tests
JonnyBurger4da4b9e06454
diff --git a/packages/example/e2e/studio.test.mts b/packages/example/e2e/studio.test.mtsindex a503312e23..a2d95394b8 100644--- a/packages/example/e2e/studio.test.mts+++ b/packages/example/e2e/studio.test.mts@@ -2009,7 +2009,7 @@ test.describe('visual mode', () => {).toBeVisible();});- test('should apply a timeline context menu action to multiple selected sequences', async ({+ test('should apply timeline context menu actions to multiple selected sequences', async ({page,}) => {const sourceBefore = fs.readFileSync(sequenceShiftFile, 'utf-8');@@ -2075,31 +2075,15 @@ test.describe('visual mode', () => {];}).toEqual([false, false]);- } finally {- fs.writeFileSync(sequenceShiftFile, sourceBefore);- }- });- test('should duplicate each selected timeline sequence once', async ({- page,- }) => {- const sourceBefore = fs.readFileSync(sequenceShiftFile, 'utf-8');-- try {- await page.goto(`${STUDIO_URL}/sequence-shift-repro`);- await page.waitForFunction(- () => !document.body.innerText.includes('Loading...'),- {timeout: 30_000},- );- await page.keyboard.press('g');- const currentFrameInput = page.locator('input:focus');- await currentFrameInput.fill('22');- await currentFrameInput.press('Enter');- const outer = page.getByText('Outer frame descendant', {exact: true});+ await page.keyboard.press('ControlOrMeta+z');+ await expect+ .poll(() => fs.readFileSync(sequenceShiftFile, 'utf-8'))+ .toBe(sourceBefore);+ await expect(outer).toBeVisible({timeout: 15_000});const nestedParent = page.getByText('Nested timing parent', {exact: true,});- await expect(outer).toBeVisible({timeout: 15_000});await expect(nestedParent).toBeVisible();await outer.click();