Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
9 changes: 4 additions & 5 deletions cypress/e2e/cardFeatures.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
import { randUser } from '../utils/index.js'
import { sampleBoard } from '../utils/sampleBoard'
import moment from '@nextcloud/moment'
import { addDays, setHours, setMinutes, setSeconds, format } from 'date-fns'

const user = randUser()
const boardData = sampleBoard()
Expand Down Expand Up @@ -271,17 +271,16 @@ describe('Card', function () {
// Set a due date through shortcut
cy.get('[data-cy-due-date-shortcut="tomorrow"] button').should('be.visible').click()

const tomorrow = moment().add(1, 'days').hour(8).minutes(0).seconds(0)
cy.get('#card-duedate-picker').should('have.value', tomorrow.format('YYYY-MM-DDTHH:mm'))
const tomorrow = setSeconds(setMinutes(setHours(addDays(new Date(), 1), 8), 0), 0)
cy.get('#card-duedate-picker').should('have.value', format(tomorrow, "yyyy-MM-dd'T'HH:mm"))

const now = moment().hour(11).minutes(0).seconds(0).toDate()
const now = setSeconds(setMinutes(setHours(new Date(), 11), 0), 0)
cy.clock(now)
cy.log(now)
cy.tick(60_000)

cy.get(`.card:contains("${newCardTitle}")`).find('[data-due-state="Now"]').should('be.visible').should('contain', '21 hours')


// Remove the due date again
cy.get('#app-sidebar-vue [data-cy-due-date-actions]').should('be.visible').click()
// tick needed to show the popover menu
Expand Down
287 changes: 11 additions & 276 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,17 @@
"@nextcloud/files": "^3.10.1",
"@nextcloud/initial-state": "^2.2.0",
"@nextcloud/l10n": "^3.4.0",
"@nextcloud/moment": "^1.3.5",
"@nextcloud/notify_push": "^1.3.0",
"@nextcloud/router": "^3.0.1",
"@nextcloud/vue": "^8.31.0",
"blueimp-md5": "^2.19.0",
"chroma-js": "^3.1.2",
"date-fns": "^4.1.0",
"dompurify": "^3.2.5",
"lodash": "^4.17.21",
"markdown-it": "^14.1.0",
"markdown-it-link-attributes": "^4.0.1",
"markdown-it-task-checkbox": "^1.0.6",
"moment": "^2.30.1",
"p-queue": "^8.0.1",
"url-search-params-polyfill": "^8.2.5",
"vue": "^2.7.15",
Expand Down
1 change: 1 addition & 0 deletions server
Submodule server added at a9d925
Loading