-
Notifications
You must be signed in to change notification settings - Fork 18
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
feat(cts): add tests for analytics
#69
Conversation
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.
Good job !
"testName": "get getClickThroughRate with all parameters", | ||
"parameters": { | ||
"index": "index", | ||
"startDate": "1999-19-09", |
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.
Maybe we should also check the query params to see if this is passed correctly
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.
Indeed, that's what I was checking
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.
PR is here #70
Looks like we have issue with URL encoding in the CTS |
I just realized I forgot to run |
Waiting for #70 to test search params |
🧭 What and Why
🎟 JIRA Ticket: https://algolia.atlassian.net/browse/APIC-241
Changes included:
analytics
client and methodsanalytics
clientgenerateCTS
script to provide a new variable:parametersWithDataType
parametersWithDataType
:Provide an array of parameters with their
key
,value
,is*
data types, and the-last
parameter.This allow us to provide custom logic in our CTS template, to wrap a
startDate
parameters in theDate
constructor for example.🧪 Test
CI :D