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

initial deflakery (#16894)

This commit is contained in:
Bowen Sanders 2022-12-12 12:14:23 -08:00 committed by GitHub
parent 048b7e4cb6
commit 720c7e7d16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 5 deletions

View File

@ -71,6 +71,7 @@ describe('Test Snap bip-44', function () {
// deal with permissions popover
await driver.delay(1000);
await driver.clickElement('#key-access-bip44-1-0');
await driver.delay(1000);
await driver.clickElement({
text: 'Confirm',
tag: 'button',

View File

@ -3,7 +3,7 @@ const { withFixtures } = require('../helpers');
const FixtureBuilder = require('../fixture-builder');
const { TEST_SNAPS_WEBSITE_URL } = require('./enums');
describe('Test Snap onOff', function () {
describe('Test Snap Management', function () {
it('tests install disable enable and removal of a snap', async function () {
const ganacheOptions = {
accounts: [

View File

@ -30,7 +30,7 @@ describe('Test Snap manageState', function () {
await driver.press('#password', driver.Key.ENTER);
// navigate to test snaps page, then fill in the snapId
await driver.openNewPage(TEST_SNAPS_WEBSITE_URL);
await driver.driver.get(TEST_SNAPS_WEBSITE_URL);
await driver.delay(1000);
// find and scroll to the connect button and click it
@ -41,7 +41,7 @@ describe('Test Snap manageState', function () {
// switch to metamask extension and click connect
let windowHandles = await driver.waitUntilXWindowHandles(
3,
2,
1000,
10000,
);
@ -59,7 +59,7 @@ describe('Test Snap manageState', function () {
await driver.delay(2000);
// approve install of snap
windowHandles = await driver.waitUntilXWindowHandles(3, 1000, 10000);
windowHandles = await driver.waitUntilXWindowHandles(2, 1000, 10000);
await driver.switchToWindowWithTitle(
'MetaMask Notification',
windowHandles,
@ -70,9 +70,14 @@ describe('Test Snap manageState', function () {
});
// fill and click send inputs on test snap page
windowHandles = await driver.waitUntilXWindowHandles(2, 1000, 10000);
windowHandles = await driver.waitUntilXWindowHandles(1, 1000, 10000);
await driver.switchToWindowWithTitle('Test Snaps', windowHandles);
await driver.delay(1000);
await driver.fill('#dataManageState', '23');
const snapButton2 = await driver.findElement(
'#retrieveManageStateResult',
);
await driver.scrollToElement(snapButton2);
await driver.delay(1000);
await driver.clickElement('#sendManageState');