chairemobilite / evolution

Online survey platform for travel survey
MIT License
4 stars 9 forks source link

Add UI testing in Evolution #487

Open samuel-duhaime opened 4 months ago

samuel-duhaime commented 4 months ago

Issue

Description

The goal is to incorporate UI testing directly into Evolution to streamline the testing process for every survey. We should use the code from MJ as a starting point.

Justification

Automating UI testing reduces manual efforts required to verify changes made to surveys, ensuring efficient testing and reliable outcomes.

Todo

tahini commented 4 months ago

Screenshots can be configured from the playwright.config.ts file like this:

defineConfig({
   ...
   use: {
        // Base URL to use in actions like `await page.goto('/')`.
        baseURL: 'http://localhost:8080',
        // Collect trace when retrying the failed test.
        trace: 'on-first-retry',
        screenshot: 'only-on-failure'
    },
    ...
})