1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

test: increase timeout for failing tests (#18189)

This commit is contained in:
legobeat 2023-04-14 16:59:51 +09:00 committed by GitHub
parent a3af0b53e3
commit 17147b3817
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 8 deletions

View File

@ -392,7 +392,9 @@ describe('Custom network', function () {
text: 'Delete', text: 'Delete',
}); });
await driver.findElement('.modal-container__footer'); await driver.waitForSelector('.modal-container__footer', {
timeout: 15000,
});
// should be deleted from the modal shown again to complete deletion custom network // should be deleted from the modal shown again to complete deletion custom network
await driver.clickElement({ await driver.clickElement({
tag: 'button', tag: 'button',

View File

@ -292,10 +292,13 @@ describe('Create token, approve token and approve token without gas', function (
await gasLimitInput.fill('60001'); await gasLimitInput.fill('60001');
await driver.clickElement({ text: 'Save', tag: 'button' }); await driver.clickElement({ text: 'Save', tag: 'button' });
await driver.waitForSelector({ await driver.waitForSelector(
css: '.box--flex-direction-row > h6', {
text: '0.0006 ETH', css: '.box--flex-direction-row > h6',
}); text: '0.0006 ETH',
},
{ timeout: 15000 },
);
// editing spending cap // editing spending cap
await driver.clickElement({ await driver.clickElement({

View File

@ -354,9 +354,12 @@ describe('Send ETH from dapp using advanced gas controls', function () {
'.transaction-list-item__primary-currency', '.transaction-list-item__primary-currency',
); );
await txValue.click(); await txValue.click();
const baseFeeValue = await driver.waitForSelector({ const baseFeeValue = await driver.waitForSelector(
text: '0.000000025', {
}); text: '0.000000025',
},
{ timeout: 15000 },
);
assert.equal(await baseFeeValue.getText(), '0.000000025'); assert.equal(await baseFeeValue.getText(), '0.000000025');
}, },
); );