Files
interblue.pl/modules/autoupgrade/tests/e2e/README.md
2024-10-25 14:16:28 +02:00

38 lines
1.5 KiB
Markdown

# Autoupgrade tests
Tests for 1 click upgrade module.
Test is compatible with different PS versions
- `1.7.4` to `1.7.5 - 1.7.6 - 1.7.7 - 1.7.8`
- `1.7.5` to `1.7.6 - 1.7.7 - 1.7.8`
- `1.7.6` to `1.7.7 - 1.7.8`
- `1.7.7` to `1.7.8`
We use [Mocha](https://mochajs.org/), [Playwright](https://github.com/microsoft/playwright) and
[Chai](https://www.chaijs.com/) as our base stack.
## How to install your environment
```bash
# Download the new PS version that you want to upgrade
https://www.prestashop.com/fr/versions-precedentes
cd autoupgrade_tests/
npm install
```
### Test parameters
| Parameter | Description |
|-----------------------|----------------- |
| URL_FO | URL of your PrestaShop website Front Office (default to **`http://localhost/prestashop/`**) |
| LOGIN | LOGIN of your PrestaShop website (default to **`demo@prestashop.com`**) |
| PASSWD | PASSWD of your PrestaShop website (default to **`prestashop_demo`**) |
| PS_VERSION | Your prestashop version (expl **`1.7.5`**) |
| PS_VERSION_UPGRADE_TO | The new version to upgrade (example **`1.7.7`**) |
| ZIP_NAME | The new version to upgrade zip name (example **`prestashop_1.7.7.0.zip`**) |
Before running upgrade test, you should install an old version of PS.
### Launch the script
`URL_FO=your_shop_url PS_VERSION=your_ps_version PS_VERSION_UPGRADE_TO=new_ps_version ZIP_NAME=zip_name.zip npm run upgrade-test`
Enjoy :wink: :v: