Skip to content

GSOC-E2E: Add confirmation of sketch loading before playing it - #4282

Open
Geethegreat wants to merge 1 commit into
processing:developfrom
Geethegreat:fix-sketch-load-race
Open

GSOC-E2E: Add confirmation of sketch loading before playing it#4282
Geethegreat wants to merge 1 commit into
processing:developfrom
Geethegreat:fix-sketch-load-race

Conversation

@Geethegreat

Copy link
Copy Markdown
Member

Issue:

Fixes #

Demo:

Changes:

I have verified that this pull request:

  • has no linting errors (npm run lint)
  • has no test errors (npm run test)
  • has no typecheck errors (npm run typecheck)
  • is from a uniquely-named feature branch and is up to date with the develop branch.
  • is descriptively named and links to an issue number, i.e. Fixes #123
  • meets the standards outlined in the accessibility guidelines

Comment on lines 120 to +133
// Confirm renamed sketch appears in the table
await expect(
page.locator('table.sketches-table').getByText('renamed-sketch')
).toBeVisible({ timeout: 10_000 });
await page
.locator('table.sketches-table')
.getByText('renamed-sketch')
.click();

// Confirm the reopened sketch has actually loaded before playing it
await expect(
page.locator('button.editable-input__label')
).toContainText('renamed-sketch', { timeout: 10_000 });

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Geethegreat could you explain this a bit further?

How do we know that this is a good indicator of the sketch being loaded?

@Geethegreat Geethegreat Sep 2, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name and the files both come from the same API response and the same Redux dispatch (SET_PROJECT). As both reducers (project.js and files.js) react to that one action, state.project.name and state.files update together. So if we see the file name it implies that the file came with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants