-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4819608
commit 6fe94fc
Showing
9 changed files
with
397 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,6 @@ pnpm-lock.yaml | |
|
||
server.crt | ||
server.key | ||
|
||
/test-results | ||
/tests/results |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import type { Page } from '../utils/helpers' | ||
|
||
export const DashboardPage = { | ||
accountsButton: (page: Page) => page.getByRole('button', { name: 'Accounts Coming soon' }), | ||
addDashboardTitle: (page: Page) => page.getByText('Add a new dashboard'), | ||
backButton: (page: Page) => page.locator('text=Back'), | ||
continueButton: (page: Page) => page.getByRole('button', { name: 'Continue' }), | ||
continueNetworkButton: (page: Page) => page.getByRole('button', { name: 'Continue' }), | ||
dashboard: (page: Page) => page.getByText('Online Validators'), | ||
ethereumOption: (page: Page) => page.getByRole('button', { name: 'Ethereum' }), | ||
gnosisOption: (page: Page) => page.getByRole('button', { name: 'Gnosis' }), | ||
manageValidatorsButton: (page: Page) => page.locator('text=Manage Validators'), | ||
onlineValidators: (page: Page) => page.locator('text=Online Validators'), | ||
validatorsButton: (page: Page) => page.getByRole('button', { name: 'Validators' }), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type { Page } from '../utils/helpers' | ||
|
||
export const LoginPage = { | ||
email: (page: Page) => page.getByLabel('Email address'), | ||
errorEmail: (page: Page) => page.locator('text=Please provide a valid email address.'), | ||
errorInvalidPassword: (page: Page) => page.locator('text=Please enter your password.'), | ||
errorPasswordMaxLength: (page: Page) => page.locator('text=Please provide at least 5 characters.'), | ||
loginBtn: (page: Page) => page.getByRole('button', { name: 'Log in' }), | ||
password: (page: Page) => page.getByLabel('Password'), | ||
toastMessageCannotLogin: (page: Page) => page.locator('text=Cannot log in: your email or your password is unknown.'), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import path from 'path' | ||
import { fileURLToPath } from 'node:url' | ||
import dotenv from 'dotenv' | ||
import { | ||
defineConfig, devices, | ||
} from '@playwright/test' | ||
import type { ConfigOptions } from '@nuxt/test-utils/playwright' | ||
|
||
dotenv.config({ path: path.resolve(process.cwd(), '.env') }) | ||
|
||
export default defineConfig<ConfigOptions>({ | ||
outputDir: './results', | ||
projects: [ { | ||
name: 'chromium', | ||
use: { | ||
...devices['Desktop Chrome'], channel: 'chromium', | ||
}, | ||
} ], | ||
testMatch: '**/*.spec.ts', | ||
timeout: 300000, | ||
use: { | ||
baseURL: process.env.NUXT_PUBLIC_DOMAIN, | ||
ignoreHTTPSErrors: true, | ||
nuxt: { | ||
rootDir: fileURLToPath(new URL('.', import.meta.url)), | ||
}, | ||
}, | ||
}) |
Oops, something went wrong.