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:
parent
7d5ff4d16e
commit
e1e31c530a
@ -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 />
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user