Skip to content

Commit a498159

Browse files
committed
fix: update directories
1 parent 0171a7a commit a498159

27 files changed

+347
-136
lines changed
Loading
Loading
Loading
Loading
Loading
Loading
Loading

tests/wallet-automation/typhon/extensions/background.bundle.js

+13-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/wallet-automation/typhon/extensions/css/notification.8c08ccf4.css

-5
This file was deleted.

tests/wallet-automation/typhon/extensions/js/advance.157cdae1.js

-1
This file was deleted.

tests/wallet-automation/typhon/extensions/js/contacts.93ef89e4.js

-1
This file was deleted.

tests/wallet-automation/typhon/extensions/js/contentScript.bundle.js

+12-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/wallet-automation/typhon/extensions/js/locale-de-json.b4fd180e.js

-1
This file was deleted.

tests/wallet-automation/typhon/extensions/js/locale-es-json.bc3a3477.js

-1
This file was deleted.

tests/wallet-automation/typhon/extensions/js/locale-jp-json.8e3b0f05.js

-1
This file was deleted.

tests/wallet-automation/typhon/extensions/js/locale-ru-json.016f368a.js

-1
This file was deleted.

tests/wallet-automation/typhon/extensions/js/staking.3fdba7dd.js

-1
This file was deleted.

tests/wallet-automation/typhon/extensions/js/tokens.557ca394.js

-1
This file was deleted.

tests/wallet-automation/typhon/extensions/js/voting.3176c7d0.js

-1
This file was deleted.

tests/wallet-automation/typhon/extensions/js/warp.1811c3c6.js

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,59 @@
11
{
2-
"action": {
3-
"default_icon": {
4-
"128": "assets/xicons/128.png",
5-
"16": "assets/xicons/16.png",
6-
"19": "assets/xicons/19.png",
7-
"32": "assets/xicons/32.png",
8-
"38": "assets/xicons/38.png",
9-
"512": "assets/xicons/512.png",
10-
"64": "assets/xicons/64.png"
11-
},
12-
"default_popup": "popup.html",
13-
"default_title": "Typhon Wallet"
14-
},
15-
"author": "https://typhonwallet.io",
16-
"background": {
17-
"service_worker": "background.bundle.js"
18-
},
19-
"content_scripts": [ {
20-
"exclude_matches": [ "https://web.whatsapp.com/*", "https://www.youtube.com/*" ],
21-
"js": [ "js/contentScript.bundle.js" ],
22-
"matches": [ "http://*/*", "https://*/*" ],
23-
"run_at": "document_start"
24-
}, {
25-
"js": [ "vendor/trezor-content-script.js" ],
26-
"matches": [ "*://connect.trezor.io/9/popup.html" ]
27-
} ],
28-
"content_security_policy": {
29-
"extension_pages": "script-src 'self'; object-src 'self'"
30-
},
31-
"description": "Blazing fast, feature-rich, secure, beautiful extension Typhon Wallet for Cardano.",
32-
"icons": {
33-
"128": "assets/xicons/128.png",
2+
"update_url": "https://clients2.google.com/service/update2/crx",
3+
4+
"author": "https://typhonwallet.io",
5+
"manifest_version": 3,
6+
"name": "Typhon Wallet",
7+
"description": "Blazing fast, feature-rich, secure, beautiful extension Typhon Wallet for Cardano.",
8+
"version": "3.1.2",
9+
"permissions": ["storage", "unlimitedStorage", "tabs"],
10+
"icons": {
11+
"16": "assets/xicons/16.png",
12+
"19": "assets/xicons/19.png",
13+
"32": "assets/xicons/32.png",
14+
"38": "assets/xicons/38.png",
15+
"64": "assets/xicons/64.png",
16+
"128": "assets/xicons/128.png",
17+
"512": "assets/xicons/512.png"
18+
},
19+
"action": {
20+
"default_popup": "popup.html",
21+
"default_title": "Typhon Wallet",
22+
"default_icon": {
3423
"16": "assets/xicons/16.png",
3524
"19": "assets/xicons/19.png",
3625
"32": "assets/xicons/32.png",
3726
"38": "assets/xicons/38.png",
38-
"512": "assets/xicons/512.png",
39-
"64": "assets/xicons/64.png"
40-
},
41-
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkbyp9244z1ielqjNejO19XTuocKASFcLmQdrSr33AiUIExMZ01yFxOPd75Qde58pFzjYrOX7TmsTj9oRyqd5SM/nIUWS4+PGzDJsA24ZAd64VVJ/aLZ79jsOskozUMuyUVliizfimYZSmKpMYvbW/wMp7Dqo+zyEPqa4xVCaGrYPM5azv4AuRrgj/Dnrg6GyaR8iHfgbNrWr8Hd2JJzz8VCIWY4aEIDAeOH4VgHJQpV3VxJyXkGR+v5ke2Ewdgto3/eYv8CuBzl4SZ1uXksn4tsJuQWsODXcM/2udIw8SWqyPNO64/7dDqLRfBvMDsS//j6sTSlCaq/3jcorjILVrwIDAQAB",
42-
"manifest_version": 3,
43-
"name": "Typhon Wallet",
44-
"permissions": [ "storage", "unlimitedStorage", "tabs" ],
45-
"update_url": "https://clients2.google.com/service/update2/crx",
46-
"version": "3.0.23",
47-
"web_accessible_resources": [ {
48-
"matches": [ "http://*/*", "https://*/*" ],
49-
"resources": [ "js/cardano.bundle.js", "assets/typhon.png" ]
50-
} ]
27+
"64": "assets/xicons/64.png",
28+
"128": "assets/xicons/128.png",
29+
"512": "assets/xicons/512.png"
30+
}
31+
},
32+
"background": {
33+
"service_worker": "background.bundle.js"
34+
},
35+
"content_scripts": [
36+
{
37+
"matches": ["http://*/*", "https://*/*"],
38+
"exclude_matches": [
39+
"https://web.whatsapp.com/*",
40+
"https://www.youtube.com/*"
41+
],
42+
"js": ["js/contentScript.bundle.js"],
43+
"run_at": "document_start"
44+
},
45+
{
46+
"matches": ["*://connect.trezor.io/9/popup.html"],
47+
"js": ["vendor/trezor-content-script.js"]
48+
}
49+
],
50+
"web_accessible_resources": [
51+
{
52+
"resources": ["js/cardano.bundle.js", "assets/typhon.png"],
53+
"matches": ["http://*/*", "https://*/*"]
54+
}
55+
],
56+
"content_security_policy": {
57+
"extension_pages": "script-src 'self'; object-src 'self'"
58+
}
5159
}

