quoad
Version:
Serenity/JS: Next generation acceptance testing library for modern web applications.
15 lines (11 loc) • 421 B
text/typescript
import { Ensure, equals } from '@serenity-js/assertions';
import { describe, it } from '@serenity-js/playwright-test';
describe('Playwright Test reporting', () => {
describe('A scenario', () => {
it('fails when the assertion fails', async ({ actorCalled }) => {
await actorCalled('Alice').attemptsTo(
Ensure.that('Hello', equals('Hola')),
);
});
});
});