Skip to content

Commit

Permalink
test(Datepicker): [BLA-1014] Update the snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vishwapriya committed Jan 29, 2025
1 parent 68a3115 commit 981e95d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
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.
Original file line number Diff line number Diff line change
Expand Up @@ -196,31 +196,13 @@ export const WithCustomHintMessage: Story = {
showHint: true,
hint: 'This is a long hint text message which is longer than the normal default hint message',
},
play: async ({ canvasElement }) => {
setTimeout(async () => {
const datePicker = canvasElement.querySelector('b2b-date-picker');
const b2bDatePickerInputWrapper = datePicker.shadowRoot?.querySelector(
'.b2b-date-picker-input-focus-wrapper',
);
await userEvent.click(b2bDatePickerInputWrapper);
}, 500);
},
};

export const WithPlaceholder: Story = {
args: {
...meta.args,
placeholder: 'this is date picker',
},
play: async ({ canvasElement }) => {
setTimeout(async () => {
const datePicker = canvasElement.querySelector('b2b-date-picker');
const b2bDatePickerInputWrapper = datePicker.shadowRoot?.querySelector(
'.b2b-date-picker-input-focus-wrapper',
);
await userEvent.click(b2bDatePickerInputWrapper);
}, 500);
},
};

export const WithWidth: Story = {
Expand Down

0 comments on commit 981e95d

Please sign in to comment.