1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00

Fix auto-lock e2e test (#14685)

Fixes auto lock e2e tests introduced in https://github.com/MetaMask/metamask-extension/pull/14624
This commit is contained in:
PeterYinusa 2022-05-11 02:42:02 +01:00 committed by GitHub
parent 54292f6c81
commit 890e0ed70f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,11 +27,18 @@ describe('Auto-Lock Timer', function () {
await driver.clickElement('.account-menu__icon');
await driver.clickElement({ text: 'Settings', tag: 'div' });
await driver.clickElement({ text: 'Advanced', tag: 'div' });
const sixSecsInMins = '.1';
await driver.fill(
const sixSecsInMins = '0.1';
const autoLockTimerInput = await driver.findElement(
'[data-testid="advanced-setting-auto-lock"] input',
sixSecsInMins,
);
await driver.scrollToElement(autoLockTimerInput);
await autoLockTimerInput.fill(10081);
await driver.waitForSelector({
css: '#autoTimeout-helper-text',
text: 'Lock time is too great',
});
await autoLockTimerInput.fill(sixSecsInMins);
await driver.assertElementNotPresent('#autoTimeout-helper-text');
await driver.clickElement(
'[data-testid="advanced-setting-auto-lock"] button',
);