Skip to content

Commit 23a5eda

Browse files
authored
Merge pull request #1506 from Bilb/fix-regression-tests-modal-changes
fix: regression tests with modal changes
2 parents 2299279 + cad5429 commit 23a5eda

File tree

5 files changed

+6
-11
lines changed

5 files changed

+6
-11
lines changed

ts/components/conversation/composition/CompositionBox.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -419,12 +419,7 @@ class CompositionBoxInner extends Component<Props, State> {
419419
type="file"
420420
onChange={this.onChoseAttachment}
421421
/>
422-
<StyledSendMessageInput
423-
role="main"
424-
dir={this.props.htmlDirection}
425-
ref={this.container}
426-
data-testid="message-input"
427-
>
422+
<StyledSendMessageInput role="main" dir={this.props.htmlDirection} ref={this.container}>
428423
<CompositionTextArea
429424
draft={this.state.draft}
430425
initialDraft={this.state.initialDraft}

ts/components/conversation/composition/CompositionTextArea.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,7 @@ export const CompositionTextArea = (props: Props) => {
582582
aria-haspopup="listbox"
583583
aria-autocomplete="list"
584584
aria-label={messagePlaceHolder}
585+
data-testid="message-input-text-area"
585586
/>
586587
{showPopover ? (
587588
<SessionPopoverContent

ts/components/dialog/SessionSetPasswordDialog.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,23 +126,23 @@ export class SessionSetPasswordDialog extends Component<Props, State> {
126126
{...sharedInputProps}
127127
placeholder={placeholders[0]}
128128
onValueChanged={this.onPasswordInput}
129-
data-testid="password-input"
129+
inputDataTestId="password-input"
130130
autoFocus={true}
131131
/>
132132
{passwordAction !== 'enter' && passwordAction !== 'remove' && (
133133
<SimpleSessionInput
134134
{...sharedInputProps}
135135
placeholder={placeholders[1]}
136136
onValueChanged={this.onPasswordConfirmInput}
137-
data-testid="password-input-confirm"
137+
inputDataTestId="password-input-confirm"
138138
/>
139139
)}
140140
{passwordAction === 'change' && (
141141
<SimpleSessionInput
142142
{...sharedInputProps}
143143
placeholder={placeholders[2]}
144144
onValueChanged={this.onPasswordRetypeInput}
145-
data-testid="password-input-reconfirm"
145+
inputDataTestId="password-input-reconfirm"
146146
/>
147147
)}
148148
</ModalFlexContainer>

ts/session/apis/seed_node_api/SeedNodeAPI.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ const getSslAgentForSeedNode = async (seedNodeHost: string, isSsl = false) => {
9898
// so in production, rejectUnauthorized must be true.
9999
rejectUnauthorized: true,
100100
keepAlive: true,
101-
102101
checkServerIdentity: (host: string, cert: any) => {
103102
window.log.info(`seednode checkServerIdentity: ${host}`);
104103
// Make sure the certificate is issued to the host we are connected to

ts/session/onions/onionPath.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ export async function testGuardNode(snode: Snode) {
314314
try {
315315
// Log this line for testing
316316
// curl -k -X POST -H 'Content-Type: application/json' -d '"+fetchOptions.body.replace(/"/g, "\\'")+"'", url
317-
window?.log?.info('insecureNodeFetch => plaintext for testGuardNode');
317+
window?.log?.info('insecureNodeFetch => plaintext for testGuardNode:', url);
318318

319319
response = await insecureNodeFetch(url, fetchOptions);
320320
} catch (e) {

0 commit comments

Comments
 (0)