fix(advanced checklist): remove test for reorder icon (#1209)
* fix: remove test for reorder icon * chore: make features non-dev dep Co-authored-by: Johnny Almonte <johnny243@users.noreply.github.com> Co-authored-by: Mo <mo@standardnotes.com>
This commit is contained in:
@@ -22,12 +22,12 @@
|
||||
"version": "./scripts/VERSION.sh"
|
||||
},
|
||||
"dependencies": {
|
||||
"@standardnotes/features": "workspace:*",
|
||||
"@standardnotes/styles": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@standardnotes/deterministic-zip": "^1.2.0",
|
||||
"@standardnotes/eslint-config-extensions": "^1.0.4",
|
||||
"@standardnotes/features": "workspace:*",
|
||||
"copy-webpack-plugin": "^11.0.0",
|
||||
"mini-css-extract-plugin": "^2.6.0",
|
||||
"minimatch": "^5.1.0",
|
||||
|
||||
@@ -98,29 +98,3 @@ it('hides group options if can not edit', () => {
|
||||
|
||||
expect(screen.queryByTestId('task-group-options')).not.toBeInTheDocument()
|
||||
})
|
||||
|
||||
it('shows a reorder icon when on mobile', () => {
|
||||
let defaultState: Partial<RootState> = {
|
||||
settings: {
|
||||
canEdit: false,
|
||||
isRunningOnMobile: true,
|
||||
spellCheckerEnabled: true,
|
||||
},
|
||||
}
|
||||
|
||||
testRender(<TaskGroup group={defaultGroup} isDragging={false} />, {}, defaultState)
|
||||
|
||||
expect(screen.queryByTestId('reorder-icon')).not.toBeInTheDocument()
|
||||
|
||||
defaultState = {
|
||||
settings: {
|
||||
canEdit: true,
|
||||
isRunningOnMobile: true,
|
||||
spellCheckerEnabled: true,
|
||||
},
|
||||
}
|
||||
|
||||
testRender(<TaskGroup group={defaultGroup} isDragging={false} />, {}, defaultState)
|
||||
|
||||
expect(screen.getByTestId('reorder-icon')).toBeInTheDocument()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user