Skip to content
This repository was archived by the owner on Sep 29, 2021. It is now read-only.

unique -> uniqueWithRetry Fixes #27 #28

Merged
merged 2 commits into from
Oct 7, 2019

Conversation

burner
Copy link
Contributor

@burner burner commented Oct 4, 2019

uniqueWithRetry tries to get an HTML element by ID to make tests less brittle.
unique fails if IDs are invalid HTML, which can still be displayed by browsers.

also makes typescript and the linter happier.

@@ -132,13 +132,12 @@ export function getCodeFromEvent(event: AllFdEvents, options?: Options): string

export function getCode(suite: string, description: string, events: AllFdEvents[], options?: Options) {
let firstVisitUrl = '';
for (let i = 0; i < events.length; ++i) {
const event = events[i];
for (const event of events) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow! I can't believe I wrote that piece of code. Thanks for doing the code-review as well 😌

Copy link
Contributor

@willemliu willemliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good!

@willemliufdmg willemliufdmg merged commit 19f503b into FDMediagroep:master Oct 7, 2019
@burner
Copy link
Contributor Author

burner commented Oct 7, 2019

@willemliu thank you, could you also create a new release for the chrome plugin store thing, so I can kick my custom version to the curb?

@willemliu
Copy link
Contributor

@burner absolutely. I'm going to do some smoke-testing and after that I'll bundle a new release for Chrome.

@burner
Copy link
Contributor Author

burner commented Oct 7, 2019

@willemliu perfect thank you

willemliufdmg pushed a commit that referenced this pull request Oct 7, 2019
Many thanks to @burner
#28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants