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 }) => {
|
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();
|
||||||
|
|
||||||
try {
|
|
||||||
await admin.register(page);
|
await admin.register(page);
|
||||||
await admin.logout(page);
|
await admin.logout(page);
|
||||||
await expect(page).toHaveTitle("Forgejo: Beyond coding. We forge.");
|
await expect(page).toHaveTitle("Forgejo: Beyond coding. We forge.");
|
||||||
} catch {
|
|
||||||
console.log("looks like admin is already registered");
|
console.log("looks like admin is already registered");
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue