feat: sites and authors integration into existing screens (& formated all frontend files kinda accidentally)
This commit is contained in:
1 parent
3d81d2c717
commit
6b8990c55e
239 files changed
+9194
-1354
No files matched your search
@@ -67,7 +67,11 @@ describe('My activity: a role that is not owner or admin sees its own events', (
|
||||
expect(document.body.querySelector('[data-testid="activity-actor"]')).toBeNull()
|
||||
expect(callsTo(SUMMARY_PATH)).toHaveLength(0)
|
||||
expect(callsTo(EXPORT_PATH)).toHaveLength(0)
|
||||
expect(queryObject(callsTo(LIST_PATH)[0])).toEqual({ range: '7d', page: '1', size: '25' })
|
||||
expect(queryObject(callsTo(LIST_PATH)[0])).toEqual({
|
||||
range: '7d',
|
||||
page: '1',
|
||||
size: '25',
|
||||
})
|
||||
expect(textOf(document.body.querySelector('[data-testid="activity-pager"]'))).toContain(
|
||||
'Showing 1–25 of 41',
|
||||
)
|
||||
@@ -81,7 +85,10 @@ describe('My activity: a role that is not owner or admin sees its own events', (
|
||||
})
|
||||
|
||||
it('shows its own empty copy', async () => {
|
||||
await mountActivity({ role: 'editor', list: () => pageOf([], { total: 0 }) })
|
||||
await mountActivity({
|
||||
role: 'editor',
|
||||
list: () => pageOf([], { total: 0 }),
|
||||
})
|
||||
|
||||
expect(textOf(document.body)).toContain('No activity yet')
|
||||
expect(textOf(document.body)).toContain(
|
||||
@@ -90,7 +97,10 @@ describe('My activity: a role that is not owner or admin sees its own events', (
|
||||
})
|
||||
|
||||
it('shows the same details panel with the user position', async () => {
|
||||
await mountActivity({ role: 'editor', list: () => pageOf(activityItems, { total: 41 }) })
|
||||
await mountActivity({
|
||||
role: 'editor',
|
||||
list: () => pageOf(activityItems, { total: 41 }),
|
||||
})
|
||||
rows()[0]!.click()
|
||||
await flushPromises()
|
||||
await vi.waitFor(() => expect(document.body.querySelector('[role="dialog"]')).toBeTruthy())
|
||||
@@ -115,7 +125,12 @@ describe('The French interface', () => {
|
||||
id: 2,
|
||||
created_at: '2026-10-03T12:20:00Z',
|
||||
outcome: 'failed',
|
||||
target: { type: 'article', id: '8', name: 'Spring release', exists: true },
|
||||
target: {
|
||||
type: 'article',
|
||||
id: '8',
|
||||
name: 'Spring release',
|
||||
exists: true,
|
||||
},
|
||||
}),
|
||||
]),
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user