diff --git a/.github/README.md b/.github/README.md new file mode 100644 index 00000000..190e54fe --- /dev/null +++ b/.github/README.md @@ -0,0 +1,22 @@ +# SSH into GH actions +## action code +If you need to debug your action you can add this snippet to the workflow: +``` +- name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + with: + limit-access-to-actor: true +``` +once you push to the branch you can find an ssh connection string in action logs. + +## github account setup +you will need to have generated pair of SSH keys on your machine. +Follow this docu: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account +check for existing keys, if doesn't exist generate a pair and add a public one to your github account. + +## SSH out! +If you are in the office network or using VPN - don't forget to SSH out: +1. Go to this site +http://sanjose-ssh-out.corp.adobe.com/ (HTTP not HTTPS) +2. Log in using your adobenet ID and "One time password token" +3. After logging in, you should get the confirmation message saying that "Authentication successfully. You may now SSH or SCP to an Internet host...." \ No newline at end of file diff --git a/README.md b/README.md index 7ca17ef2..02bb0014 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,24 @@ Refer to the corresponding README.md under any of the packages: * studio - M@S Studio for creating, updating and publishing merch fragments * ost-audit - crawls EDS pages HTML for OST links and generates a CSV report +## Nala E2E tests +for initial setup: +``` +npm install +npx playwright install +export IMS_EMAIL= +export IMS_PASS= +``` +Ask colleagues/slack for IMS_EMAIL ad IMS_PASS values, your user might not work as expected because it's not '@adobetest.com' account. + +`npm run nala local` - to run on local +`npm run nala MWPW-160756` - to run on branch +`npm run nala MWPW-160756 mode=ui` - ui mode + +Beware that 'npm run nala' runs `node nala/utils/nala.run.js`, it's not the script that GH action does. +If you want to debug GH action script run sh `nala/utils/pr.run.sh` +# CI/CD +documented in .github/README.md #### Troubleshooting Please reach out to us in `#tacocat-friends` for any questions. \ No newline at end of file diff --git a/nala/studio/studio.test.js b/nala/studio/studio.test.js index b938caa6..4f0800a6 100644 --- a/nala/studio/studio.test.js +++ b/nala/studio/studio.test.js @@ -14,6 +14,11 @@ test.beforeEach(async ({ page, browserName, baseURL }) => { browserName !== 'chromium', 'Not supported to run on multiple browsers.', ); + if (browserName === 'chromium') { + await page.setExtraHTTPHeaders({ + 'sec-ch-ua': '"Chromium";v="123", "Not:A-Brand";v="8"', + }); + } studio = new StudioPage(page); features[0].url = `${baseURL}/studio.html`; await page.goto(features[0].url);