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

respect explicitely disabled searchbox in navbar #11339

Merged
merged 9 commits into from
Nov 8, 2024
Merged

Conversation

cderv
Copy link
Collaborator

@cderv cderv commented Nov 7, 2024

Same fix as for sidebar in 0ba4ad1Welcome to the quarto GitHub repo!

fixes #9905

About tests changes

I wanted to use profile to avoid file duplication, but after a few tries, I can make it work.
It seems setting env var in setup and teardown is not safe when running several tests one after the other in same file. There are conflict in state due to async function use in testQuartoCmd

I could not make this work as I wanted to make the test pass. 🤔 Probably missing something as I would have expected

// Test 1
Deno.test()

// Test 2
Deno.test()

to not conflict with each other. I did not find safe way to set env var before test, and unset after in this case.

Anyhow, for another time

cderv added 9 commits November 7, 2024 15:11
Running a render with profile is tricky as it needs to be done using environment variable, which is tricky in async tests. So probably not enough
It does not currently work because setting env var for a test is not safe as several Deno.test() can conflict with one another setup and teardown. Environment is not isolated between tests.

So use two duplicated projects with different config for the test
@cderv cderv merged commit 28bfc55 into main Nov 8, 2024
47 checks passed
@cderv cderv deleted the navbar/search-opt-out branch November 8, 2024 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search cannot be disable in navbar
1 participant