test('toggle items in first shopping list', async t => { await t.click(Selector('a').withText('First Shopping List')) await t.wait(3000) await t.click(Selector('label').withText('Item 1')) await t.click(Selector('label').withText('Item 2')) await t.click(Selector('label').withText('Item 3')) await t .expect(Selector('label > input[type=checkbox]').nth(0).checked) .eql(true) await t .expect(Selector('label > input[type=checkbox]').nth(1).checked) .eql(true) await t .expect(Selector('label > input[type=checkbox]').nth(2).checked) .eql(true) })
test('toggle items in first shopping list', async (t) => { await loginFirstUser(t) await waitSelector( t, 'ShoppingLists', Selector('a').withText('First Shopping List') ) await t.click(Selector('a').withText('First Shopping List')) await waitSelector(t, 'ShoppingLists', Selector('label').withText('Item 1')) await t.click(Selector('label').withText('Item 1')) await t.click(Selector('label').withText('Item 2')) await t.click(Selector('label').withText('Item 3')) await t .expect(Selector('label > input[type=checkbox]').nth(0).checked) .eql(true) await t .expect(Selector('label > input[type=checkbox]').nth(1).checked) .eql(true) await t .expect(Selector('label > input[type=checkbox]').nth(2).checked) .eql(true) })
test('toggle items in second shopping list', async t => { await t.click(Selector('a').withText('Second Shopping List')) await t.wait(3000) await t.click(Selector('label').withText('Item 1')) await t.click(Selector('label').withText('Item 2')) await t.click(Selector('label').withText('Item 3')) await t .expect(Selector('label > input[type=checkbox]').nth(0).checked) .eql(true) await t .expect(Selector('label > input[type=checkbox]').nth(1).checked) .eql(true) await t .expect(Selector('label > input[type=checkbox]').nth(2).checked) .eql(true) })