Skip to content

Commit

Permalink
fixing integ test
Browse files Browse the repository at this point in the history
  • Loading branch information
dpitcock committed Jan 23, 2025
1 parent b0c2c85 commit 43c59ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/date-range-picker/__integ__/date-range-picker.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ describe('Date Range Picker', () => {
monthOnly: granularity === 'month' ? 'true' : 'false',
});
const page = new DateRangePickerPage(createWrapper().findDateRangePicker().getElement(), browser);
await browser.setTimeZone('America/Los_Angeles');
await browser.url(`#/light/date-range-picker/with-value?${params}`);
await page.waitForLoad();
await testFn(page);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default class DateRangePickerPage extends BasePageObject {
}

isNextButtonFocused() {
return this.isFocused(this.findDropdown().findNextPageButton().toSelector());
return this.isFocused(this.findDropdown().findNextButton().toSelector());
}

async focusPrevElement() {
Expand All @@ -70,7 +70,7 @@ export default class DateRangePickerPage extends BasePageObject {
}

async clickPreviousMonth() {
await this.click(this.findDropdown().findPreviousPageButton().toSelector());
await this.click(this.findDropdown().findPreviousButton().toSelector());
}

async clickOutside() {
Expand All @@ -86,7 +86,7 @@ export default class DateRangePickerPage extends BasePageObject {
}

isPreviousMonthButtonFocused() {
return this.isFocused(this.findDropdown().findPreviousPageButton().getElement());
return this.isFocused(this.findDropdown().findPreviousButton().getElement());
}

async clickDate(grid: 'left' | 'right', row: 1 | 2 | 3 | 4 | 5 | 6, column: 1 | 2 | 3 | 4 | 5 | 6 | 7) {
Expand Down

0 comments on commit 43c59ff

Please sign in to comment.