All checks were successful
Publish FaceAI Container / publish (push) Successful in 4m43s
- Added a retry mechanism for page navigation in `live-site-test-utils.js` to handle transient errors during login. - Introduced a new function `performLiveLoginRequest` to handle login requests via API, improving the login flow. - Updated the login process to utilize the new API request method, ensuring a more robust authentication. - Implemented new utility functions in `rus-ecom-240621.js` for managing FaceAI state and filtering. - Created `faceai_photo_lookup.jsp` to handle photo lookups, returning JSON responses for better integration with the frontend. - Updated `faceai_return.php` to redirect users with appropriate parameters after FaceAI processing. - Modified `fotoCR.jsp` and `fotoCR-en.jsp` to include FaceAI photo IDs in the image elements for better tracking. - Enhanced the UI to display the number of matched photos dynamically based on FaceAI results.
38 lines
No EOL
952 B
JavaScript
38 lines
No EOL
952 B
JavaScript
const path = require('path');
|
|
const { defineConfig } = require('@playwright/test');
|
|
|
|
const authFile = path.join(__dirname, 'tests/live-site/.auth/user.json');
|
|
|
|
module.exports = defineConfig({
|
|
testDir: './tests/live-site',
|
|
timeout: 60 * 1000,
|
|
expect: {
|
|
timeout: 15 * 1000
|
|
},
|
|
fullyParallel: false,
|
|
workers: 1,
|
|
reporter: [['list'], ['html', { open: 'never', outputFolder: 'playwright-report/live-site' }]],
|
|
outputDir: 'test-results/live-site',
|
|
use: {
|
|
baseURL: process.env.LIVE_SITE_BASE_URL || 'https://www.regalamiunsorriso.it',
|
|
browserName: 'chromium',
|
|
headless: true,
|
|
trace: 'retain-on-failure',
|
|
screenshot: 'only-on-failure',
|
|
video: 'retain-on-failure'
|
|
},
|
|
projects: [
|
|
{
|
|
name: 'setup',
|
|
testMatch: /.*\.setup\.js/
|
|
},
|
|
{
|
|
name: 'live-chromium',
|
|
dependencies: ['setup'],
|
|
testIgnore: /.*\.setup\.js/,
|
|
use: {
|
|
storageState: authFile
|
|
}
|
|
}
|
|
]
|
|
}); |