chore: rm try/catch
This commit is contained in:
parent
958773125d
commit
d62f482c9c
1 changed files with 4 additions and 8 deletions
|
@ -9,12 +9,8 @@ import User from "./user";
|
|||
test("Create admin fixture @setup", async ({ page }) => {
|
||||
const admin = new User(config.ADMIN_USERNAME);
|
||||
admin.setAdmin();
|
||||
|
||||
try {
|
||||
await admin.register(page);
|
||||
await admin.logout(page);
|
||||
await expect(page).toHaveTitle("Forgejo: Beyond coding. We forge.");
|
||||
} catch {
|
||||
console.log("looks like admin is already registered");
|
||||
}
|
||||
await admin.register(page);
|
||||
await admin.logout(page);
|
||||
await expect(page).toHaveTitle("Forgejo: Beyond coding. We forge.");
|
||||
console.log("looks like admin is already registered");
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue