Skip to content

Instantly share code, notes, and snippets.

@rodrigojmartin
Created June 14, 2022 07:10
Show Gist options
  • Save rodrigojmartin/db661aa6272bd5c4b61c9cb3c8a00fc3 to your computer and use it in GitHub Desktop.
Save rodrigojmartin/db661aa6272bd5c4b61c9cb3c8a00fc3 to your computer and use it in GitHub Desktop.
import { Ensure, equals } from '@serenity-js/assertions';
import { actorCalled } from '@serenity-js/core';
import { OpenTheApp} from './serenity/OpenTheApp';
import { AddAnItemCalled } from './serenity/AddAnItemCalled';
import { RecordedItems } from './serenity/RecordedItems';
import { describe, it } from 'mocha';
describe('Todo List App - Screenplay', () => {
it('helps us learn Serenity/JS', () =>
actorCalled('Jasmine')
.attemptsTo(
OpenTheApp(),
AddAnItemCalled('Learn Screenplay'),
AddAnItemCalled('Love Testing!'),
Ensure.that(RecordedItems(), equals([
'Learn Screenplay',
'Love Testing!',
])),
));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment