Use page model functions in private test

This commit is contained in:
Theresa Gresch 2019-07-02 18:17:07 +02:00
parent ec6a484d15
commit a52683429a

View File

@ -16,11 +16,9 @@ fixture`Test batch private`
const page = new Page();
test('Make photos private', async t => {
await page.selectPhoto(0);
await page.selectPhoto(2);
await t
.hover(Selector('div[class="v-image__image v-image__image--cover"]').nth(0))
.click(Selector('button.p-photo-select'))
.hover(Selector('div[class="v-image__image v-image__image--cover"]').nth(2))
.click(Selector('button.p-photo-select').nth(1))
.click(Selector('div.p-photo-clipboard'))
.click(Selector('.p-photo-clipboard-private'), {timeout: 15000});
const request = await logger.requests[0].responseBody;