Skip to content

Commit

Permalink
Try waiting for dataGrid isReady for grid keyboardNavigation tests (T…
Browse files Browse the repository at this point in the history
…951849)
  • Loading branch information
ivanblinov2k17 committed Oct 24, 2024
1 parent 0f6c033 commit bcff660
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2166,6 +2166,7 @@ test('Empty row should lose focus on Tab (T941246)', async (t) => {
const dataGrid = new DataGrid('#container');
const headers = dataGrid.getHeaders();
const dataGridOffsetBottom = await dataGrid.element.getBoundingClientRectProperty('bottom');
await t.expect(dataGrid.isReady()).ok();

async function checkNavigationOfAllCells(): Promise<void> {
await t
Expand Down Expand Up @@ -2248,6 +2249,7 @@ test('Empty row should lose focus on Tab (T941246)', async (t) => {
test(`The cell focus should be restored on pressing shift and tab keys when command column is ${isCommandColumnFixed ? 'fixed' : 'unfixed'} and on the left side (T951849)`, async (t) => {
const dataGrid = new DataGrid('#container');
const headers = dataGrid.getHeaders();
await t.expect(dataGrid.isReady()).ok();

async function checkNavigationOfAllCells(): Promise<void> {
await t
Expand Down Expand Up @@ -2329,6 +2331,7 @@ test('Empty row should lose focus on Tab (T941246)', async (t) => {
const dataGrid = new DataGrid('#container');
const headers = dataGrid.getHeaders();
const dataGridOffsetBottom = await dataGrid.element.getBoundingClientRectProperty('bottom');
await t.expect(dataGrid.isReady()).ok();

async function checkNavigationOfAllCells(): Promise<void> {
await t
Expand Down Expand Up @@ -2414,6 +2417,7 @@ test('Empty row should lose focus on Tab (T941246)', async (t) => {
const dataGrid = new DataGrid('#container');
const headers = dataGrid.getHeaders();
const dataGridOffsetBottom = await dataGrid.element.getBoundingClientRectProperty('bottom');
await t.expect(dataGrid.isReady()).ok();

async function checkNavigationOfAllCells(): Promise<void> {
await t
Expand Down Expand Up @@ -2481,6 +2485,7 @@ test('Empty row should lose focus on Tab (T941246)', async (t) => {
test(`The cell focus should be restored on pressing shift and tab keys when command column is ${isCommandColumnFixed ? 'fixed' : 'unfixed'} and on the right side (T951849)`, async (t) => {
const dataGrid = new DataGrid('#container');
const headers = dataGrid.getHeaders();
await t.expect(dataGrid.isReady()).ok();

async function checkNavigationOfAllCells(): Promise<void> {
await t
Expand Down

0 comments on commit bcff660

Please sign in to comment.