chore: fix integration tests

pull/3074/head
Audric Ackermann 1 month ago
parent 53aeb63894
commit 63fa2538fc

@ -29,7 +29,7 @@ window.getNodeVersion = () => configAny.node_version;
window.sessionFeatureFlags = { window.sessionFeatureFlags = {
useOnionRequests: true, useOnionRequests: true,
useTestNet: isTestNet(), useTestNet: isTestNet() || isTestIntegration(),
integrationTestEnv: isTestIntegration(), integrationTestEnv: isTestIntegration(),
useClosedGroupV3: false, useClosedGroupV3: false,
debug: { debug: {

@ -62,6 +62,7 @@ const Password = (props: PasswordProps) => {
<input <input
type="password" type="password"
id="seed-input-password" id="seed-input-password"
data-testid="password-input"
placeholder={i18n('enterPassword')} placeholder={i18n('enterPassword')}
onKeyUp={onEnter} onKeyUp={onEnter}
/> />
@ -77,12 +78,14 @@ const Password = (props: PasswordProps) => {
text={i18n('done')} text={i18n('done')}
buttonType={SessionButtonType.Simple} buttonType={SessionButtonType.Simple}
onClick={confirmPassword} onClick={confirmPassword}
dataTestId="session-confirm-ok-button"
/> />
<SessionButton <SessionButton
text={i18n('cancel')} text={i18n('cancel')}
buttonType={SessionButtonType.Simple} buttonType={SessionButtonType.Simple}
buttonColor={SessionButtonColor.Danger} buttonColor={SessionButtonColor.Danger}
onClick={onClose} onClick={onClose}
dataTestId="session-confirm-cancel-button"
/> />
</div> </div>
</> </>

@ -428,7 +428,7 @@ async function createWindow() {
}, 5000); }, 5000);
} }
if (isDevProd()) { if (isDevProd() && !isTestIntegration()) {
// Open the DevTools. // Open the DevTools.
mainWindow.webContents.openDevTools({ mainWindow.webContents.openDevTools({
mode: 'bottom', mode: 'bottom',

Loading…
Cancel
Save