mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +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:
parent
54292f6c81
commit
890e0ed70f
@ -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',
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user