chore: rm try/catch

This commit is contained in:
Aravinth Manivannan 2024-01-10 18:54:24 +05:30
parent 958773125d
commit d62f482c9c
Signed by: realaravinth
GPG key ID: F8F50389936984FF

View file

@ -9,12 +9,8 @@ import User from "./user";
test("Create admin fixture @setup", async ({ page }) => { test("Create admin fixture @setup", async ({ page }) => {
const admin = new User(config.ADMIN_USERNAME); const admin = new User(config.ADMIN_USERNAME);
admin.setAdmin(); admin.setAdmin();
await admin.register(page);
try { await admin.logout(page);
await admin.register(page); await expect(page).toHaveTitle("Forgejo: Beyond coding. We forge.");
await admin.logout(page); console.log("looks like admin is already registered");
await expect(page).toHaveTitle("Forgejo: Beyond coding. We forge.");
} catch {
console.log("looks like admin is already registered");
}
}); });