-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
core(fr): separate audit phase for flows #13623
Changes from 1 commit
c116fe9
86e90fb
6ec57d6
a8da3ea
ed43694
ae2ef25
6486482
32efb46
335df52
495fb26
16377e7
3273315
88b9e85
b0c9e46
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,8 @@ async function waitForImagesToLoad(page) { | |
|
||
await flow.navigate('https://www.mikescerealshack.co/corrections'); | ||
|
||
await flow.endFlow(); | ||
|
||
const flowResult = flow.getFlowResult(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is there a reason to have separate functions for endFlow and getFlowResult? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't want to make |
||
|
||
fs.writeFileSync( | ||
|
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.
Seems like if the user calls getFlowResult, followed by more gathering, then getFlowResult again, they will get a cached result and no indication that something they did was wrong.
Should either guard against that (throw if already called getFlowResult), or just not cache. If the latter, might be good to rename to
createFlowResult
.also nit: rename
getUserFlowReport
?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.
I'm thinking we remove the cache.
This function returns a
FlowResult
object not a string containing the user flow report.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.
I meant
getUserFlowResult
.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.
I think it makes more sense since the object type is
FlowResult
. I also think it's pretty clear that "flow" refers to a "user flow" and not some other type of flow. The constructor forUserFlow
isn't exposed on the api either.