fix(web-extract): fix the extractor for form item like <input /> #33
Annotations
2 errors and 1 warning
tests/unit-test/extractor.test.ts > extractor > basic:
packages/web-integration/tests/unit-test/extractor.test.ts#L41
Error: Snapshot `extractor > basic 1` mismatched
- Expected
+ Received
@@ -1,17 +1,17 @@
[
{
"attributes": {
- "class": ".life-core-checkbox.life-core-checkbox-md.src-pages-Login-components-LoginCard-index-module__checkbox--Npo2V--212e2",
+ "class": ".life-core-input-inner__wrapper.life-core-input-inner__wrapper-border.life-core-input-inner__wrapper-size-md.life-core-input-inner__wrapper-add-suffix",
"htmlTagName": "<label>",
"nodeType": "FORM_ITEM Node",
},
"content": "",
},
{
"attributes": {
- "class": ".life-core-input-inner__wrapper.life-core-input-inner__wrapper-border.life-core-input-inner__wrapper-size-md.life-core-input-inner__wrapper-add-suffix",
+ "class": ".life-core-checkbox.life-core-checkbox-md.src-pages-Login-components-LoginCard-index-module__checkbox--Npo2V--212e2",
"htmlTagName": "<label>",
"nodeType": "FORM_ITEM Node",
},
"content": "",
},
❯ tests/unit-test/extractor.test.ts:41:20
|
main (18.19.0)
Process completed with exit code 1.
|
main (18.19.0)
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|