Changed beforeEach, small 'random' cleanup (#3728)

This commit is contained in:
Katarzyna Kita
2024-03-25 11:51:38 +01:00
committed by GitHub
parent 0d6ca1a356
commit b44beeb877
3 changed files with 5 additions and 16 deletions

View File

@@ -138,18 +138,8 @@ test.describe('Library actions ', () => {
});
test.beforeEach(async ({ loginPage, myLibrariesPage }) => {
try {
await loginPage.loginUser(
{ username: username2, password: username2 },
{
withNavigation: true,
waitForLoading: true
}
);
await myLibrariesPage.navigate();
} catch (error) {
console.error(`Main beforeEach failed : ${error}`);
}
await Utils.tryLoginUser(loginPage, username2, username2, 'beforeEach failed');
await myLibrariesPage.navigate();
});
test.afterAll(async () => {