forked from alibaba-fusion/next
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(Drawer): Document optimization & Upgrade testing tools and o…
…ptimize use cases fix(Overlay): solve problems caused by numerical floating, close alibaba-fusion#4740 chore(*): Release-1.27.5-beta.1 fix(*): rollback alibaba-fusion#4746 and fix textarea clear spec chore(*): Release-1.27.5 fix(Drawer): not to change package-lock.json Update stale.yml chore(BuildTool): 支持指定主题包调试`run start --theme xxx` chore(DatePicker): fix theme demo margin, close alibaba-fusion#3627 chore(Shell): fix spell error "palceholder -> placeholder", close alibaba-fusion#3564 docs(Field): improve document description of parseName, close alibaba-fusion#3453 chore(Pagination): improve document of pageSizeSelector, fix pageJump runtime error, close alibaba-fusion#3306 docs(Calendar2): remove legacy api, close alibaba-fusion#3100 fix(Table): fix merging cell width in locked columns, close alibaba-fusion#4716 (alibaba-fusion#4752) * fix(Table): 修复合并单元格的锁列滑动问题 * fix(Table): should support for merging cells in locked columns, close alibaba-fusion#4716 * fix(Table): 修复测试用例 chore(*): update lock fix(Shell): phone shell should hidden when collapsed, close alibaba-fusion#3886 (alibaba-fusion#4766) Co-authored-by: lancely <[email protected]> refactor(Timeline): rename timeline file to ts refactor(Timeline): ts & doc improvement refactor(Timeline): test improve refactor(Timeline): fix cr comments fix(Upload): should hide trigger when limit is reached for Upload.Dragger, close alibaba-fusion#3951 (alibaba-fusion#4761) Co-authored-by: lancely <[email protected]> feat(DatePicker): improve focus logic, close alibaba-fusion#3998 (alibaba-fusion#4769) * feat(DatePicker): interactive optimization of date selection box close alibaba-fusion#3998 * feat(DatePicker): improve focus logic --------- Co-authored-by: WB01081293 <[email protected]> Co-authored-by: 珵之 <[email protected]> refactor(Field): rename to ts refactor(Field): convert to TypeScript, impove docs and tests refactor(Field): convert to TypeScript, impove docs and tests chore(Field): improve for codereview chore(Field): fix dependency version feat(TreeSelect): support useDetailValue, close alibaba-fusion#3531 (alibaba-fusion#4771) * feat(TreeSelect): support useDetailValue, close alibaba-fusion#3531 * chore(TreeSelect): improve useDetailValue tc and demos by codereview * test(TreeSelect): add control mode spec for useDetailValue refactor(Collapse): rename to ts refactor(Collapse): convert to TypeScript, impove docs and tests refactor(Collapse): imporve docs and types chore(Collapse): improve by codereview chore(Collapse): remove useless propTypes comments chore(*): Release-1.27.6 fix(Collapse): hotfix panel className missing chore(*): Release-1.27.7 chore(Divider): adjust ts types chore(Divider): adjust ts & docs & test
- Loading branch information
1 parent
905878d
commit 5de61b1
Showing
20 changed files
with
711 additions
and
499 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,12 @@ | ||
import React from 'react'; | ||
import Enzyme, { mount } from 'enzyme'; | ||
import Adapter from 'enzyme-adapter-react-16'; | ||
import assert from 'power-assert'; | ||
import Drawer from '../index'; | ||
import { testReact } from '../../util/__tests__/a11y/validate'; | ||
import '../style'; | ||
import { test, unmount } from '../../util/__tests__/legacy/a11y/validate'; | ||
import { roleType, isHeading, isButton } from '../../util/__tests__/legacy/a11y/checks'; | ||
|
||
/* eslint-disable react/jsx-filename-extension */ | ||
/* global describe it afterEach */ | ||
|
||
Enzyme.configure({ adapter: new Adapter() }); | ||
|
||
describe('Drawer A11y', () => { | ||
describe('Basic', () => { | ||
let wrapper; | ||
|
||
afterEach(() => { | ||
if (wrapper && wrapper.unmount) { | ||
wrapper.unmount(); | ||
wrapper = null; | ||
} | ||
unmount(); | ||
}); | ||
|
||
it('should not have any violations', async () => { | ||
wrapper = await mount(<Drawer visible />); | ||
return test('.next-overlay-wrapper'); | ||
await testReact(<Drawer visible />); | ||
}); | ||
}); | ||
}); |
Oops, something went wrong.