Technology comes into consideration after, not before, creating learning assessments. The goals and learning objectives do not change with a different medium -or at least they shouldn't- and so online assessments should be catered to the same standards as in-person assessments, rather than the other way around.
Additionally, as students have even easier access to distractions than in in-person classes, assessments during the lesson may be even more important to maintain student attentions.