Anudeep

Results 27 comments of Anudeep

We need to handle it in [centra](https://github.com/ethanent/centra/blob/master/model/CentraRequest.js) in this way - https://stackoverflow.com/a/11853077/5401310

Disabling the w3c fixed this issue `sendKeysToActiveElement`. In beta versions for chrome - **91.0.4472.27** with w3c disabled, `getAttribute('value')` function is returning "**null**". Discussion is [here](https://bugs.chromium.org/p/chromium/issues/detail?id=1205107&start=300) Any workaround apart from disabling...

The error "**Interaction Not Exercised**" happens while using `useInteraction` method in your component testing. You can learn more about the component testing pattern [here](https://pactumjs.github.io/guides/component-testing.html#pattern) Make sure the interaction added through...

@tnypxl thank you for the suggestion. I don't think we need an independent function to handle asynchronous tasks. We need to enhance the existing function to support both of them...

By default pactum prints the request and response to the terminal when any expectation is failed. To print the req & res, we can invoke [inspect](https://pactumjs.github.io/#/request-making) method. ```js await pactum.spec()...

Make sense. Please use [setLogger](https://pactumjs.github.io/#/api-settings?id=setlogger) function to implement your own logger. Based on the message you receive in the `warn` method, you can filter and print the required data.

I'm also tagging this as an enhancement to customise the inspect method.

`setLogger` overrides the internal logger used by pactum. We are not supposed to call anything else inside them. You need to act on the messages that are received as params....

Tracking it https://github.com/ethanent/phin/issues/77

We can use `withHeaders` method to pass **Bearer** token. ```js const token = 'abc'; await pactum.spec() .get('') .withHeaders('Authorization', `Bearer ${token}`) .expectStatus(200) ```