Browse Source

fix: add React import for module-level JSX and update test snapshots

The module-level `extra` JSX in success/index.tsx requires an explicit
React import in the test environment. Also update login snapshots to
reflect href="#" additions on anchor elements.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
pull/11777/head
afc163 5 months ago
parent
commit
19c3d5f8c6
  1. 1
      src/pages/result/success/index.tsx
  2. 2
      src/pages/user/login/__snapshots__/login.test.tsx.snap

1
src/pages/result/success/index.tsx

@ -1,6 +1,7 @@
import { DingdingOutlined } from '@ant-design/icons';
import { GridContent } from '@ant-design/pro-components';
import { Button, Card, Descriptions, Result, Steps } from 'antd';
import React from 'react';
import useStyles from './index.style';
const descriptionItems = [

2
src/pages/user/login/__snapshots__/login.test.tsx.snap

@ -373,6 +373,7 @@ exports[`Login Page should login success 1`] = `
</span>
</label>
<a
href="#"
style="float: right;"
>
Forgot Password ?
@ -935,6 +936,7 @@ exports[`Login Page should show login form 1`] = `
</span>
</label>
<a
href="#"
style="float: right;"
>
Forgot Password ?

Loading…
Cancel
Save