pub struct Core {
pub suite: &'static str,
pub settings: Settings,
pub base_url: String,
pub work_dir: PathBuf,
pub http: Client,
/* private fields */
}Expand description
The part of the environment every suite has. An Env dereferences to it.
Fields§
§suite: &'static str§settings: Settings§base_url: Stringhttp://127.0.0.1:<port>, without a trailing slash.
work_dir: PathBuftarget/e2e/<suite>: logs and artifacts of failed tests.
http: ClientImplementations§
Source§impl Core
impl Core
Sourcepub fn new(
suite: &'static str,
settings: Settings,
base_url: String,
chrome: ChromeConfig,
) -> Result<Self>
pub fn new( suite: &'static str, settings: Settings, base_url: String, chrome: ChromeConfig, ) -> Result<Self>
Prepares the work directory, removing what the previous run left in artifacts.
pub fn url(&self, path: &str) -> String
Sourcepub async fn new_browser(&self) -> Result<WebDriver>
pub async fn new_browser(&self) -> Result<WebDriver>
A new Chrome session. Each browser test gets its own.
Auto Trait Implementations§
impl !RefUnwindSafe for Core
impl !UnwindSafe for Core
impl Forget for Core
impl Freeze for Core
impl Move for Core
impl Send for Core
impl Sync for Core
impl Unpin for Core
impl UnsafeUnpin for Core
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more