forge
Explore
Log in

Don't you dare go Hollow

E2e modules drop the doc line left behind by the input_value dedupe

Browse files at this commit

03ed0d58e5090b81a5ac1e4c351836f6bba150cbAhmet Kaan GümüşParent: 03e7479
  • style
    • e2e modules drop the doc line left behind by the input_value dedupe
Show full message
🎨 style: e2e modules drop the doc line left behind by the input_value dedupe
crates/forge-web/tests/e2e/advisories_e2e.rsmodified+0 -1
@@ -38,7 +38,6 @@ const OSV_RECORD: &str = r#"{
38 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";38 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";
39 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";39 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";
40 40
41-/// The value of the first `<input name="...">` on a page.
42 /// Runs git with credential helpers disabled. Panics on failure and returns trimmed stdout.41 /// Runs git with credential helpers disabled. Panics on failure and returns trimmed stdout.
43 fn git(cwd: &Path, args: &[&str]) -> String {42 fn git(cwd: &Path, args: &[&str]) -> String {
44 let out: Output = Command::new("git")43 let out: Output = Command::new("git")
crates/forge-web/tests/e2e/branch_protection_e2e.rsmodified+0 -1
@@ -14,7 +14,6 @@ use forge_core::Store;
14 14
15 const TAHINLI_PW: &str = "tahinli-password-123";15 const TAHINLI_PW: &str = "tahinli-password-123";
16 16
17-/// The value of the first `<input name="...">` on a page.
18 fn run_admin(config: &Path, username: &str, extra: &[&str], password: &str) {17 fn run_admin(config: &Path, username: &str, extra: &[&str], password: &str) {
19 let out = Command::new(BIN)18 let out = Command::new(BIN)
20 .arg("--config")19 .arg("--config")
crates/forge-web/tests/e2e/browse_e2e.rsmodified+0 -1
@@ -106,7 +106,6 @@ fn cookie_named(resp: &Resp, suffix: &str) -> Option<String> {
106 })106 })
107 }107 }
108 108
109-/// The value of the first `<input name="...">` on a page.
110 /// The values of `attr` on every element matching `selector`, in document order.109 /// The values of `attr` on every element matching `selector`, in document order.
111 fn attr_values(body: &str, selector: &str, attr: &str) -> Vec<String> {110 fn attr_values(body: &str, selector: &str, attr: &str) -> Vec<String> {
112 let doc = scraper::Html::parse_document(body);111 let doc = scraper::Html::parse_document(body);
crates/forge-web/tests/e2e/ci_e2e.rsmodified+0 -1
@@ -90,7 +90,6 @@ run = "echo never"
90 needs = ["broken"]90 needs = ["broken"]
91 "#;91 "#;
92 92
93-/// The value of the first `<input name="...">` on a page.
94 /// The text of the first element matching `selector`.93 /// The text of the first element matching `selector`.
95 fn first_text(body: &str, selector: &str) -> String {94 fn first_text(body: &str, selector: &str) -> String {
96 let doc = scraper::Html::parse_document(body);95 let doc = scraper::Html::parse_document(body);
crates/forge-web/tests/e2e/discussions_e2e.rsmodified+0 -1
@@ -12,7 +12,6 @@ use std::process::Command;
12 const TAHINLI_PW: &str = "tahinli-password-123";12 const TAHINLI_PW: &str = "tahinli-password-123";
13 const BOB_PW: &str = "bob-password-4567";13 const BOB_PW: &str = "bob-password-4567";
14 14
15-/// The value of the first `<input name="...">` on a page.
16 fn run_admin(config: &Path, username: &str, extra: &[&str], password: &str) {15 fn run_admin(config: &Path, username: &str, extra: &[&str], password: &str) {
17 let out = Command::new(BIN)16 let out = Command::new(BIN)
18 .arg("--config")17 .arg("--config")
crates/forge-web/tests/e2e/git_e2e.rsmodified+0 -1
@@ -16,7 +16,6 @@ use reqwest::header::WWW_AUTHENTICATE;
16 const TAHINLI_PW: &str = "tahinli-password-123";16 const TAHINLI_PW: &str = "tahinli-password-123";
17 const BOB_PW: &str = "bob-password-4567";17 const BOB_PW: &str = "bob-password-4567";
18 18
19-/// The value of the first `<input name="...">` on a page.
20 fn run_admin(config: &Path, username: &str, extra: &[&str], password: &str) {19 fn run_admin(config: &Path, username: &str, extra: &[&str], password: &str) {
21 let out = Command::new(BIN)20 let out = Command::new(BIN)
22 .arg("--config")21 .arg("--config")
crates/forge-web/tests/e2e/i18n_e2e.rsmodified+0 -1
@@ -11,7 +11,6 @@ use forge_core::Store;
11 11
12 const PW: &str = "tahinli-password-123";12 const PW: &str = "tahinli-password-123";
13 13
14-/// The value of the first `<input name="...">` on a page.
15 /// Runs an admin subcommand with the password in FORGE_PASSWORD and asserts it succeeded.14 /// Runs an admin subcommand with the password in FORGE_PASSWORD and asserts it succeeded.
16 fn admin(config: &Path, args: &[&str]) {15 fn admin(config: &Path, args: &[&str]) {
17 let out = Command::new(BIN)16 let out = Command::new(BIN)
crates/forge-web/tests/e2e/issue_close_e2e.rsmodified+0 -1
@@ -17,7 +17,6 @@ use forge_core::Store;
17 const TAHINLI_PW: &str = "tahinli-password-123";17 const TAHINLI_PW: &str = "tahinli-password-123";
18 const BOB_PW: &str = "bob-password-4567";18 const BOB_PW: &str = "bob-password-4567";
19 19
20-/// The value of the first `<input name="...">` on a page.
21 fn run_admin(config: &Path, username: &str, extra: &[&str], password: &str) {20 fn run_admin(config: &Path, username: &str, extra: &[&str], password: &str) {
22 let out = Command::new(BIN)21 let out = Command::new(BIN)
23 .arg("--config")22 .arg("--config")
crates/forge-web/tests/e2e/lfs_e2e.rsmodified+0 -1
@@ -13,7 +13,6 @@ use std::process::{Command, Output};
13 const TAHINLI_PW: &str = "tahinli-password-123";13 const TAHINLI_PW: &str = "tahinli-password-123";
14 const FILE_SIZE: usize = 100 * 1024;14 const FILE_SIZE: usize = 100 * 1024;
15 15
16-/// The value of the first `<input name="...">` on a page.
17 fn run_admin(config: &Path, username: &str, extra: &[&str], password: &str) {16 fn run_admin(config: &Path, username: &str, extra: &[&str], password: &str) {
18 let out = Command::new(BIN)17 let out = Command::new(BIN)
19 .arg("--config")18 .arg("--config")
crates/forge-web/tests/e2e/merge_queue_e2e.rsmodified+0 -1
@@ -32,7 +32,6 @@ const BOB_EMAIL: &str = "bob@users.noreply.127.0.0.1";
32 const REPO_PATH: &str = "/tahinli/r";32 const REPO_PATH: &str = "/tahinli/r";
33 const LABELS: &[&str] = &["linux"];33 const LABELS: &[&str] = &["linux"];
34 34
35-/// The value of the first `<input name="...">` on a page.
36 /// The text of the first element matching `selector`.35 /// The text of the first element matching `selector`.
37 fn first_text(body: &str, selector: &str) -> String {36 fn first_text(body: &str, selector: &str) -> String {
38 let doc = scraper::Html::parse_document(body);37 let doc = scraper::Html::parse_document(body);
crates/forge-web/tests/e2e/mirrors_e2e.rsmodified+0 -1
@@ -25,7 +25,6 @@ const SYNC_TIMEOUT: Duration = Duration::from_secs(30);
25 /// worker wakes on the push itself, so this only needs room for the git sync.25 /// worker wakes on the push itself, so this only needs room for the git sync.
26 const PUSH_TIMEOUT: Duration = Duration::from_secs(90);26 const PUSH_TIMEOUT: Duration = Duration::from_secs(90);
27 27
28-/// The value of the first `<input name="...">` on a page.
29 /// The `action` of every form whose action ends with `suffix`, in page order.28 /// The `action` of every form whose action ends with `suffix`, in page order.
30 fn form_actions(body: &str, suffix: &str) -> Vec<String> {29 fn form_actions(body: &str, suffix: &str) -> Vec<String> {
31 let doc = scraper::Html::parse_document(body);30 let doc = scraper::Html::parse_document(body);
crates/forge-web/tests/e2e/orgs_core_e2e.rsmodified+0 -1
@@ -23,7 +23,6 @@ const PW: &str = "tahinli-password-123";
23 const ORG_TOKEN: &str = "forge_org_token_for_tests_0123456789";23 const ORG_TOKEN: &str = "forge_org_token_for_tests_0123456789";
24 const ORG_SESSION: &str = "org-session-token-for-tests-0123456789";24 const ORG_SESSION: &str = "org-session-token-for-tests-0123456789";
25 25
26-/// The value of the first `<input name="...">` on a page.
27 /// Runs an admin subcommand with the password in FORGE_PASSWORD and asserts it succeeded.26 /// Runs an admin subcommand with the password in FORGE_PASSWORD and asserts it succeeded.
28 fn admin(config: &Path, args: &[&str]) {27 fn admin(config: &Path, args: &[&str]) {
29 let out = Command::new(BIN)28 let out = Command::new(BIN)
crates/forge-web/tests/e2e/orgs_live_e2e.rsmodified+0 -1
@@ -18,7 +18,6 @@ static SERIAL: std::sync::LazyLock<tokio::sync::Mutex<()>> =
18 18
19 const PW: &str = "tahinli-password-123";19 const PW: &str = "tahinli-password-123";
20 20
21-/// The value of the first `<input name="...">` on a page.
22 /// The `data-live` value of the first element that names a stream, if any.21 /// The `data-live` value of the first element that names a stream, if any.
23 fn live_url(body: &str) -> Option<String> {22 fn live_url(body: &str) -> Option<String> {
24 let doc = scraper::Html::parse_document(body);23 let doc = scraper::Html::parse_document(body);
crates/forge-web/tests/e2e/orgs_ui_e2e.rsmodified+0 -1
@@ -21,7 +21,6 @@ static SERIAL: std::sync::LazyLock<tokio::sync::Mutex<()>> =
21 21
22 const PW: &str = "tahinli-password-123";22 const PW: &str = "tahinli-password-123";
23 23
24-/// The value of the first `<input name="...">` on a page.
25 /// The value of the selected option of the `<select name="...">` on a page.24 /// The value of the selected option of the `<select name="...">` on a page.
26 fn selected_value(body: &str, name: &str) -> Option<String> {25 fn selected_value(body: &str, name: &str) -> Option<String> {
27 let doc = scraper::Html::parse_document(body);26 let doc = scraper::Html::parse_document(body);
crates/forge-web/tests/e2e/pulls_e2e.rsmodified+0 -1
@@ -20,7 +20,6 @@ const BOB_PW: &str = "bob-password-4567";
20 const BOB_EMAIL: &str = "bob@users.noreply.127.0.0.1";20 const BOB_EMAIL: &str = "bob@users.noreply.127.0.0.1";
21 const REPO_PATH: &str = "/tahinli/r";21 const REPO_PATH: &str = "/tahinli/r";
22 22
23-/// The value of the first `<input name="...">` on a page.
24 /// Text of the first state badge on a page, e.g. `Open`, `Closed` or `Merged`.23 /// Text of the first state badge on a page, e.g. `Open`, `Closed` or `Merged`.
25 fn state_badge(body: &str) -> String {24 fn state_badge(body: &str) -> String {
26 let doc = scraper::Html::parse_document(body);25 let doc = scraper::Html::parse_document(body);
crates/forge-web/tests/e2e/repo_collaborators_e2e.rsmodified+0 -1
@@ -15,7 +15,6 @@ use reqwest::header::LOCATION;
15 15
16 const PW: &str = "tahinli-password-123";16 const PW: &str = "tahinli-password-123";
17 17
18-/// The value of the first `<input name="...">` on a page.
19 /// Runs an admin subcommand with the password in FORGE_PASSWORD and asserts it succeeded.18 /// Runs an admin subcommand with the password in FORGE_PASSWORD and asserts it succeeded.
20 fn admin(config: &Path, args: &[&str]) -> Output {19 fn admin(config: &Path, args: &[&str]) -> Output {
21 let out = Command::new(BIN)20 let out = Command::new(BIN)
crates/forge-web/tests/e2e/repo_rename_e2e.rsmodified+0 -1
@@ -17,7 +17,6 @@ use reqwest::header::LOCATION;
17 17
18 const PW: &str = "tahinli-password-123";18 const PW: &str = "tahinli-password-123";
19 19
20-/// The value of the first `<input name="...">` on a page.
21 /// The `action` of the first form on a page whose action ends with `suffix`.20 /// The `action` of the first form on a page whose action ends with `suffix`.
22 fn form_action(body: &str, suffix: &str) -> String {21 fn form_action(body: &str, suffix: &str) -> String {
23 let doc = scraper::Html::parse_document(body);22 let doc = scraper::Html::parse_document(body);
crates/forge-web/tests/e2e/repo_settings_e2e.rsmodified+0 -1
@@ -17,7 +17,6 @@ use reqwest::header::LOCATION;
17 17
18 const PW: &str = "tahinli-password-123";18 const PW: &str = "tahinli-password-123";
19 19
20-/// The value of the first `<input name="...">` on a page.
21 /// Runs an admin subcommand with the password in FORGE_PASSWORD and asserts it succeeded.20 /// Runs an admin subcommand with the password in FORGE_PASSWORD and asserts it succeeded.
22 fn admin(config: &Path, args: &[&str]) -> Output {21 fn admin(config: &Path, args: &[&str]) -> Output {
23 let out = Command::new(BIN)22 let out = Command::new(BIN)
crates/forge-web/tests/e2e/repo_transfer_e2e.rsmodified+0 -1
@@ -17,7 +17,6 @@ use reqwest::header::LOCATION;
17 17
18 const PW: &str = "tahinli-password-123";18 const PW: &str = "tahinli-password-123";
19 19
20-/// The value of the first `<input name="...">` on a page.
21 /// The `action` of the first form on a page whose action ends with `suffix`. Panics when none.20 /// The `action` of the first form on a page whose action ends with `suffix`. Panics when none.
22 fn form_action(body: &str, suffix: &str) -> String {21 fn form_action(body: &str, suffix: &str) -> String {
23 let doc = scraper::Html::parse_document(body);22 let doc = scraper::Html::parse_document(body);
crates/forge-web/tests/e2e/section_nav_e2e.rsmodified+0 -1
@@ -10,7 +10,6 @@ use std::process::Command;
10 10
11 const PW: &str = "tahinli-password-123";11 const PW: &str = "tahinli-password-123";
12 12
13-/// The value of the first `<input name="...">` on a page.
14 /// The `data-theme` attribute of `<html>`, if the page sets one.13 /// The `data-theme` attribute of `<html>`, if the page sets one.
15 fn html_theme(body: &str) -> Option<String> {14 fn html_theme(body: &str) -> Option<String> {
16 let doc = scraper::Html::parse_document(body);15 let doc = scraper::Html::parse_document(body);
crates/forge-web/tests/e2e/snippets_e2e.rsmodified+0 -1
@@ -13,7 +13,6 @@ use reqwest::header::{CONTENT_TYPE, COOKIE, LOCATION};
13 13
14 const PW: &str = "tahinli-password-123";14 const PW: &str = "tahinli-password-123";
15 15
16-/// The value of the first `<input name="...">` on a page.
17 /// The path and query of an absolute URL, so it can be requested through a base-bound client.16 /// The path and query of an absolute URL, so it can be requested through a base-bound client.
18 fn path_of(url: &str) -> String {17 fn path_of(url: &str) -> String {
19 let rest = url.split_once("//").map_or(url, |(_, r)| r);18 let rest = url.split_once("//").map_or(url, |(_, r)| r);
crates/forge-web/tests/e2e/stars_e2e.rsmodified+0 -1
@@ -15,7 +15,6 @@ use reqwest::header::LOCATION;
15 15
16 const PW: &str = "tahinli-password-123";16 const PW: &str = "tahinli-password-123";
17 17
18-/// The value of the first `<input name="...">` on a page.
19 /// Runs an admin subcommand with the password in FORGE_PASSWORD and asserts it succeeded.18 /// Runs an admin subcommand with the password in FORGE_PASSWORD and asserts it succeeded.
20 fn admin(config: &Path, args: &[&str]) {19 fn admin(config: &Path, args: &[&str]) {
21 let out = Command::new(BIN)20 let out = Command::new(BIN)
crates/forge-web/tests/e2e/ui_prefs_e2e.rsmodified+0 -1
@@ -11,7 +11,6 @@ use std::process::Command;
11 11
12 const PW: &str = "tahinli-password-123";12 const PW: &str = "tahinli-password-123";
13 13
14-/// The value of the first `<input name="...">` on a page.
15 /// The `data-theme` attribute of `<html>`, if the page sets one.14 /// The `data-theme` attribute of `<html>`, if the page sets one.
16 fn html_theme(body: &str) -> Option<String> {15 fn html_theme(body: &str) -> Option<String> {
17 let doc = scraper::Html::parse_document(body);16 let doc = scraper::Html::parse_document(body);
crates/forge-web/tests/e2e/user_delete_e2e.rsmodified+0 -1
@@ -21,7 +21,6 @@ static SERIAL: std::sync::LazyLock<tokio::sync::Mutex<()>> =
21 21
22 const PW: &str = "tahinli-password-123";22 const PW: &str = "tahinli-password-123";
23 23
24-/// The value of the first `<input name="...">` on a page.
25 /// Runs an admin subcommand with the password in FORGE_PASSWORD and asserts it succeeded.24 /// Runs an admin subcommand with the password in FORGE_PASSWORD and asserts it succeeded.
26 fn admin(config: &Path, args: &[&str]) {25 fn admin(config: &Path, args: &[&str]) {
27 let out = Command::new(BIN)26 let out = Command::new(BIN)
crates/forge-web/tests/e2e/wiki_e2e.rsmodified+0 -1
@@ -18,7 +18,6 @@ use reqwest::header::{COOKIE, LOCATION};
18 18
19 const PW: &str = "tahinli-password-123";19 const PW: &str = "tahinli-password-123";
20 20
21-/// The value of the first `<input name="...">` on a page.
22 /// Runs an admin subcommand with the password in FORGE_PASSWORD and asserts it succeeded.21 /// Runs an admin subcommand with the password in FORGE_PASSWORD and asserts it succeeded.
23 fn admin(config: &Path, args: &[&str]) {22 fn admin(config: &Path, args: &[&str]) {
24 let out = Command::new(BIN)23 let out = Command::new(BIN)