Skip to content

Conversation

@allison-truhlar
Copy link
Collaborator

Clickup id: 86acm69nc
@krokicki @neomorphic

This PR adds a Playwright test to test the following sequence of actions:

  1. Navigate to a Zarr directory and click on a viewer icon to create a data link (via the dialog)
  2. Delete the data link using the delete switch in the properties panel
  3. Recreate the data link using the switch in the properties panel
  4. Navigate to the /links page and delete the data link using the actions menu

- tried adding a label to the button itself, but it seems something about the way the tanstack table is built the label is not found by Playwright
@krokicki krokicki requested review from neomorphic and removed request for krokicki October 21, 2025 15:40
Copy link
Member

@neomorphic neomorphic left a comment

Choose a reason for hiding this comment

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

Looks good to me. All the tests passed when I tried it out. I added a suggest to make the reports easier to read.

// Step 5: Find the link in the table by looking for the zarr directory name
const linkRow = page.getByText(zarrDirName, { exact: true });
await expect(linkRow).toBeVisible();

Copy link
Member

Choose a reason for hiding this comment

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

wrapping each section with a test.step() will make the final report easier to read. Rather than having to look through a wall of expect results, you can jump to the section that has failed.

eg: await test.step('Delete link via Links page', async () => {
// test code here
});

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for the suggestion! I made this change in commit 1d95bd1

@allison-truhlar allison-truhlar merged commit 6c02145 into main Oct 22, 2025
7 checks passed
@allison-truhlar allison-truhlar deleted the data-link-playwright-tests branch October 22, 2025 15:29
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.

3 participants