Skip to content

Update select placeholder tests#1

Open
radium-v wants to merge 2 commits into
brianchristopherbrady:user/brianbrady/select-placeholderfrom
microsoft:users/jokreitl/select-placeholder
Open

Update select placeholder tests#1
radium-v wants to merge 2 commits into
brianchristopherbrady:user/brianbrady/select-placeholderfrom
microsoft:users/jokreitl/select-placeholder

Conversation

@radium-v
Copy link
Copy Markdown

@radium-v radium-v commented Jan 6, 2024

Hi 👋

This PR updates the tests to use Locator objects and fixes some assertions. It also removes the api-report.md change which was preventing the actions from running in microsoft#6854.

});

await expect(element).toHaveJSProperty("value", "");
await expect(element).not.hasAttribute("value");
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This hasAttribute assertion is custom-made to work around a Playwright bug with empty attributes. It's been fixed in recent versions of Playwright, so I'll set this back to toHaveAttribute in microsoft#6876.

@janechu janechu deleted the users/jokreitl/select-placeholder branch February 27, 2026 19:28
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.

1 participant