Skip to content

Commit

Permalink
Update dependencies and fix e2e tests (#2160)
Browse files Browse the repository at this point in the history
* Bump webpack from 5.83.1 to 5.94.0

Bumps [webpack](https://github.com/webpack/webpack) from 5.83.1 to 5.94.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](webpack/webpack@v5.83.1...v5.94.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update e2e workflow so we manually install docker-compose

* Revert "Update e2e workflow so we manually install docker-compose"

This reverts commit 6660072.

* Update extra packages

* Update node

* Downgrade susy

* New build script

* Fix test:e2e script

* Fix e2e test

* Make sure build-js.sh and validate-build.sh are excluded from builds

* Update @wordpress/prettier-config

* Downgrade @wordpress/eslint-plugin and @wordpress/scripts

* Remove @typescript-eslint/no-this-alias rule

* Fix versions

* Update .nvmrc version

* Update package-lock.json

* Update package-lock.json (II)

* Fix missing variables in scripts

* Remove new build-js.sh script

* Remove testing attribute

* Update node and npm version

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
Aljullu and dependabot[bot] authored Sep 19, 2024
1 parent 61f976e commit 7100254
Show file tree
Hide file tree
Showing 7 changed files with 19,164 additions and 11,759 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
'woocommerce/feature-flag': 'off',
'@wordpress/no-global-active-element': 'warn',
camelcase: 'off',
'@typescript-eslint/no-this-alias': 'off',
},
ignorePatterns: [ '**/*.min.js' ],
};
4 changes: 2 additions & 2 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
${{ runner.os }}-build-
${{ runner.os }}-
- name: Use Node.js 14.x
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: 20.x

- name: Npm install and build
run: |
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.21.1
20.11.1
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"renovate.json",
"node_modules",
"storefront.zip",
"validate-build.sh",
".*"
]
},
Expand Down
3 changes: 2 additions & 1 deletion e2e/specs/browser.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ describe( 'Storefront', () => {
} );

it( 'should have "built with WooCommerce" footer', async () => {
await expect( page ).toMatch( 'Built with WooCommerce.' );
const footerText = await page.evaluate( () => document.querySelector( 'body' ).innerText );
expect( footerText ).toMatch( 'Built with WooCommerce.' );
} );
} );
Loading

0 comments on commit 7100254

Please sign in to comment.