After running tests incorrect report portal URL if running in DEBUG mode
After running tests in the 'DEBUG' mode I see that we are getting link to the "launches" instead of debugs (from https://github.com/reportportal/client-javascript/blob/develop/lib/report-portal-client.js#L249 )
When I run tests in the playwright I see at the end text like:
"ReportPortal Launch Link: https://<reportportal_url>/
const baseReportPortalConfig = {
apiKey: '<key>',
endpoint: '<endpoint>',
project: '<project>',
launch: '<launch>',
description: '<description>',
mode: 'DEBUG',
skippedIssue: true,
debug: false,
includeTestSteps: true,
log: true
};
So I expect the URL to be "https://<reportportal_url>/
I do see the correct URL if I go to the report portal UI, but not in the test, which is confusing, since if I open the launch URL it has no logs.
My setup is Playwright + ReportPortal (https://github.com/reportportal/agent-js-playwright + https://github.com/reportportal/client-javascript/ + https://www.npmjs.com/package/@playwright/test)
Hi @KristineK ! Thanks for pointing our attention to this!
I suppose that the URL that returned from the response is hardcoded on the ReportPortal API side.
I guess we can fix this on the JS client side just by replacing launches with userdebug in case of 'DEBUG' mode, or even better to completely construct the right URL on our side. cc @AliakseiLiasnitski
I'll post ticket in our backlog and will notify you here once it will be done.
Happy Friday!