Skip to content

Commit

Permalink
Enabled eth_sign through preferences fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
409H committed Feb 3, 2023
1 parent 26c7253 commit c51da5e
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions test/e2e/tests/eth-sign.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ describe('Eth sign', function () {
{
dapp: true,
fixtures: new FixtureBuilder()
.withPreferencesController({
disabledRpcMethodPreferences: {
eth_sign: true
}
})
.withPermissionControllerConnectedToTestDapp()
.build(),
ganacheOptions,
Expand All @@ -59,15 +64,6 @@ describe('Eth sign', function () {
await driver.fill('#password', 'correct horse battery staple');
await driver.press('#password', driver.Key.ENTER);

// Enable eth_sign
const currentUrl = await driver.getCurrentUrl();
await driver.openNewPage(
currentUrl.replace('home.html#unlock', 'home.html#settings/advanced'),
);
await driver.clickElement(
'[data-testid="advanced-setting-toggle-ethsign"] > div > div > .toggle-button',
);

await driver.openNewPage('http://127.0.0.1:8080/');
await driver.clickElement('#ethSign');

Expand Down

0 comments on commit c51da5e

Please sign in to comment.