Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add button link type #6679

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading

Unchanged files with check annotations Beta

)
// Trigger scroll
ref.current!.jumpToToday()

Check warning on line 62 in src/components/calendar-picker/tests/calendar-picker.test.tsx

GitHub Actions / check

Forbidden non-null assertion
act(() => {
jest.runAllTimers()
})
}
render(<Demo />)
expect(Object.keys(config!)).toEqual(['locale'])

Check warning on line 124 in src/components/config-provider/tests/config-provider.test.tsx

GitHub Actions / check

Forbidden non-null assertion
})
})
// Till Now
if (tillNow) {
ret[0].push({
label: renderLabel('now', null!),

Check warning on line 173 in src/components/date-picker/date-picker-date-utils.ts

GitHub Actions / check

Forbidden non-null assertion
value: TILL_NOW,
})
</div>
)
fireEvent.click(container.querySelector('.adm-form-item-label-help')!)

Check warning on line 349 in src/components/form/tests/form.test.tsx

GitHub Actions / check

Forbidden non-null assertion
expect(onClick).not.toHaveBeenCalled()
// Click input
fireEvent.click(container.querySelector('input')!)

Check warning on line 353 in src/components/form/tests/form.test.tsx

GitHub Actions / check

Forbidden non-null assertion
expect(onClick).toHaveBeenCalled()
jest.useRealTimers()
test('numbers that start with 0 should be work', () => {
const ref = createRef<InputRef>()
render(<Input type='number' ref={ref} />)
const input = document.querySelector('input')!

Check warning on line 198 in src/components/input/tests/input.test.tsx

GitHub Actions / check

Forbidden non-null assertion
fireEvent.change(input, {
target: { value: '012' },
})
).toEqual('Bamboo')
// Not close
fireEvent.touchMove(document.querySelector('.adm-popover-inner-content')!)

Check warning on line 20 in src/components/popover/tests/popover.test.tsx

GitHub Actions / check

Forbidden non-null assertion
expect(document.querySelector('.adm-popover-hidden')).toBeFalsy()
// Close
fireEvent.click(plusButton)
expect(onChange).toHaveBeenCalledWith('0.000000000000003')
expect(container.querySelector('input')!.value).toEqual('0.000000000000003')

Check warning on line 255 in src/components/stepper/tests/stepper.test.tsx

GitHub Actions / check

Forbidden non-null assertion
})
})
const maxRows = 5
const { getByRole } = render(<TextArea autoSize={{ minRows, maxRows }} />)
const textarea = getByRole('textbox')
const hiddenTextarea = document.querySelector(

Check warning on line 36 in src/components/text-area/tests/text-area.test.tsx

GitHub Actions / check

Forbidden non-null assertion
`.${classPrefix}-element-hidden`
)!
// mock
test('set rows should be work', () => {
const { getByRole } = render(<TextArea rows={1} autoSize />)
const hiddenTextarea = document.querySelector(

Check warning on line 126 in src/components/text-area/tests/text-area.test.tsx

GitHub Actions / check

Forbidden non-null assertion
`.${classPrefix}-element-hidden`
)!
const textarea = getByRole('textbox')