add a config for local testing, plus add mobile testing and some instructions

This commit is contained in:
2024-07-27 16:52:44 -06:00
parent e8e5c70843
commit 77ce5c8ca7
5 changed files with 130 additions and 15 deletions

View File

@@ -35,10 +35,10 @@ export default defineConfig({
projects: [
{
name: 'chromium',
use: {
use: {
...devices['Desktop Chrome'],
permissions: ["clipboard-read"],
},
},
},
{
@@ -46,20 +46,20 @@ export default defineConfig({
use: { ...devices['Desktop Firefox'] },
},
{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},
// {
// name: 'webkit',
// use: { ...devices['Desktop Safari'] },
// },
/* Test against mobile viewports. */
// {
// name: 'Mobile Chrome',
// use: { ...devices['Pixel 5'] },
// },
// {
// name: 'Mobile Safari',
// use: { ...devices['iPhone 12'] },
// },
{
name: 'Mobile Safari',
use: { ...devices['iPhone 12'] },
},
/* Test against branded browsers. */
// {
@@ -74,8 +74,9 @@ export default defineConfig({
/* Run your local dev server before starting the tests */
// webServer: {
// command: 'npm run start',
// url: 'http://127.0.0.1:3000',
// command:
// "VITE_PASSKEYS_ENABLED=true VITE_DEFAULT_ENDORSER_API_SERVER=http://localhost:3000 npm run dev",
// url: "http://localhost:8080",
// reuseExistingServer: !process.env.CI,
// },
});