Skip to content

Instantly share code, notes, and snippets.

@Super-Chama
Last active September 27, 2022 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Super-Chama/28dccdb1d55609fdde0118656af09e5b to your computer and use it in GitHub Desktop.
Save Super-Chama/28dccdb1d55609fdde0118656af09e5b to your computer and use it in GitHub Desktop.

Check latest changes
git fetch upstream

Switch to latest 5.2 branch
git checkout upstream/5.2

Create and switch to your local branch
replace [JIRA_ID] with your ticket ID
git checkout -b [JIRA_ID]

Push local branch to your fork
replace [JIRA_ID] with your ticket ID
git push origin [JIRA_ID]

Assuming you have cloned the app and all dependecies installed properly

log into the container's shell (replace your container name instead of os_dev_php81) docker exec -it os_dev_php81 bash

remove cache files (this will delete files, be careful) rm -r yourinstallpath/src/cache/*

Prepare BE for tests (without this the cypress tests will fail) php src/test/functional/tools/prepare.php

Prepare Cypress for tests (without this the cypress tests will fail) cd yourinstallpath/src/test/functional yarn install update baseurl inside yourinstallpath/src/test/functional/cypress.json with your url

Run cypress in interactive mode yarn open

Run cypress in headless mode yarn test

Stash your changes
git stash

Check latest changes
git fetch upstream

Switch to latest 5.2 branch
git checkout upstream/5.2

If you have a local 5.2 branch delete it
git branch -D 5.2

Create and switch to local 5.2 branch
git checkout -b 5.2

Push local 5.2 branch to your fork
git push -f origin 5.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment