Adding aria-labels to checkbox cells in declarative table (#23204)

This commit is contained in:
Aasim Khan
2023-06-09 15:28:53 -07:00
committed by GitHub
parent 58082402aa
commit 604c1e7861
3 changed files with 100 additions and 51 deletions

View File

@@ -56,9 +56,7 @@ describe('import extension modify Column Page', function () {
should.notEqual(modifyColumnsPage.form, undefined, 'form should not be undefined');
});
it('handleImport updates table value correctly when import is successful', async function() {
it('handleImport updates table value correctly when import is successful', async function () {
let testProseColumns = [
{
columnName: 'column1',
@@ -75,8 +73,35 @@ describe('import extension modify Column Page', function () {
];
let testTableData = [
[ 'column1', 'nvarchar(50)', false, false],
[ 'column2', 'nvarchar(50)', false, false]
[
{
value: 'column1'
}, {
value: 'nvarchar(50)'
}, {
value: false,
ariaLabel: constants.primaryKeyText,
enabled: true
}, {
value: false,
ariaLabel: constants.allowNullsText,
enabled: true
}
], [
{
value: 'column2'
}, {
value: 'nvarchar(50)'
}, {
value: false,
ariaLabel: constants.primaryKeyText,
enabled: true
}, {
value: false,
ariaLabel: constants.allowNullsText,
enabled: true
}
]
];
mockImportModel.object.proseColumns = testProseColumns;
@@ -98,7 +123,7 @@ describe('import extension modify Column Page', function () {
await modifyColumnsPage.onPageEnter();
// checking if all the required components are correctly initialized
should.deepEqual(modifyColumnsPage.table.data, testTableData);
should.deepEqual(modifyColumnsPage.table.dataValues, testTableData);
});
});