mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-21 22:43:08 +01:00
fix: multiple minor fixes (#1154)
This commit is contained in:
@@ -19,9 +19,9 @@ export const test = baseTest.extend({
|
||||
export const login = async (page, admin: boolean = true) => {
|
||||
await page.goto('login')
|
||||
if (admin) {
|
||||
await page.getByPlaceholder('Username').fill('admin@catalyst-soar.com')
|
||||
await page.getByPlaceholder('Email').fill('admin@catalyst-soar.com')
|
||||
} else {
|
||||
await page.getByPlaceholder('Username').fill('user@catalyst-soar.com')
|
||||
await page.getByPlaceholder('Email').fill('user@catalyst-soar.com')
|
||||
}
|
||||
await page.getByPlaceholder('Password').fill('1234567890')
|
||||
await page.getByRole('button', { name: 'Login' }).click()
|
||||
|
||||
Reference in New Issue
Block a user