Rules for account data
- The Chromium profile is below
${XDG_STATE_HOME:-$HOME/.local/state}/gopher/. It is outside the repository. Thusgit clean -xdf, backup programs, and search programs do not touch it. - Git ignores
.api-dumps/, because those files contain account data. Do not add them to Git, and do not copy data from them into a file that Git contains. - Never put data that identifies the account into the repository. This includes IDs, names, e-mail addresses, cookies, and tokens. It applies to source files, documents, commit messages, and logs.
- Never make a picture of the panel with real data in the cache. The creators that the account pays are account data. Put artificial records into the cache.
- Write a temporary Playwright script in the top directory of the repository and delete it after
the test.
tsxcannot findplaywrightfrom/tmp. Note thattsxuses thekeepNamesoption of esbuild. That option adds a__namefunction thatpage.evaluatecannot send to the page. Put a long function in a.jsfile and send the text of that file. Note thatpage.evaluatereads a string as an expression and does not call it. Put(and)()around the text, or the page makes the function and gives youundefined.