After a few more tests I assume that the URL is truncated starting with an included “=”
Latest posts made by kwi
RE: qpdfviewer - src: Server-URL with Token for Authorization is truncated
qpdfviewer - src: Server-URL with Token for Authorization is truncated
I want to use the qpdfviewer for viewing PDF files that I load from the server. The URL to the server contains a session token.
The URL (attachmentURL) looks something like this: /api/…/4/file?access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsic2VtaXNBcHAiXSwidXNlcl9uYW1lIjoia2Vyc3RpbiIsInNjb3BlIjpbImFsbCJdLCJleHAiOjE1OTIzOTgwNzYsImF1dGhvcml0aWVzIjpbIkF1dGhvcml6ZWRCeURhdGFiYXNlIl0sImp0aSI6ImIyNTY4YzE5LWM2OGMtNDMxYy04MjVhLTY4ODliMTk3NjVjZiIsImNsaWVudF9pZCI6InNlbWlzQXBwIn0.1ejO0_7kQFZMRFhEbDODBnrJWZt3HM_7Wv6mO7HQp3A
Unfortunately the request looks like this: http://localhost:8081/api/.../4/file?access_token
Because the token is missing, I receive a Response_Status 401 from the server.
What do I have to do so that I can give the token via the Request in src:?
E2E testing with cypress
I can integrate cypress in my quasar project. it works, but how can I identify my input-fields? In older versions of quasar I marked my input fields with Id="…". Now quasar assigns its own IDs.
here an examle of one input field:
<input tabindex=“0” data-autofocus=“true” aria-label=“Benutzername” id=“f_0f78a881-3692-4d73-bd06-383baad9734a” type=“text” class=“q-field__native q-placeholder”>
How can I find this input field in my cypress-test-script? cy.get(???)