rust/tests/rustdoc-gui
2024-10-28 11:16:38 +01:00
..
src Add GUI regression test for #130622 and for #131223 2024-10-04 18:01:52 +02:00
anchor-navigable.goml
anchors.goml rustdoc: make the header show all three buttons 2024-09-10 17:56:06 -07:00
basic-code.goml
check_info_sign_position.goml
check-code-blocks-margin.goml
check-stab-in-docblock.goml Add GUI regression test for code in doc blocks 2024-10-26 15:45:17 +02:00
code-blocks-overflow.goml
code-color.goml
code-example-buttons.goml Simplify CSS but wrapping scraped example into a div and move the title out of the code block 2024-09-02 15:59:00 +02:00
code-sidebar-toggle.goml
code-tags.goml
codeblock-sub.goml
codeblock-tooltip.goml
copy-code.goml Update GUI tests for code example buttons 2024-08-05 11:04:51 +02:00
copy-path.goml
cursor.goml
default-settings.goml
deref-block.goml
docblock-big-code-mobile.goml Update GUI test 2024-10-26 20:40:59 +02:00
docblock-code-block-line-number.goml Make use of wait-for*-false commands 2024-09-28 18:04:00 +02:00
docblock-details.goml
docblock-table-overflow.goml
docblock-table.goml
duplicate-macro-reexport.goml
enum-variants.goml
escape-key.goml
extend-css.goml
fields.goml Add GUI regression test for variant structfields margins 2024-10-28 11:16:38 +01:00
font-weight.goml
globals.goml
go-to-collapsed-elem.goml
hash-item-expansion.goml
headers-color.goml
headings-anchor.goml
headings.goml
help-page.goml rustdoc: redesign toolbar and disclosure widgets 2024-09-10 17:56:05 -07:00
hide-mobile-topbar.goml
highlight-colors.goml
huge-collection-of-constants.goml
huge-logo.goml
impl_on_foreign_order.goml
impl-default-expansion.goml
impl-doc.goml
implementors.goml
item-decl-colors.goml
item-decl-comment-highlighting.goml
item-info-alignment.goml
item-info-overflow.goml
item-info.goml rustdoc: adjust spacing and typography in header 2024-10-23 19:15:23 -04:00
item-name-wrap.goml
item-summary-table.goml
javascript-disabled.goml
jump-to-def-background.goml
label-next-to-symbol.goml rustdoc: properly handle path wrapping 2024-07-29 10:31:02 -07:00
links-color.goml
list_code_block.goml
list-margins.goml Add GUI regression test for #130622 and for #131223 2024-10-04 18:01:52 +02:00
method-margins.goml
methods-left-margin.goml Strengthen some GUI tests 2024-10-09 21:23:20 +02:00
mobile-crate-name.goml
mobile.goml rustdoc: redesign toolbar and disclosure widgets 2024-09-10 17:56:05 -07:00
module-items-font.goml
no-docblock.goml
notable-trait.goml Strengthen some GUI tests 2024-10-09 21:23:20 +02:00
overflow-tooltip-information.goml
pocket-menu.goml rustdoc: redesign toolbar and disclosure widgets 2024-09-10 17:56:05 -07:00
README.md Enable --no-sandbox option by default for rustdoc GUI tests 2024-10-04 12:11:23 +02:00
rust-logo.goml
scrape-examples-button-focus.goml Fix wrong padding for expanded scraped example 2024-09-03 01:04:59 +02:00
scrape-examples-color.goml Simplify CSS but wrapping scraped example into a div and move the title out of the code block 2024-09-02 15:59:00 +02:00
scrape-examples-fonts.goml
scrape-examples-layout.goml rustdoc: adjust spacing and typography in header 2024-10-23 19:15:23 -04:00
scrape-examples-toggle.goml
search-corrections.goml
search-error.goml
search-filter.goml rustdoc: make the header show all three buttons 2024-09-10 17:56:06 -07:00
search-form-elements.goml rustdoc: redesign toolbar and disclosure widgets 2024-09-10 17:56:05 -07:00
search-input-mobile.goml
search-keyboard.goml
search-no-result.goml
search-reexport.goml
search-result-color.goml
search-result-description.goml
search-result-display.goml rustdoc-gui: fix test cases 2024-09-29 10:02:06 -07:00
search-result-go-to-first.goml Tweak breadcrumbs list 2024-09-23 09:21:39 -07:00
search-result-impl-disambiguation.goml rustdoc-search: account for numeric disambiguators on impls 2024-08-06 07:36:12 -07:00
search-result-keyword.goml
search-tab-change-title-fn-sig.goml
search-tab.goml
search-title.goml
setting-auto-hide-content-large-items.goml
setting-auto-hide-item-methods-docs.goml
setting-auto-hide-trait-implementations.goml
setting-go-to-only-result.goml
settings-button.goml rustdoc: redesign toolbar and disclosure widgets 2024-09-10 17:56:05 -07:00
settings.goml rustdoc: redesign toolbar and disclosure widgets 2024-09-10 17:56:05 -07:00
shortcuts.goml rustdoc: redesign toolbar and disclosure widgets 2024-09-10 17:56:05 -07:00
sidebar-links-color.goml
sidebar-macro-reexport.goml
sidebar-mobile-scroll.goml
sidebar-mobile.goml
sidebar-modnav-position.goml rustdoc: add test case for modnav position when TOC is off 2024-08-20 16:54:04 -07:00
sidebar-resize-close-popover.goml
sidebar-resize-setting.goml
sidebar-resize-window.goml
sidebar-resize.goml
sidebar-source-code-display.goml rustdoc: adjust spacing and typography in header 2024-10-23 19:15:23 -04:00
sidebar-source-code.goml
sidebar.goml rustdoc: redesign toolbar and disclosure widgets 2024-09-10 17:56:05 -07:00
source-anchor-scroll.goml rustdoc: adjust spacing and typography in header 2024-10-23 19:15:23 -04:00
source-code-page-code-scroll.goml
source-code-page.goml rustdoc: adjust spacing and typography in header 2024-10-23 19:15:23 -04:00
src-font-size.goml
stab-badge.goml
stab-in-doc.goml
struct-fields.goml Add GUI regression test for doc struct fields margins 2024-10-27 11:26:45 +01:00
target.goml rustdoc: animate the :target highlight 2024-08-19 18:14:35 -07:00
theme-change.goml
theme-defaults.goml
theme-in-history.goml
toggle-click-deadspace.goml Tweak breadcrumbs list 2024-09-23 09:21:39 -07:00
toggle-docs-mobile.goml rustdoc-gui: fix test cases 2024-09-29 10:02:06 -07:00
toggle-docs.goml rustdoc: redesign toolbar and disclosure widgets 2024-09-10 17:56:05 -07:00
toggle-implementors.goml
toggled-open-implementations.goml
tooltip-over-sidebar.goml
trait-sidebar-item-order.goml
trait-with-bounds.goml
type-declation-overflow.goml rustdoc: redesign toolbar and disclosure widgets 2024-09-10 17:56:05 -07:00
type-impls.goml
unsafe-fn.goml
utils.goml
warning-block.goml
where-whitespace.goml

The tests present here are used to test the generated HTML from rustdoc. The goal is to prevent unsound/unexpected GUI changes.

This is using the browser-ui-test framework to do so. It works as follows:

It wraps puppeteer to send commands to a web browser in order to navigate and test what's being currently displayed in the web page.

You can find more information and its documentation in its repository.

If you need to have more information on the tests run, you can use --test-args:

$ ./x.py test tests/rustdoc-gui --stage 1 --test-args --debug

If you don't want to run in headless mode (helpful to debug sometimes), you can use --no-headless:

$ ./x.py test tests/rustdoc-gui --stage 1 --test-args --no-headless

To see the supported options, use --help.