diff --git a/crates/forge-web/tests/e2e/advisories_e2e.rs b/crates/forge-web/tests/e2e/advisories_e2e.rs index 1ce5da9..8df4478 100644 --- a/crates/forge-web/tests/e2e/advisories_e2e.rs +++ b/crates/forge-web/tests/e2e/advisories_e2e.rs @@ -38,7 +38,6 @@ const OSV_RECORD: &str = r#"{ const LOCK_OLD: &str = "version = 4\n\n[[package]]\nname = \"demo\"\nversion = \"1.0.0\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\n"; const LOCK_FIXED: &str = "version = 4\n\n[[package]]\nname = \"demo\"\nversion = \"2.0.0\"\nsource = \"registry+https://github.com/rust-lang/crates.io-index\"\n"; -/// The value of the first `` on a page. /// Runs git with credential helpers disabled. Panics on failure and returns trimmed stdout. fn git(cwd: &Path, args: &[&str]) -> String { let out: Output = Command::new("git") diff --git a/crates/forge-web/tests/e2e/branch_protection_e2e.rs b/crates/forge-web/tests/e2e/branch_protection_e2e.rs index 7ee99dc..d3f0908 100644 --- a/crates/forge-web/tests/e2e/branch_protection_e2e.rs +++ b/crates/forge-web/tests/e2e/branch_protection_e2e.rs @@ -14,7 +14,6 @@ use forge_core::Store; const TAHINLI_PW: &str = "tahinli-password-123"; -/// The value of the first `` on a page. fn run_admin(config: &Path, username: &str, extra: &[&str], password: &str) { let out = Command::new(BIN) .arg("--config") diff --git a/crates/forge-web/tests/e2e/browse_e2e.rs b/crates/forge-web/tests/e2e/browse_e2e.rs index b647ded..75d7865 100644 --- a/crates/forge-web/tests/e2e/browse_e2e.rs +++ b/crates/forge-web/tests/e2e/browse_e2e.rs @@ -106,7 +106,6 @@ fn cookie_named(resp: &Resp, suffix: &str) -> Option { }) } -/// The value of the first `` on a page. /// The values of `attr` on every element matching `selector`, in document order. fn attr_values(body: &str, selector: &str, attr: &str) -> Vec { let doc = scraper::Html::parse_document(body); diff --git a/crates/forge-web/tests/e2e/ci_e2e.rs b/crates/forge-web/tests/e2e/ci_e2e.rs index 0faa112..eb8f9d1 100644 --- a/crates/forge-web/tests/e2e/ci_e2e.rs +++ b/crates/forge-web/tests/e2e/ci_e2e.rs @@ -90,7 +90,6 @@ run = "echo never" needs = ["broken"] "#; -/// The value of the first `` on a page. /// The text of the first element matching `selector`. fn first_text(body: &str, selector: &str) -> String { let doc = scraper::Html::parse_document(body); diff --git a/crates/forge-web/tests/e2e/discussions_e2e.rs b/crates/forge-web/tests/e2e/discussions_e2e.rs index 3642685..2f91fe6 100644 --- a/crates/forge-web/tests/e2e/discussions_e2e.rs +++ b/crates/forge-web/tests/e2e/discussions_e2e.rs @@ -12,7 +12,6 @@ use std::process::Command; const TAHINLI_PW: &str = "tahinli-password-123"; const BOB_PW: &str = "bob-password-4567"; -/// The value of the first `` on a page. fn run_admin(config: &Path, username: &str, extra: &[&str], password: &str) { let out = Command::new(BIN) .arg("--config") diff --git a/crates/forge-web/tests/e2e/git_e2e.rs b/crates/forge-web/tests/e2e/git_e2e.rs index 97dd090..20d436f 100644 --- a/crates/forge-web/tests/e2e/git_e2e.rs +++ b/crates/forge-web/tests/e2e/git_e2e.rs @@ -16,7 +16,6 @@ use reqwest::header::WWW_AUTHENTICATE; const TAHINLI_PW: &str = "tahinli-password-123"; const BOB_PW: &str = "bob-password-4567"; -/// The value of the first `` on a page. fn run_admin(config: &Path, username: &str, extra: &[&str], password: &str) { let out = Command::new(BIN) .arg("--config") diff --git a/crates/forge-web/tests/e2e/i18n_e2e.rs b/crates/forge-web/tests/e2e/i18n_e2e.rs index f5678bc..2457498 100644 --- a/crates/forge-web/tests/e2e/i18n_e2e.rs +++ b/crates/forge-web/tests/e2e/i18n_e2e.rs @@ -11,7 +11,6 @@ use forge_core::Store; const PW: &str = "tahinli-password-123"; -/// The value of the first `` on a page. /// Runs an admin subcommand with the password in FORGE_PASSWORD and asserts it succeeded. fn admin(config: &Path, args: &[&str]) { let out = Command::new(BIN) diff --git a/crates/forge-web/tests/e2e/issue_close_e2e.rs b/crates/forge-web/tests/e2e/issue_close_e2e.rs index 8889f53..7e76eff 100644 --- a/crates/forge-web/tests/e2e/issue_close_e2e.rs +++ b/crates/forge-web/tests/e2e/issue_close_e2e.rs @@ -17,7 +17,6 @@ use forge_core::Store; const TAHINLI_PW: &str = "tahinli-password-123"; const BOB_PW: &str = "bob-password-4567"; -/// The value of the first `` on a page. fn run_admin(config: &Path, username: &str, extra: &[&str], password: &str) { let out = Command::new(BIN) .arg("--config") diff --git a/crates/forge-web/tests/e2e/lfs_e2e.rs b/crates/forge-web/tests/e2e/lfs_e2e.rs index 5a17459..0eefd92 100644 --- a/crates/forge-web/tests/e2e/lfs_e2e.rs +++ b/crates/forge-web/tests/e2e/lfs_e2e.rs @@ -13,7 +13,6 @@ use std::process::{Command, Output}; const TAHINLI_PW: &str = "tahinli-password-123"; const FILE_SIZE: usize = 100 * 1024; -/// The value of the first `` on a page. fn run_admin(config: &Path, username: &str, extra: &[&str], password: &str) { let out = Command::new(BIN) .arg("--config") diff --git a/crates/forge-web/tests/e2e/merge_queue_e2e.rs b/crates/forge-web/tests/e2e/merge_queue_e2e.rs index 9455028..4c71e86 100644 --- a/crates/forge-web/tests/e2e/merge_queue_e2e.rs +++ b/crates/forge-web/tests/e2e/merge_queue_e2e.rs @@ -32,7 +32,6 @@ const BOB_EMAIL: &str = "bob@users.noreply.127.0.0.1"; const REPO_PATH: &str = "/tahinli/r"; const LABELS: &[&str] = &["linux"]; -/// The value of the first `` on a page. /// The text of the first element matching `selector`. fn first_text(body: &str, selector: &str) -> String { let doc = scraper::Html::parse_document(body); diff --git a/crates/forge-web/tests/e2e/mirrors_e2e.rs b/crates/forge-web/tests/e2e/mirrors_e2e.rs index ecbb98c..9e5f7db 100644 --- a/crates/forge-web/tests/e2e/mirrors_e2e.rs +++ b/crates/forge-web/tests/e2e/mirrors_e2e.rs @@ -25,7 +25,6 @@ const SYNC_TIMEOUT: Duration = Duration::from_secs(30); /// worker wakes on the push itself, so this only needs room for the git sync. const PUSH_TIMEOUT: Duration = Duration::from_secs(90); -/// The value of the first `` on a page. /// The `action` of every form whose action ends with `suffix`, in page order. fn form_actions(body: &str, suffix: &str) -> Vec { let doc = scraper::Html::parse_document(body); diff --git a/crates/forge-web/tests/e2e/orgs_core_e2e.rs b/crates/forge-web/tests/e2e/orgs_core_e2e.rs index c6a4b0e..943ee6e 100644 --- a/crates/forge-web/tests/e2e/orgs_core_e2e.rs +++ b/crates/forge-web/tests/e2e/orgs_core_e2e.rs @@ -23,7 +23,6 @@ const PW: &str = "tahinli-password-123"; const ORG_TOKEN: &str = "forge_org_token_for_tests_0123456789"; const ORG_SESSION: &str = "org-session-token-for-tests-0123456789"; -/// The value of the first `` on a page. /// Runs an admin subcommand with the password in FORGE_PASSWORD and asserts it succeeded. fn admin(config: &Path, args: &[&str]) { let out = Command::new(BIN) diff --git a/crates/forge-web/tests/e2e/orgs_live_e2e.rs b/crates/forge-web/tests/e2e/orgs_live_e2e.rs index 7510077..42386ad 100644 --- a/crates/forge-web/tests/e2e/orgs_live_e2e.rs +++ b/crates/forge-web/tests/e2e/orgs_live_e2e.rs @@ -18,7 +18,6 @@ static SERIAL: std::sync::LazyLock> = const PW: &str = "tahinli-password-123"; -/// The value of the first `` on a page. /// The `data-live` value of the first element that names a stream, if any. fn live_url(body: &str) -> Option { let doc = scraper::Html::parse_document(body); diff --git a/crates/forge-web/tests/e2e/orgs_ui_e2e.rs b/crates/forge-web/tests/e2e/orgs_ui_e2e.rs index bf1068d..dc884a3 100644 --- a/crates/forge-web/tests/e2e/orgs_ui_e2e.rs +++ b/crates/forge-web/tests/e2e/orgs_ui_e2e.rs @@ -21,7 +21,6 @@ static SERIAL: std::sync::LazyLock> = const PW: &str = "tahinli-password-123"; -/// The value of the first `` on a page. /// The value of the selected option of the `` on a page. /// Text of the first state badge on a page, e.g. `Open`, `Closed` or `Merged`. fn state_badge(body: &str) -> String { let doc = scraper::Html::parse_document(body); diff --git a/crates/forge-web/tests/e2e/repo_collaborators_e2e.rs b/crates/forge-web/tests/e2e/repo_collaborators_e2e.rs index a24fe0c..f24bda6 100644 --- a/crates/forge-web/tests/e2e/repo_collaborators_e2e.rs +++ b/crates/forge-web/tests/e2e/repo_collaborators_e2e.rs @@ -15,7 +15,6 @@ use reqwest::header::LOCATION; const PW: &str = "tahinli-password-123"; -/// The value of the first `` on a page. /// Runs an admin subcommand with the password in FORGE_PASSWORD and asserts it succeeded. fn admin(config: &Path, args: &[&str]) -> Output { let out = Command::new(BIN) diff --git a/crates/forge-web/tests/e2e/repo_rename_e2e.rs b/crates/forge-web/tests/e2e/repo_rename_e2e.rs index 021eac8..d3ad954 100644 --- a/crates/forge-web/tests/e2e/repo_rename_e2e.rs +++ b/crates/forge-web/tests/e2e/repo_rename_e2e.rs @@ -17,7 +17,6 @@ use reqwest::header::LOCATION; const PW: &str = "tahinli-password-123"; -/// The value of the first `` on a page. /// The `action` of the first form on a page whose action ends with `suffix`. fn form_action(body: &str, suffix: &str) -> String { let doc = scraper::Html::parse_document(body); diff --git a/crates/forge-web/tests/e2e/repo_settings_e2e.rs b/crates/forge-web/tests/e2e/repo_settings_e2e.rs index 6c31652..a4cf60b 100644 --- a/crates/forge-web/tests/e2e/repo_settings_e2e.rs +++ b/crates/forge-web/tests/e2e/repo_settings_e2e.rs @@ -17,7 +17,6 @@ use reqwest::header::LOCATION; const PW: &str = "tahinli-password-123"; -/// The value of the first `` on a page. /// Runs an admin subcommand with the password in FORGE_PASSWORD and asserts it succeeded. fn admin(config: &Path, args: &[&str]) -> Output { let out = Command::new(BIN) diff --git a/crates/forge-web/tests/e2e/repo_transfer_e2e.rs b/crates/forge-web/tests/e2e/repo_transfer_e2e.rs index 47c7fd8..8e9e8ab 100644 --- a/crates/forge-web/tests/e2e/repo_transfer_e2e.rs +++ b/crates/forge-web/tests/e2e/repo_transfer_e2e.rs @@ -17,7 +17,6 @@ use reqwest::header::LOCATION; const PW: &str = "tahinli-password-123"; -/// The value of the first `` on a page. /// The `action` of the first form on a page whose action ends with `suffix`. Panics when none. fn form_action(body: &str, suffix: &str) -> String { let doc = scraper::Html::parse_document(body); diff --git a/crates/forge-web/tests/e2e/section_nav_e2e.rs b/crates/forge-web/tests/e2e/section_nav_e2e.rs index d2a630a..3a52f3d 100644 --- a/crates/forge-web/tests/e2e/section_nav_e2e.rs +++ b/crates/forge-web/tests/e2e/section_nav_e2e.rs @@ -10,7 +10,6 @@ use std::process::Command; const PW: &str = "tahinli-password-123"; -/// The value of the first `` on a page. /// The `data-theme` attribute of ``, if the page sets one. fn html_theme(body: &str) -> Option { let doc = scraper::Html::parse_document(body); diff --git a/crates/forge-web/tests/e2e/snippets_e2e.rs b/crates/forge-web/tests/e2e/snippets_e2e.rs index 6e1ee47..d72537a 100644 --- a/crates/forge-web/tests/e2e/snippets_e2e.rs +++ b/crates/forge-web/tests/e2e/snippets_e2e.rs @@ -13,7 +13,6 @@ use reqwest::header::{CONTENT_TYPE, COOKIE, LOCATION}; const PW: &str = "tahinli-password-123"; -/// The value of the first `` on a page. /// The path and query of an absolute URL, so it can be requested through a base-bound client. fn path_of(url: &str) -> String { let rest = url.split_once("//").map_or(url, |(_, r)| r); diff --git a/crates/forge-web/tests/e2e/stars_e2e.rs b/crates/forge-web/tests/e2e/stars_e2e.rs index b22c6f1..f89d4a7 100644 --- a/crates/forge-web/tests/e2e/stars_e2e.rs +++ b/crates/forge-web/tests/e2e/stars_e2e.rs @@ -15,7 +15,6 @@ use reqwest::header::LOCATION; const PW: &str = "tahinli-password-123"; -/// The value of the first `` on a page. /// Runs an admin subcommand with the password in FORGE_PASSWORD and asserts it succeeded. fn admin(config: &Path, args: &[&str]) { let out = Command::new(BIN) diff --git a/crates/forge-web/tests/e2e/ui_prefs_e2e.rs b/crates/forge-web/tests/e2e/ui_prefs_e2e.rs index 846d860..ca58fb3 100644 --- a/crates/forge-web/tests/e2e/ui_prefs_e2e.rs +++ b/crates/forge-web/tests/e2e/ui_prefs_e2e.rs @@ -11,7 +11,6 @@ use std::process::Command; const PW: &str = "tahinli-password-123"; -/// The value of the first `` on a page. /// The `data-theme` attribute of ``, if the page sets one. fn html_theme(body: &str) -> Option { let doc = scraper::Html::parse_document(body); diff --git a/crates/forge-web/tests/e2e/user_delete_e2e.rs b/crates/forge-web/tests/e2e/user_delete_e2e.rs index b09ae25..bb4641f 100644 --- a/crates/forge-web/tests/e2e/user_delete_e2e.rs +++ b/crates/forge-web/tests/e2e/user_delete_e2e.rs @@ -21,7 +21,6 @@ static SERIAL: std::sync::LazyLock> = const PW: &str = "tahinli-password-123"; -/// The value of the first `` on a page. /// Runs an admin subcommand with the password in FORGE_PASSWORD and asserts it succeeded. fn admin(config: &Path, args: &[&str]) { let out = Command::new(BIN) diff --git a/crates/forge-web/tests/e2e/wiki_e2e.rs b/crates/forge-web/tests/e2e/wiki_e2e.rs index b7a6a06..dea89ec 100644 --- a/crates/forge-web/tests/e2e/wiki_e2e.rs +++ b/crates/forge-web/tests/e2e/wiki_e2e.rs @@ -18,7 +18,6 @@ use reqwest::header::{COOKIE, LOCATION}; const PW: &str = "tahinli-password-123"; -/// The value of the first `` on a page. /// Runs an admin subcommand with the password in FORGE_PASSWORD and asserts it succeeded. fn admin(config: &Path, args: &[&str]) { let out = Command::new(BIN)