File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -343,12 +343,7 @@ export const VPagination = genericComponent<VPaginationSlots>()({
343343 >
344344 < ul class = "v-pagination__list" >
345345 { [ true , 'only-first' ] . includes ( props . showFirstLastPage ) && (
346- < li
347- key = "first"
348- class = "v-pagination__first"
349- data-test = "v-pagination-first"
350- data-testid = "v-pagination-first"
351- >
346+ < li key = "first" class = "v-pagination__first" data-test = "v-pagination-first" >
352347 { slots . first ? slots . first ( controls . value . first ! ) : (
353348 < VBtn _as = "VPaginationBtn" { ...controls . value . first } />
354349 ) }
@@ -389,12 +384,7 @@ export const VPagination = genericComponent<VPaginationSlots>()({
389384 </ li >
390385
391386 { props . showFirstLastPage === true && (
392- < li
393- key = "last"
394- class = "v-pagination__last"
395- data-test = "v-pagination-last"
396- data-testid = "v-pagination-last"
397- >
387+ < li key = "last" class = "v-pagination__last" data-test = "v-pagination-last" >
398388 { slots . last ? slots . last ( controls . value . last ! ) : (
399389 < VBtn _as = "VPaginationBtn" { ...controls . value . last } />
400390 ) }
Original file line number Diff line number Diff line change @@ -28,17 +28,17 @@ describe('VPagination', () => {
2828 < VPagination showFirstLastPage = { false } length = "3" />
2929 ) )
3030
31- expect ( page . getByTestId ( ' v-pagination-first') ) . not . toBeInTheDocument ( )
32- expect ( page . getByTestId ( ' v-pagination-last') ) . not . toBeInTheDocument ( )
31+ expect ( screen . queryByCSS ( '[data-test=" v-pagination-first"] ') ) . not . toBeInTheDocument ( )
32+ expect ( screen . queryByCSS ( '[data-test=" v-pagination-last"] ') ) . not . toBeInTheDocument ( )
3333 } )
3434
3535 it ( 'should render without last page button' , ( ) => {
3636 render ( ( ) => (
3737 < VPagination showFirstLastPage = "only-first" showlength = "3" />
3838 ) )
3939
40- expect ( page . getByTestId ( ' v-pagination-first') ) . toBeInTheDocument ( )
41- expect ( page . getByTestId ( ' v-pagination-last') ) . not . toBeInTheDocument ( )
40+ expect ( screen . queryByCSS ( '[data-test=" v-pagination-first"] ') ) . toBeInTheDocument ( )
41+ expect ( screen . queryByCSS ( '[data-test=" v-pagination-last"] ') ) . not . toBeInTheDocument ( )
4242 } )
4343
4444 it ( 'should react to mouse navigation' , async ( ) => {
You can’t perform that action at this time.
0 commit comments