We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For example, these assertions are only testing that Security or Investments are one of the options but NOT that is the selected option:
assets.test.ts
const assetTypeSelect = page.locator('.formSelect__select[name=assetTypeId]'); const balanceGroupSelect = page.locator('.formSelect__select[name=balanceGroup]'); expect(await assetTypeSelect.textContent()).toMatch('Security'); expect(await balanceGroupSelect.textContent()).toMatch('Investments');
This doesn't work:
await expect(assetTypeSelect).toHaveValue('Security')
Because the value is the assetType.id and the number changes on every test run.
assetType.id
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For example, these assertions are only testing that Security or Investments are one of the options but NOT that is the selected option:
assets.test.ts
This doesn't work:
Because the value is the
assetType.id
and the number changes on every test run.The text was updated successfully, but these errors were encountered: