Skip to content

Commit

Permalink
fix: path wasn't working
Browse files Browse the repository at this point in the history
  • Loading branch information
alicechaitea committed Jan 31, 2024
1 parent 45dfc0c commit a3a7b2f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,4 @@ local/*
/playwright-report/*
/blob-report/*
/playwright/.cache/*
/wallet-automation/typhon/usrdatadir/*
wallet-automation/typhon/usrdatadir/*
2 changes: 1 addition & 1 deletion wallet-automation/typhon/credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import fs from 'fs';
import path from 'path';

// Construct the path to the .txt file
const txtPath = '../../catalyst-core/wallet-automation/typhon/typhon-wallet-storage.txt';
const txtPath = '../../wallet-automation/typhon/typhon-wallet-storage.txt';

// Read the contents of the .txt file
const txtContent = fs.readFileSync(path.resolve(txtPath), 'utf8');
Expand Down
2 changes: 1 addition & 1 deletion wallet-automation/typhon/seed-phrase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import fs from 'fs';
import path from 'path';

// Construct the path to the .txt file
const txtPath = '../../catalyst-core/wallet-automation/typhon/typhon-wallet-storage.txt';
const txtPath = '../../wallet-automation/typhon/typhon-wallet-storage.txt';

// Read the contents of the .txt file
const txtContent = fs.readFileSync(path.resolve(txtPath), 'utf8');
Expand Down
4 changes: 2 additions & 2 deletions wallet-automation/typhon/typhon-wallet-logout.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { getWalletCredentials } from './credentials';
import { getSeedPhrase } from './seed-phrase';

test('Logout', async ({ }) => {
const extensionPath: string = '/Users/alicechaiyakul/typhon-wallet-registration/catalyst-core/wallet-automation/typhon/extensions';
const extensionPath: string = '../../wallet-automation/typhon/extensions';
// const extensionId: string = 'kfdniefadaanbjodldohaedphafoffoh'; // Replace with your extension's ID
// const extensionPage: string = 'tab.html'; // Replace with the specific page
const userDataDir = '/Users/alicechaiyakul/typhon-wallet-registration/catalyst-core/wallet-automation/typhon/seed-phrase.ts'; // Path to the user data directory
const userDataDir = '../../wallet-automation/typhon/usrdatadir'; // Path to the user data directory

// Launch Chromium with the extension
const browser = await chromium.launchPersistentContext(userDataDir, {
Expand Down
4 changes: 2 additions & 2 deletions wallet-automation/typhon/typhon-wallet-registration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { getWalletCredentials } from './credentials';
import { getSeedPhrase } from './seed-phrase';

test('import wallet', async ({ }) => {
const extensionPath: string = '/Users/alicechaiyakul/typhon-wallet-registration/catalyst-core/wallet-automation/typhon/extensions';
const extensionPath: string = '../../wallet-automation/typhon/extensions';
// const extensionId: string = 'kfdniefadaanbjodldohaedphafoffoh'; // Replace with your extension's ID
// const extensionPage: string = 'tab.html'; // Replace with the specific page
const userDataDir = '/Users/alicechaiyakul/typhon-wallet-registration/catalyst-core/wallet-automation/typhon/seed-phrase.ts'; // Path to the user data directory
const userDataDir = '../../wallet-automation/typhon/usrdatadir'; // Path to the user data directory

// Launch Chromium with the extension
const browser = await chromium.launchPersistentContext(userDataDir, {
Expand Down

0 comments on commit a3a7b2f

Please sign in to comment.