-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expand the production sanity test #814
base: main
Are you sure you want to change the base?
Conversation
9957a2d
to
bb011b7
Compare
bb011b7
to
e3c8691
Compare
e3c8691
to
611d683
Compare
611d683
to
8159527
Compare
8159527
to
ca0be02
Compare
ca0be02
to
3671143
Compare
3671143
to
9b4f24a
Compare
9b4f24a
to
4a88cc2
Compare
4a88cc2
to
a1fdb51
Compare
a1fdb51
to
6f8725d
Compare
6f8725d
to
4766788
Compare
cc22b43
to
5ccdb50
Compare
5ccdb50
to
9b18edf
Compare
9b18edf
to
e6b0933
Compare
e6b0933
to
993d06a
Compare
993d06a
to
cdeb653
Compare
cdeb653
to
854d329
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some feedback on the way 😇 Great work, thank you so much!
Thanks for the feedback! Updated accordingly. |
|
||
// booking request sent dialog should display the correct time slot that was requested | ||
// our requested time slot is stored in this format, as example: 'event-2025-01-14 14:30' | ||
// the dialog reports the slot in this format, as example: 'Tuesday, January 14, 2025 02:30 PM' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you know what code generates the time displayed in the dialog? can that logic be turned into a util and used instead of writing the getTimeFromSlotString custom function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm interesting idea, thanks! Another thing that might be easier or more consistent with test automation would be to add a data-testid
attribute to the available time slots and it could be formatted like
data-testid='Tuesday, January 14, 2025 02:30 PM'
then when the test selects an available time slot it could grab the data-testid attribute value for the selected time slot; and it would already be formatted for what we need.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the code that generates the event time in the request sent dialog is actually generated right in the frontend itself:
https://github.com/thunderbird/appointment/blob/main/frontend/src/components/BookingModal.vue#L54
const time = computed(() => dj(props.event.start).format(
dddd, MMMM D, YYYY ${timeFormat()}));
So I don't think we can go that route.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@malini Would you mind approving this as it is? I don't see any easy way to get rid of the custom getTimeFromSLotString
function unfortunately.
747f5cb
to
b597cc2
Compare
b597cc2
to
f87afb8
Compare
f87afb8
to
d171ce7
Compare
d171ce7
to
d3d5f8d
Compare
Add the following scenarios to the production sanity playwright E2E test:
Here is a link to the new updated test running via GitHub actions on this branch.
And here is the corresponding recorded video of the test running in BrowserStack (if you need BrowserStack credentials just let me know and I can set you up!).