Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexdev8 committed Feb 14, 2024
1 parent 151f097 commit c972940
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions frontend/tests/functional/detailed/common.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ for (const key of testPages) {
await pages[key].waitUntilLoaded();
await pages[key].createItem(items[key].build, "dependency" in items[key] ? items[key].dependency : null);


if (await pages[key].getRow(items[key].build.name).isHidden()) {
await pages[key].searchInput.fill(items[key].build.name);
}
Expand All @@ -54,7 +53,7 @@ for (const key of testPages) {

test(`${items[key].displayName} item details are showing properly`, async ({ pages, page }) => {
await pages[key].itemDetail.verifyItem(items[key].build);
page.url().includes('evidences') ? await pages[key].page.waitForTimeout(1000) : null;
page.url().includes('evidences') ? await pages[key].page.waitForTimeout(1000) : null; // prevent crashing
});

test(`user can edit ${items[key].displayName.toLowerCase()} item`, async ({ pages, page }, testInfo) => {
Expand All @@ -70,13 +69,5 @@ for (const key of testPages) {
test.afterAll(async () => {
writeFileSync(file_path, JSON.stringify(history));
});

// test.afterEach('cleanup', async ({ pages, page }) => {
// await pages[key].goto()
// await page.waitForURL(pages[key].url);
// await pages[key].deleteItemButton(vars.folderName).click();
// await pages[key].deleteModalConfirmButton.click();
// await expect(pages[key].getRow(vars.folderName)).not.toBeVisible();
// });
});
}

0 comments on commit c972940

Please sign in to comment.