You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea of soft assertions - do not terminate test execution, but mark the test as failed.
Description can be taken from jestjs/jest#13205 and microsoft/playwright#11800.
Playwright currently supports it, which makes its test runner amazing. I think it would be great to have this in vitest
// Make a few checks that will not stop the test when failed...awaitexpect.soft(page.getByTestId('status')).toHaveText('Success');awaitexpect.soft(page.getByTestId('eta')).toHaveText('1 day');// ... and continue the test to check more things.awaitpage.getByRole('link',{name: 'next page'}).click();awaitexpect.soft(page.getByRole('heading',{name: 'Make another order'})).toBeVisible();
Clear and concise description of the problem
Soft assertions.
The idea of soft assertions - do not terminate test execution, but mark the test as failed.
Description can be taken from jestjs/jest#13205 and microsoft/playwright#11800.
Playwright currently supports it, which makes its test runner amazing. I think it would be great to have this in vitest
Suggested solution
https://playwright.dev/docs/test-assertions#soft-assertions
microsoft/playwright#11800
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: