[ACS-6106] fix delete in after all (#3489)

* fix delete in after all

* fix delete in after all
This commit is contained in:
Akash Rathod
2023-10-23 14:47:14 +02:00
committed by GitHub
parent 1c222bdd36
commit f50dfe9dca

View File

@@ -39,6 +39,8 @@ describe('Extensions - Info Drawer', () => {
const file = `file-${Utils.random()}.txt`; const file = `file-${Utils.random()}.txt`;
let fileId: string; let fileId: string;
const fileRemove = `file-${Utils.random()}.txt`;
let fileIdRemove: string;
const PROPERTIES_TAB = { const PROPERTIES_TAB = {
order: 1, order: 1,
@@ -79,10 +81,7 @@ describe('Extensions - Info Drawer', () => {
await userActions.login(username, username); await userActions.login(username, username);
fileId = await apis.user.createFile(file); fileId = await apis.user.createFile(file);
}); fileIdRemove = await apis.user.createFile(fileRemove);
afterAll(async () => {
await userActions.deleteNodes([fileId]);
}); });
describe('', () => { describe('', () => {
@@ -97,6 +96,10 @@ describe('Extensions - Info Drawer', () => {
await page.dataTable.clearSelection(); await page.dataTable.clearSelection();
}); });
afterAll(async () => {
await apis.user.nodes.deleteNodes([fileId]);
});
it('[C284646] Add a new tab with icon and title ', async () => { it('[C284646] Add a new tab with icon and title ', async () => {
await page.dataTable.selectItem(file); await page.dataTable.selectItem(file);
await BrowserActions.click(page.toolbar.viewDetailsButton); await BrowserActions.click(page.toolbar.viewDetailsButton);
@@ -152,8 +155,12 @@ describe('Extensions - Info Drawer', () => {
await page.clickPersonalFilesAndWait(); await page.clickPersonalFilesAndWait();
}); });
afterAll(async () => {
await apis.user.nodes.deleteNodes([fileIdRemove]);
});
it('[C284650] Remove all tabs', async () => { it('[C284650] Remove all tabs', async () => {
await page.dataTable.selectItem(file); await page.dataTable.selectItem(fileRemove);
await BrowserActions.click(page.toolbar.viewDetailsButton); await BrowserActions.click(page.toolbar.viewDetailsButton);
await infoDrawer.waitForInfoDrawerToOpen(); await infoDrawer.waitForInfoDrawerToOpen();