Client: refactor

This commit is contained in:
Sam
2018-05-10 17:21:19 +02:00
parent d90b7fed9d
commit f370de62a6
6 changed files with 20 additions and 88 deletions

View File

@ -24,7 +24,7 @@ test('standard user should be able to add a workout (w/o gpx)', async t => {
await t
.navigateTo(`${TEST_URL}/activities/add`)
.expect(Selector('H1').withText('Dashboard').exists).notOk()
.expect(Selector('H2').withText('Add a sport').exists).ok()
.expect(Selector('H2').withText('Add an activity').exists).ok()
.click(Selector('input[name="withoutGpx"]'))
.click(Selector('select').filter('[name="sport_id"]'))
.click(Selector('option').filter('[value="1"]'))