Moved pagination button back to top in comments (#20379)

no issue

- moving the pagination button back to the top since it's not needed
now.
- Will move it to bottom in future along with additional comments enhancements.
This commit is contained in:
Ronald Langeveld 2024-06-13 09:10:30 +07:00 committed by GitHub
parent 7d5ff4d16e
commit e1e31c530a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -37,6 +37,7 @@ const Content = () => {
return ( return (
<> <>
<ContentTitle count={commentCount} showCount={showCount} title={title}/> <ContentTitle count={commentCount} showCount={showCount} title={title}/>
<Pagination />
<div className={!pagination ? 'mt-4' : ''} data-test="comment-elements"> <div className={!pagination ? 'mt-4' : ''} data-test="comment-elements">
{commentsElements} {commentsElements}
</div> </div>
@ -46,7 +47,6 @@ const Content = () => {
: null : null
} }
</div> </div>
<Pagination />
</> </>
); );
}; };

View File

@ -2,7 +2,7 @@ import {MockedApi, addMultipleComments, initialize} from '../utils/e2e';
import {expect, test} from '@playwright/test'; import {expect, test} from '@playwright/test';
test.describe('Pagination', async () => { test.describe('Pagination', async () => {
test('Shows pagination button at bottom if more than 20 comments', async ({page}) => { test('Shows pagination button at top if more than 20 comments', async ({page}) => {
const mockedApi = new MockedApi({}); const mockedApi = new MockedApi({});
addMultipleComments(mockedApi, 21); addMultipleComments(mockedApi, 21);