Created
June 14, 2022 07:10
-
-
Save rodrigojmartin/db661aa6272bd5c4b61c9cb3c8a00fc3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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