function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sebastian KSebastian K 

Assert todays date in Flow Test

Hello. I am currently writing Flow Tests for my new Flows in my org. My flow sets a field to todays date. Now, I want to see if it does that successfully. However, one can only hardcode the date in the assertions. 

Anybody have a solution to this?

AshwiniAshwini (Salesforce Developers) 
Hi @Sebastian K,

As per the below ideaexchange, it looks like this feature is not supported at the moment. You can upvote the feature using the below link so that product team can implement in the coming releases.
https://ideas.salesforce.com/s/idea/a0B8W00000LA0hRUAT/flow-test-assertions-support-dynamic-values 

If this information helps, please mark the answer as best. Thank you