feat(reminders): add e2e tests for task reminders
This commit is contained in:
18
cypress/factories/task_reminders.ts
Normal file
18
cypress/factories/task_reminders.ts
Normal file
@ -0,0 +1,18 @@
|
||||
import {Factory} from '../support/factory'
|
||||
|
||||
export class TaskReminderFactory extends Factory {
|
||||
static table = 'task_reminders'
|
||||
|
||||
static factory() {
|
||||
const now = new Date()
|
||||
|
||||
return {
|
||||
id: '{increment}',
|
||||
task_id: 1,
|
||||
reminder: now.toISOString(),
|
||||
created: now.toISOString(),
|
||||
relative_to: '',
|
||||
relative_period: 0,
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user