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:
Johnny A
2022-07-05 13:34:17 -04:00
committed by GitHub
parent d4188a3fa2
commit 296aa9aab2
2 changed files with 1 additions and 27 deletions

View File

@@ -22,12 +22,12 @@
"version": "./scripts/VERSION.sh" "version": "./scripts/VERSION.sh"
}, },
"dependencies": { "dependencies": {
"@standardnotes/features": "workspace:*",
"@standardnotes/styles": "workspace:*" "@standardnotes/styles": "workspace:*"
}, },
"devDependencies": { "devDependencies": {
"@standardnotes/deterministic-zip": "^1.2.0", "@standardnotes/deterministic-zip": "^1.2.0",
"@standardnotes/eslint-config-extensions": "^1.0.4", "@standardnotes/eslint-config-extensions": "^1.0.4",
"@standardnotes/features": "workspace:*",
"copy-webpack-plugin": "^11.0.0", "copy-webpack-plugin": "^11.0.0",
"mini-css-extract-plugin": "^2.6.0", "mini-css-extract-plugin": "^2.6.0",
"minimatch": "^5.1.0", "minimatch": "^5.1.0",

View File

@@ -98,29 +98,3 @@ it('hides group options if can not edit', () => {
expect(screen.queryByTestId('task-group-options')).not.toBeInTheDocument() 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()
})