tests/wallet-automation/typhon/extensions/notification.bundle.js

+15-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/wallet-automation/typhon/extensions/notification.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@
2727
* {
2828
-ms-overflow-style: none !important; /* IE and Edge */
2929
scrollbar-width: none !important; /* Firefox */
30-
}</style><script defer="defer" src="/notification.bundle.js"></script><link href="/css/notification.8c08ccf4.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but typhon doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
30+
}</style><script defer="defer" src="/notification.bundle.js"></script><link href="/css/notification.fa740df0.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but typhon doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>

tests/wallet-automation/typhon/extensions/popup.bundle.js

+15-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/wallet-automation/typhon/extensions/tab.bundle.js

+20-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import { test, chromium, Browser, Page } from '@playwright/test';
2+
import { getWalletCredentials } from './credentials';
3+
import { getSeedPhrase } from './seed-phrase';
4+
5+
test('Logout', async ({ }) => {
6+
const path = require('path');
7+
const extensionPath: string = path.resolve(__dirname, 'extensions');
8+
// const extensionId: string = 'kfdniefadaanbjodldohaedphafoffoh'; // Replace with your extension's ID
9+
// const extensionPage: string = 'tab.html'; // Replace with the specific page
10+
const userDataDir = path.resolve(__dirname, 'usrdatadir');
11+
12+
const browser = await chromium.launchPersistentContext(userDataDir, {
13+
headless: false, // extensions only work in headful mode =)
14+
args: [
15+
`--disable-extensions-except=${extensionPath}`,
16+
`--load-extension=${extensionPath}`,
17+
],
18+
});
19+
20+
const page = await browser.newPage();
21+
await page.waitForTimeout(1000); // Adjust the timeout as needed
22+
23+
// Get all pages (tabs) in the contextg
24+
const pages = browser.pages();
25+
26+
// The new tab is typically the last one in the list
27+
const newTab = pages[pages.length - 1];
28+
await newTab.bringToFront(); // Brings the new tab to the foreground
29+
30+
const logOut = '//*[@id="app"]/div/div/div[3]/div/div/div[1]/div/div/div[2]/div[11]/div[2]';
31+
await newTab.waitForSelector(logOut, { state: 'visible' });
32+
await newTab.click(logOut);
33+
34+
const chooseAccount = '//*[@id="app"]/div/div/div[3]/div/div[2]/div/div/div[2]/div';
35+
await newTab.waitForSelector(chooseAccount, { state: 'visible' });
36+
await newTab.click(chooseAccount);
37+
38+
const removeAccount = '//*[@id="app"]/div/div/div[3]/div/div[2]/div/div/div[2]/div[4]/button';
39+
await newTab.waitForSelector(removeAccount, { state: 'visible' });
40+
await newTab.click(removeAccount);
41+
42+
const confirmRemove = 'button.btn.bg-primary';
43+
await newTab.waitForSelector(confirmRemove, {state: 'visible'});
44+
await newTab.click(confirmRemove)
45+
46+
const addNew = '//*[@id="app"]/div/div/div[3]/div/div[2]/div/div/div[4]';
47+
await newTab.waitForSelector(addNew, { state: 'visible' });
48+
await newTab.click(addNew);
49+
50+
});

0 commit comments

Comments
 (0)