mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-20 03:26:47 +08:00
fix: orderby in members list (#4375)
Co-authored-by: LongYinan <lynweklm@gmail.com>
This commit is contained in:
@@ -217,9 +217,14 @@ export class WorkspaceResolver {
|
||||
},
|
||||
skip,
|
||||
take: take || 8,
|
||||
orderBy: {
|
||||
createdAt: 'desc',
|
||||
},
|
||||
orderBy: [
|
||||
{
|
||||
createdAt: 'asc',
|
||||
},
|
||||
{
|
||||
type: 'desc',
|
||||
},
|
||||
],
|
||||
include: {
|
||||
user: true,
|
||||
},
|
||||
|
||||
@@ -234,6 +234,11 @@ test.describe('collaboration members', () => {
|
||||
.getByRole('button')
|
||||
.all();
|
||||
|
||||
// make sure the first member is the owner
|
||||
expect(page.getByTestId('member-item').first()).toContainText(
|
||||
'Workspace Owner'
|
||||
);
|
||||
|
||||
// There have four pagination items: < 1 2 >
|
||||
expect(navigationItems.length).toBe(4);
|
||||
// Click second page
|
||||
|
||||
Reference in New Issue
Block a user