We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Im recording all the requests for a test and its saved here: ./recordings/iam-login-logout_301619159/recording.har
import { Polly } from "@pollyjs/core"; import NodeHTTP from "@pollyjs/adapter-node-http"; import { MODES } from '@pollyjs/utils'; import FSPersister from '@pollyjs/persister-fs'; Polly.register(NodeHTTP); Polly.register(FSPersister); tags(APP, CRITICAL, WEB).describe('IAM - Login and Logout Tests', function () { let tempUser; before(async function () { this.polly = new Polly('iam-login-logout', { mode: MODES.REPLAY, adapters: ['node-http'], persister: 'fs', persisterOptions: { fs: { recordingsDir: './recordings' } }, recordIfMissing: true, matchRequestsBy: { method: true, headers: true, body: true, order: false, url: { protocol: true, username: false, password: false, hostname: true, port: false, pathname: true, query: true, hash: true, }, }, }); [tempUser] = await createUser({ type: 'free' }); }); it(`should login the users`, async function () { await login(tempUser, { goToWorkspace: 'My Workspace' }); }); it(`should logout the users`, async function () { if (this.polly) { this.polly.stop(); } await logout(); }); }); `
It saves the recordings at : ./recordings/iam-login-logout_301619159/recording.har
But If I run it in replay mode. Its recording again a new file.
When I change it to
recordIfMissing: false,
It shows this error:
[Polly] [adapter:node-http] Recording for the following request is not found and `recordIfMissing` is `false`.
The text was updated successfully, but these errors were encountered:
I am having exactly the same issue, even when setting everything in matchRequestsBy to false.
matchRequestsBy
Sorry, something went wrong.
Not sure about the stop in your tests
stop
No branches or pull requests
Description
Im recording all the requests for a test and its saved here: ./recordings/iam-login-logout_301619159/recording.har
It saves the recordings at : ./recordings/iam-login-logout_301619159/recording.har
But If I run it in replay mode. Its recording again a new file.
When I change it to
It shows this error:
The text was updated successfully, but these errors were encountered: