Skip to content

Commit

Permalink
[Discover] Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jughosta committed Sep 13, 2023
1 parent f4951e1 commit 467e8d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/functional/services/dashboard/panel_settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export function DashboardCustomizePanelProvider({ getService }: FtrProviderConte
public async clickToggleShowCustomTimeRange() {
log.debug('clickToggleShowCustomTimeRange');
const toggle = await testSubjects.find(this.TOGGLE_TIME_RANGE_TEST_SUBJ);
if (await toggle.isSelected()) {
if ((await toggle.getAttribute('aria-checked')) === 'true') {
await toggle.click();
await retry.waitFor('toggle to switch off', async () => {
const nextToggle = await testSubjects.find(this.TOGGLE_TIME_RANGE_TEST_SUBJ);
Expand Down

0 comments on commit 467e8d5

Please sign in to comment.