mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-23 06:33:06 +00:00
test(C123): int spec do edit draft usa startAt fora da janela do espelho Google (C126)
This commit is contained in:
parent
db8102b47e
commit
184f0ca128
1 changed files with 7 additions and 0 deletions
|
|
@ -385,14 +385,21 @@ describe('activity domain', () => {
|
||||||
const municipality = await fixtures.getMunicipality()
|
const municipality = await fixtures.getMunicipality()
|
||||||
await fixtures.assignMunicipalityAdvisors(municipality, [advisor])
|
await fixtures.assignMunicipalityAdvisors(municipality, [advisor])
|
||||||
|
|
||||||
|
// Far-future startAt: this spec is about read scoping, not the agenda
|
||||||
|
// window — and keeping the rows OUTSIDE the Google sync engine's
|
||||||
|
// 90/365-day scan window avoids feeding the C126 parallel-flake class.
|
||||||
|
const farFuture = new Date(Date.now() + 400 * 86_400_000).toISOString()
|
||||||
|
|
||||||
const inScope = await createActivityRecord(payload, coordinator, {
|
const inScope = await createActivityRecord(payload, coordinator, {
|
||||||
...validActivityInput(municipality.id),
|
...validActivityInput(municipality.id),
|
||||||
title: fixtures.value('No portfólio do assessor'),
|
title: fixtures.value('No portfólio do assessor'),
|
||||||
|
startAt: farFuture,
|
||||||
})
|
})
|
||||||
fixtures.own('activity', inScope.id)
|
fixtures.own('activity', inScope.id)
|
||||||
const outOfScope = await createActivityRecord(payload, coordinator, {
|
const outOfScope = await createActivityRecord(payload, coordinator, {
|
||||||
...validActivityInput((await fixtures.getMunicipality()).id),
|
...validActivityInput((await fixtures.getMunicipality()).id),
|
||||||
title: fixtures.value('Fora do portfólio do assessor'),
|
title: fixtures.value('Fora do portfólio do assessor'),
|
||||||
|
startAt: farFuture,
|
||||||
})
|
})
|
||||||
fixtures.own('activity', outOfScope.id)
|
fixtures.own('activity', outOfScope.id)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue