patch: basic E2E tests for macOS

This commit is contained in:
JOASSART Edwin
2024-04-26 00:18:00 +02:00
committed by Edwin Joassart
parent 62ac0b98b9
commit 73b19401c0
18 changed files with 2885 additions and 5074 deletions

View File

@@ -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'),