-
-
Notifications
You must be signed in to change notification settings - Fork 844
Let tests fail if there is a javascript error NOW #5225
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
base: main
Are you sure you want to change the base?
Changes from all commits
b2c6ff9
4d7ff8a
5e0b895
5b0bd09
115b8ef
cab7547
c456f20
ee7a236
17e0d6e
aff0dad
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,14 +15,23 @@ def get_openapi_paths() -> set[str]: | |
|
||
|
||
def test_endpoint_documentation_default(screen: Screen): | ||
@ui.page('/') | ||
def page(): | ||
ui.markdown('Hey!') | ||
|
||
screen.open('/') | ||
assert get_openapi_paths() == set() | ||
|
||
|
||
def test_endpoint_documentation_page_only(screen: Screen): | ||
screen.ui_run_kwargs['endpoint_documentation'] = 'page' | ||
|
||
@ui.page('/') | ||
def page(): | ||
ui.markdown('Hey!') | ||
|
||
screen.open('/') | ||
assert get_openapi_paths() == set() | ||
assert get_openapi_paths() == {'/'} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This assertion change from Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Intended behaviour. Since added |
||
|
||
|
||
def test_endpoint_documentation_internal_only(screen: Screen): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error message format
{js_errors}
will display the raw list representation which is hard to read. Consider formatting the errors more clearly, such as joining individual error messages or extracting relevant fields like message and source.Copilot uses AI. Check for mistakes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not do that. Want full context.