Skip to content

Commit

Permalink
Merge pull request #2576 from epam/rangeDatePicker_focus_lock_fixes
Browse files Browse the repository at this point in the history
RangeDatePicker tests fix
  • Loading branch information
AlekseyManetov authored Oct 24, 2024
2 parents 1e4f789 + 57782e3 commit 6a6fe0d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion uui-e2e-tests/framework/pageObjects/pickerInputObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class PickerInputObject {
},
};

constructor(private page: Page) {
constructor(public page: Page) {
const input = page.locator('.uui-input-box.uui-picker_toggler');
const dropdown = page.locator('div[role="dialog"] .uui-dropdown-body');
const areaMultiSelectable = dropdown.locator('div[aria-multiselectable="true"]');
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions uui-e2e-tests/tests/Integration/pickerInput/pickerInput.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ test(DocExamplePath['pickerInput/LazyTreeInput'], async ({ pageWrapper }, testIn
await pageObject.keyboardPress('Enter');
await pageObject.waitForSelectAllButton();
await pageObject.waitForAllOptionsUnchecked();
// // hack - scrolling behavior is not consistent between test runs: "-scrolled-top" css class is not added sometimes
await pageObject.locators.dropdown.option({ ariaPosinset: 1 }).scrollIntoViewIfNeeded();
// await pageObject.waitDropdownDisappears();
// await pageObject.keyboardPress('Enter');
// await pageObject.waitDropdownLoaderAppearsAndDisappears();
// // hack - end
// hack - scrolling behavior is not consistent between test runs: "-scrolled-top" css class is not added sometimes
await pageObject.keyboardPress('Escape');
await pageObject.waitDropdownDisappears();
await pageObject.keyboardPress('Enter');
await pageObject.waitDropdownLoaderAppearsAndDisappears();
// hack - end
await expectScreenshot(20, 'cleared');
});
await test.step('Press "Esc" key 1 time', async () => {
Expand Down

0 comments on commit 6a6fe0d

Please sign in to comment.