Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizAsFight committed Oct 31, 2024
1 parent d46c734 commit d6025bc
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { shortAddress } from '../utils';

import { getButtonByText } from './button';
import { getByAriaLabel } from './locator';
import { hasText } from './text';

export class FuelWalletTestHelper {
private context;
Expand Down Expand Up @@ -267,6 +268,19 @@ export class FuelWalletTestHelper {
const addNetworkButton = getByAriaLabel(this.walletPage, 'Add network');
await addNetworkButton.click();

await expect
.poll(
() =>
hasText(this.walletPage, 'Cancel')
.then(() => true)
.catch(() => false),
{ timeout: 3000 }
)
.toBeTruthy();

console.log('asd adding Network providerUrl: ', providerUrl);
console.log('asd adding Network providerUrl: ', chainId.toString());

const urlInput = getByAriaLabel(this.walletPage, 'Network url');
await urlInput.fill(providerUrl);
const chainIdLocator = getByAriaLabel(this.walletPage, 'Chain ID');
Expand Down

0 comments on commit d6025bc

Please sign in to comment.