Skip to content

Commit

Permalink
Fix e2e tests (#236)
Browse files Browse the repository at this point in the history
* Fix classic editor tab button

* Fix dependencies

* Update README.md

* Fix TS errors
  • Loading branch information
irshadahmad21 authored Mar 9, 2025
1 parent c80bab1 commit c0b1ea8
Show file tree
Hide file tree
Showing 8 changed files with 8,090 additions and 5,915 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,12 @@ The monorepo contains tools to develop WordPress plugins/themes.

- [`@wpsocio/wpdev`](./tools/wpdev)
- [`@wpsocio/vite-wp-react`](./tools/vite-wp-react)

## Getting started

- Install Docker
- Run
- `pnpm install`
- `pnpm setup:all`
- `pnpm env-start`
- `pnpm test:e2e`
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,10 @@
"projectTypes": ["plugins"],
"envFiles": [".env"]
},
"pnpm": {
"overrides": {
"vite": "6.2.1"
}
},
"packageManager": "[email protected]"
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const useOnSubmit = (
const path = `${rest_namespace}/settings`;

const submitForm = useSubmitForm<DataShape>({
// @ts-expect-error
form,
path,
// @ts-expect-error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const useOnSubmit = (
const path = `${rest_namespace}/settings/`;

const submitForm = useSubmitForm<DataShape>({
// @ts-expect-error
form,
path,
getErrorMessage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const useOnSubmit = (
const path = `${rest_namespace}/settings/`;

const submitForm = useSubmitForm<DataShape>({
// @ts-expect-error
form,
path,
// @ts-expect-error
Expand Down
1 change: 1 addition & 0 deletions plugins/wptelegram/js/settings/services/useOnSubmit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const useOnSubmit = (
const path = `${rest_namespace}/settings/`;

const submitForm = useSubmitForm({
// @ts-expect-error
form,
path,
// @ts-expect-error
Expand Down
Loading

0 comments on commit c0b1ea8

Please sign in to comment.