Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Oct 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 userActions.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
Loading