pub enum E2eCmd {
Doctor {
dir: Option<PathBuf>,
project: Option<String>,
},
Init {
dir: Option<PathBuf>,
project: Option<String>,
run_project: Option<String>,
browsers: bool,
},
}Variants§
Doctor
Diagnose the browser-E2E setup: node (≥20), npm,
@playwright/test in the scaffold, a downloaded chromium, the
gateway’s testing bundle, and the gateway’s trial state.
Read-only and offline-safe — exits 0 whenever the diagnosis
completes, so every finding is a checks[] row rather than
an exit code. The two gateway rows report skip when no
profile resolves or no –project is given
Fields
Init
Scaffold a Playwright E2E suite into DIR (default ./e2e): a
runner config, a global setup that logs in through ign session login and gates on ign testing run, gateway tag/
script helpers, an example suite, a .gitignore, and a README —
then npm install. Idempotent: an existing file is
reported skipped and never overwritten. Requires the global
–yes; without it the verb writes nothing, spawns nothing, and
refuses exit 2 after previewing every file and both commands
Trait Implementations§
Source§impl FromArgMatches for E2eCmd
impl FromArgMatches for E2eCmd
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for E2eCmd
impl Subcommand for E2eCmd
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand