Tests: Remove unused code

This commit is contained in:
theresa 2021-02-28 18:41:11 +01:00
parent 4c03ef074f
commit 8e9f2e4234
2 changed files with 6 additions and 6 deletions

View file

@ -155,10 +155,6 @@ export default class Page {
.click(Selector("button.action-" + type))
.typeText(Selector(".input-album input"), name, { replace: true })
.pressKey("enter");
/*if (await Selector('div[role="listitem"]').withText(name).visible) {
await t.click(Selector('div[role="listitem"]').withText(name));
}
await t.click(Selector("button.action-confirm"));*/
}
async turnSwitchOff(type) {

View file

@ -33,8 +33,10 @@ test.meta("testID", "settings-general-001")("General Settings", async (t) => {
.ok()
.expect(Selector(".action-download").exists)
.ok()
.click(Selector(".action-close"))
.click(Selector(".action-close"));
if (await Selector(".action-close").exists) {
await t.click(Selector(".action-close"));
}
await t
.expect(Selector("button.action-location").visible)
.ok()
@ -157,8 +159,10 @@ test.meta("testID", "settings-general-001")("General Settings", async (t) => {
.ok()
.expect(Selector(".action-download").exists)
.notOk()
.click(Selector(".action-close"))
.click(Selector(".action-close"));
if (await Selector(".action-close").exists) {
await t.click(Selector(".action-close"));
}
await page.toggleSelectNthPhoto(0);
await t
.expect(Selector("button.action-location").exists)