Skip to content

Commit

Permalink
fix delete in after all
Browse files Browse the repository at this point in the history
  • Loading branch information
akashrathod28 committed Oct 23, 2023
1 parent cd94923 commit 7801104
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions e2e/protractor/suites/extensions/ext-info-drawer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ describe('Extensions - Info Drawer', () => {

const file = `file-${Utils.random()}.txt`;
let fileId: string;
const fileRemove = `file-${Utils.random()}.txt`;
let fileIdRemove: string;

const PROPERTIES_TAB = {
order: 1,
Expand Down Expand Up @@ -79,10 +81,7 @@ describe('Extensions - Info Drawer', () => {
await userActions.login(username, username);

fileId = await apis.user.createFile(file);
});

afterAll(async () => {
await apis.user.nodes.deleteNodes([fileId]);
fileIdRemove = await apis.user.createFile(fileRemove);
});

describe('', () => {
Expand All @@ -97,6 +96,10 @@ describe('Extensions - Info Drawer', () => {
await page.dataTable.clearSelection();
});

afterAll(async () => {
await apis.user.nodes.deleteNodes([fileId]);
});

it('[C284646] Add a new tab with icon and title ', async () => {
await page.dataTable.selectItem(file);
await BrowserActions.click(page.toolbar.viewDetailsButton);
Expand Down Expand Up @@ -152,8 +155,12 @@ describe('Extensions - Info Drawer', () => {
await page.clickPersonalFilesAndWait();
});

afterAll(async () => {
await apis.user.nodes.deleteNodes([fileIdRemove]);
});

it('[C284650] Remove all tabs', async () => {
await page.dataTable.selectItem(file);
await page.dataTable.selectItem(fileRemove);
await BrowserActions.click(page.toolbar.viewDetailsButton);
await infoDrawer.waitForInfoDrawerToOpen();

Expand Down

0 comments on commit 7801104

Please sign in to comment.