e2e cleanup (#2951)

* reduce the code

* reduce code

* reduce code

* reduce code

* cleanup tests

* more readable code

* cleanup code

* fix code

* even more cleanup

* remove some deprecated apis

* code fixes

* cleanup files

* more files switching to user actions
This commit is contained in:
Denys Vuika
2023-02-01 23:22:37 +00:00
committed by GitHub
parent a325deaf1a
commit 567882e864
42 changed files with 628 additions and 926 deletions

View File

@@ -52,9 +52,10 @@ describe('Generic errors', () => {
try {
await adminApiActions.createUser({ username });
await adminApiActions.createUser({ username: username2 });
await userActions.login(username, username);
parentId = (await apis.user.nodes.createFolder(parent)).entry.id;
file1Id = (await apis.user.nodes.createFile(file1, parentId)).entry.id;
parentId = await apis.user.createFolder(parent);
file1Id = await apis.user.createFile(file1, parentId);
await apis.user.nodes.createFile(file2, parentId);
await loginPage.loginWith(username);
@@ -74,7 +75,7 @@ describe('Generic errors', () => {
await dataTable.doubleClickOnRowByName(parent);
await dataTable.doubleClickOnRowByName(file1);
const URL = await browser.getCurrentUrl();
await apis.user.nodes.deleteNodeById(file1Id, false);
await userActions.deleteNodes([file1Id], false);
await browser.get(URL);
expect(await page.genericError.isDisplayed()).toBe(true, 'Generic error page not displayed');