Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekseyManetov committed Oct 23, 2024
1 parent 4f1b230 commit e18548a
Show file tree
Hide file tree
Showing 2 changed files with 3 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
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,8 @@ 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
await pageObject.locators.dropdown.areaMultiSelectable.root.evaluate<any, any>((e) => e.scrollTop -= 100);
// await pageObject.page.mouse.wheel(0, -100);
await expectScreenshot(20, 'cleared');
});
await test.step('Press "Esc" key 1 time', async () => {
Expand Down

0 comments on commit e18548a

Please sign in to comment.