Skip to content

Commit

Permalink
update pagination tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pomahtri committed Oct 25, 2024
1 parent 5b88461 commit a7b01c2
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions e2e/testcafe-devextreme/tests/pagination/baseProperties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,32 @@ test('Pagination elementAttr property', async (t) => {
},
}));

test('Pagination hint, disabled and accessKey properties', async (t) => {
test('Pagination hint and accessKey properties', async (t) => {
const pagination = new Pagination('#container');
await t
.expect(pagination.element.getAttribute('aria-disabled'))
.eql('true')
.expect(pagination.element.hasClass('dx-state-disabled'))
.ok()
.expect(pagination.element.getAttribute('accesskey'))
.eql('F')
.expect(pagination.element.getAttribute('title'))
.eql('Best Pagination');
}).before(async () => createWidget('dxPagination', {
hint: 'Best Pagination',
disabled: true,
accessKey: 'F',
itemCount: 50,
focusStateEnabled: true,
}));

test('Pagination disabled property', async (t) => {
const pagination = new Pagination('#container');
await t
.expect(pagination.element.getAttribute('aria-disabled'))
.eql('true')
.expect(pagination.element.hasClass('dx-state-disabled'))
.ok();
}).before(async () => createWidget('dxPagination', {
disabled: true,
itemCount: 50,
}));

test('Pagination tabindex and state properties', async (t) => {
const pagination = new Pagination('#container');
await t
Expand Down Expand Up @@ -95,7 +102,7 @@ test('Pagination focus method & accessKey propery without focusStateEnabled', as
const pagination = new Pagination('#container');
await t
.expect(pagination.element.getAttribute('accesskey'))
.eql('')
.eql(null)
.expect(pagination.getPageSize(0).element.focused)
.notOk();

Expand Down

0 comments on commit a7b01c2

Please sign in to comment.