Skip to content

Commit

Permalink
Merge pull request #182 from 10up/upkeep/download-artifact
Browse files Browse the repository at this point in the history
Upgrade the `download-artifact` from v3 to v4
  • Loading branch information
iamdharmesh authored Apr 11, 2024
2 parents 7759882 + 2da7523 commit 489373a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: actions/checkout@v3

- name: Download build zip
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ github.event.repository.name }}
path: ${{ github.event.repository.name }}
Expand Down Expand Up @@ -67,3 +67,13 @@ jobs:
npx mochawesome-json-to-md -p ./tests/cypress/reports/mochawesome.json -o ./tests/cypress/reports/mochawesome.md
npx mochawesome-report-generator tests/cypress/reports/mochawesome.json -o tests/cypress/reports/
cat ./tests/cypress/reports/mochawesome.md >> $GITHUB_STEP_SUMMARY
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-artifact-publisher-media-kit
retention-days: 2
path: |
${{ github.workspace }}/tests/cypress/screenshots/
${{ github.workspace }}/tests/cypress/videos/
${{ github.workspace }}/tests/cypress/logs/
5 changes: 3 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"env:start": "wp-env start",
"env:stop": "wp-env stop",
"cypress:open": "cypress open --config-file tests/cypress/config.config.js",
"cypress:run": "cypress run --config-file tests/cypress/config.config.js",
"cypress:run": "cypress run --config-file tests/cypress/config.config.js --browser chrome",
"clean-dist": "rm -rf ./dist"
},
"engines": {
Expand All @@ -23,7 +23,7 @@
"10up-toolkit": "^4.0.0",
"stylelint": "^14.0.0",
"@10up/babel-preset-default": "^1.1.2",
"@10up/cypress-wp-utils": "^0.2.0",
"@10up/cypress-wp-utils": "^0.3.0",
"@10up/eslint-config": "^2.4.6",
"@babel/preset-react": "^7.17.12",
"@wordpress/env": "^5.2.0",
Expand Down
4 changes: 2 additions & 2 deletions tests/cypress/integration/pmk-block-patterns.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ describe('Check if Media Kit Block Pattern is available for use', () => {
cy.visitAdminPage('post-new.php');
cy.closeWelcomeGuide();
cy.get('#post-title-0, h1.editor-post-title__input').click( { force: true } ).type('Test Block Pattern');
cy.get('.edit-post-header-toolbar__inserter-toggle').click();
cy.get('.components-tab-panel__tabs button').contains( 'Patterns' ).click();
cy.get('.edit-post-header-toolbar__inserter-toggle, .editor-document-tools__inserter-toggle').click();
cy.get('.components-tab-panel__tabs button, .block-editor-inserter__tabs button').contains( 'Patterns' ).click();

// (add version) If dropdown is available. (After WP 5.?)
cy.get('body').then(($body) => {
Expand Down

0 comments on commit 489373a

Please sign in to comment.