mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Adding aria-labels to checkbox cells in declarative table (#23204)
This commit is contained in:
@@ -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);
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user