mirror of
https://github.com/balena-io/etcher.git
synced 2025-11-13 20:29:26 +00:00
patch: basic E2E tests for macOS
This commit is contained in:
committed by
Edwin Joassart
parent
62ac0b98b9
commit
73b19401c0
@@ -165,6 +165,7 @@ const URLSelector = ({
|
||||
cancel={cancel}
|
||||
primaryButtonProps={{
|
||||
disabled: loading || !imageURL,
|
||||
'data-testid': 'source-url-ok',
|
||||
}}
|
||||
action={loading ? <Spinner /> : i18next.t('ok')}
|
||||
done={async () => {
|
||||
@@ -186,6 +187,7 @@ const URLSelector = ({
|
||||
</Txt>
|
||||
<Input
|
||||
value={imageURL}
|
||||
data-testid="source-url-input"
|
||||
placeholder={i18next.t('source.enterValidURL')}
|
||||
type="text"
|
||||
onChange={(evt: React.ChangeEvent<HTMLInputElement>) =>
|
||||
@@ -638,6 +640,7 @@ export class SourceSelector extends React.Component<
|
||||
</StepNameButton>
|
||||
{!flashing && !imageLoading && (
|
||||
<ChangeButton
|
||||
data-testid="change-image"
|
||||
plain
|
||||
mb={14}
|
||||
onClick={() => this.reselectSource()}
|
||||
@@ -655,6 +658,7 @@ export class SourceSelector extends React.Component<
|
||||
disabled={this.state.imageSelectorOpen}
|
||||
primary={this.state.defaultFlowActive}
|
||||
key="Flash from file"
|
||||
data-testid="flash-from-file"
|
||||
flow={{
|
||||
onClick: () => this.openImageSelector(),
|
||||
label: i18next.t('source.fromFile'),
|
||||
@@ -665,6 +669,7 @@ export class SourceSelector extends React.Component<
|
||||
/>
|
||||
<FlowSelector
|
||||
key="Flash from URL"
|
||||
data-testid="flash-from-url"
|
||||
flow={{
|
||||
onClick: () => this.openURLSelector(),
|
||||
label: i18next.t('source.fromURL'),
|
||||
|
||||
Reference in New Issue
Block a user