Skip to content
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

Add test id and/or timestamp to page result title #1559

Open
bwbroersma opened this issue Nov 15, 2024 · 0 comments
Open

Add test id and/or timestamp to page result title #1559

bwbroersma opened this issue Nov 15, 2024 · 0 comments
Milestone

Comments

@bwbroersma
Copy link
Collaborator

bwbroersma commented Nov 15, 2024

Currently the title is: Website test: ${test_hostname}.

📋 Chrome by default has the OmniboxCanCopyHyperlinksToClipboard feature, that uses the title in a rich HTML Clipboard Format:
<a href="${location.href}">${document.title} (${location.hostname})</a>, so:
<a href="https://${instance_hostname}/website/$test_id/${test_hostname}/">Website test: ${test_hostname} (${instance_hostname}</a>.
Maybe change the report title to include a timestamp and test id?
E.g. Website test: ${test_hostname} (#${test_id} - ${rfc3339timestamp})?

🖨️ Firefox and Edge/Chrome use this in the PDF print name, where : is converted to _.
For at least the PDF print name it would be great to not have the : (_) and have a RFC3339 timestamp prefixed together with test id. Maybe even include instance name. So just before printing, I would propose to change the document.title to:
${rfc3339timestamp}-website-test-${test_id}-${test_hostname} or
${rfc3339timestamp}-${instance_hostname}-website-test-${test_id}-${test_hostname}
This can be done with the beforeprint event.

@bwbroersma bwbroersma added this to the intake milestone Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant