Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run E2E tests on master #404

Merged
merged 8 commits into from
Sep 13, 2021

Conversation

boubkerbribri
Copy link
Contributor

Questions Answers
Description? Since E2E tests run only on the dev branch, we don't have real-time errors on upgrades. So adding run on the main branch
Type? improvement
BC breaks? no
Deprecations? no
Fixed ticket? no
How to test? no tests needed
Possible impacts? none

Comment on lines +65 to +75
- run: |
cp -r .github .github_dev
cp -r tests/e2e tests/e2e_dev
cp docker-compose.yml docker-compose.dev.yml
git fetch origin ${{ matrix.module_branch }}
git checkout ${{ matrix.module_branch }}
rm -rf .github docker-compose.yml tests/e2e
mv .github_dev .github
mv tests/e2e_dev tests/e2e
mv docker-compose.dev.yml docker-compose.yml
if: ${{ matrix.module_branch != 'dev' }}
Copy link
Contributor Author

@boubkerbribri boubkerbribri Sep 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since some directories/files are not merged on the master branch, adding the same files from the dev branch to be able to run tests.

@@ -38,7 +38,8 @@ Upgrade
Log out
Check new version
*/
describe(`Upgrade PrestaShop from '${global.PS_VERSION}' to '${global.PS_VERSION_UPGRADE_TO}'`, async () => {
// eslint-disable-next-line max-len
describe(`[${global.AUTOUPGRADE_VERSION}] Upgrade PrestaShop from '${global.PS_VERSION}' to '${global.PS_VERSION_UPGRADE_TO}'`, async () => {
Copy link
Contributor Author

@boubkerbribri boubkerbribri Sep 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a hack to make tests look like the capture since the nightly site can't handle how to insert and display 2 module's branches.
image

@PierreRambaud PierreRambaud merged commit 4876ec7 into PrestaShop:dev Sep 13, 2021
@PierreRambaud
Copy link
Contributor

Thank you @boubkerbribri

@PierreRambaud PierreRambaud added this to the 4.13.0 milestone Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants