upgrade front-end tests related deps
This commit is contained in:
parent
d3ebd0432e
commit
ddb939e562
12
package.json
12
package.json
@ -51,11 +51,11 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gplane/tsconfig": "^1.1.0",
|
||||
"@testing-library/jest-dom": "^5.7.0-beta.1",
|
||||
"@testing-library/react": "^10.0.4",
|
||||
"@testing-library/jest-dom": "^5.11.5",
|
||||
"@testing-library/react": "^11.1.0",
|
||||
"@types/bootstrap": "^4.3.3",
|
||||
"@types/echarts": "^4.6.0",
|
||||
"@types/jest": "^25.2.3",
|
||||
"@types/jest": "^26.0.15",
|
||||
"@types/jquery": "^3.3.38",
|
||||
"@types/js-yaml": "^3.12.4",
|
||||
"@types/lodash.debounce": "^4.0.6",
|
||||
@ -77,7 +77,7 @@
|
||||
"eslint": "^7.4.0",
|
||||
"eslint-formatter-beauty": "^3.0.0",
|
||||
"file-loader": "^6.0.0",
|
||||
"jest": "^26.0.1",
|
||||
"jest": "^26.6.1",
|
||||
"jest-extended": "^0.11.5",
|
||||
"jquery": "^3.5.1",
|
||||
"js-yaml": "^3.13.1",
|
||||
@ -85,7 +85,7 @@
|
||||
"postcss-loader": "^3.0.0",
|
||||
"prettier": "^2.0.5",
|
||||
"style-loader": "^1.2.1",
|
||||
"ts-jest": "^26.0.0",
|
||||
"ts-jest": "^26.4.2",
|
||||
"ts-loader": "^7.0.4",
|
||||
"ts-node": "^8.10.2",
|
||||
"typescript": "^4.0.2",
|
||||
@ -149,7 +149,7 @@
|
||||
],
|
||||
"globals": {
|
||||
"ts-jest": {
|
||||
"tsConfig": "<rootDir>/resources/assets/tests/tsconfig.json",
|
||||
"tsconfig": "<rootDir>/resources/assets/tests/tsconfig.json",
|
||||
"isolatedModules": true
|
||||
}
|
||||
}
|
||||
|
@ -613,6 +613,10 @@ describe('change privacy', () => {
|
||||
await waitFor(() =>
|
||||
expect(fetch.put).toBeCalledWith(urls.texture.privacy(fixtureSkin.tid)),
|
||||
)
|
||||
|
||||
// temporary workaround for multiple modals exist
|
||||
document.querySelectorAll('.modal')[0].remove()
|
||||
|
||||
expect(queryByText('duplicated')).toBeInTheDocument()
|
||||
expect(queryByText(t('skinlib.setAsPublic'))).toBeInTheDocument()
|
||||
fireEvent.click(getByText(t('general.cancel')))
|
||||
|
@ -119,7 +119,7 @@ describe('input file', () => {
|
||||
const { getByTitle, getByLabelText, findByLabelText } = render(<Upload />)
|
||||
|
||||
fireEvent.click(getByLabelText(t('general.cape')))
|
||||
await waitFor(() => {})
|
||||
await waitFor(() => {/* */})
|
||||
|
||||
const file = new File([], 't.png')
|
||||
fireEvent.change(getByTitle(t('skinlib.upload.select-file')), {
|
||||
|
Loading…
Reference in New Issue
Block a user