Skip to content

Commit

Permalink
chore(appium): restore friends tests
Browse files Browse the repository at this point in the history
  • Loading branch information
luisecm committed Jan 3, 2024
1 parent f258756 commit 0c266f7
Show file tree
Hide file tree
Showing 46 changed files with 279 additions and 8 deletions.
247 changes: 247 additions & 0 deletions tests/fixtures/users/FriendsTestUser/.user/state.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,247 @@
{
"route": {
"active": ""
},
"chats": {
"all": {},
"active": null,
"in_sidebar": [],
"favorites": []
},
"friends": {},
"scope_ids": {},
"settings": {
"language": "English (USA)",
"update_available": null,
"update_dismissed": null,
"input_device": null,
"output_device": null,
"font_scale": 1.0,
"user_volumes": {},
"pause_global_keybinds": false,
"is_recording_new_keybind": false,
"keybinds": [
[
"IncreaseFontSize",
{
"keys": [
187
],
"modifiers": [
{
"shift_key": false,
"control_key": true,
"alt_key": false,
"super_key": false
},
{
"shift_key": true,
"control_key": false,
"alt_key": false,
"super_key": false
}
],
"system_shortcut": false
}
],
[
"DecreaseFontSize",
{
"keys": [
109
],
"modifiers": [
{
"shift_key": false,
"control_key": true,
"alt_key": false,
"super_key": false
},
{
"shift_key": true,
"control_key": false,
"alt_key": false,
"super_key": false
}
],
"system_shortcut": false
}
],
[
"ToggleMute",
{
"keys": [
77
],
"modifiers": [
{
"shift_key": false,
"control_key": false,
"alt_key": false,
"super_key": true
},
{
"shift_key": true,
"control_key": false,
"alt_key": false,
"super_key": false
}
],
"system_shortcut": true
}
],
[
"ToggleDeafen",
{
"keys": [
68
],
"modifiers": [
{
"shift_key": false,
"control_key": false,
"alt_key": false,
"super_key": true
},
{
"shift_key": true,
"control_key": false,
"alt_key": false,
"super_key": false
}
],
"system_shortcut": true
}
],
[
"OpenDevTools",
{
"keys": [
73
],
"modifiers": [
{
"shift_key": false,
"control_key": true,
"alt_key": false,
"super_key": false
},
{
"shift_key": true,
"control_key": false,
"alt_key": false,
"super_key": false
}
],
"system_shortcut": false
}
],
[
"ToggleDevmode",
{
"keys": [
68
],
"modifiers": [
{
"shift_key": false,
"control_key": true,
"alt_key": false,
"super_key": false
},
{
"shift_key": true,
"control_key": false,
"alt_key": false,
"super_key": false
}
],
"system_shortcut": false
}
]
]
},
"ui": {
"notifications": {
"friends": 4,
"messages": 0,
"settings": 0
},
"accent_color": null,
"theme": null,
"font": null,
"enable_overlay": false,
"active_welcome": false,
"sidebar_hidden": false,
"window_maximized": false,
"window_size": [
950,
600
],
"window_position": [
625,
408
],
"metadata": {
"focused": true,
"maximized": false,
"minimized": false,
"full_screen": false,
"minimal_view": false
},
"emojis": {
"emoji_tracker": {
"❤️": 0,
"😂": 0,
"👍": 0,
"🖖": 0,
"👎": 0
}
},
"emoji_destination": null,
"emoji_picker_visible": false,
"transform_markdown_text": true,
"transform_ascii_emojis": true,
"extensions": {
"enabled": {}
},
"show_settings_welcome": true,
"show_dev_settings": false,
"cached_username": "ChatUserA"
},
"configuration": {
"general": {
"dyslexia_support": false,
"theme": "",
"font": null,
"show_splash": false,
"enable_overlay": false
},
"privacy": {
"satellite_sync_nodes": false,
"safer_file_scanning": false
},
"audiovideo": {
"echo_cancellation": true,
"call_timer": false,
"interface_sounds": false,
"message_sounds": true,
"media_sounds": true
},
"extensions": {
"enable": false,
"enable_automatically": false
},
"developer": {
"developer_mode": false,
"experimental_features": false
},
"notifications": {
"enabled": true,
"show_app_icon": false,
"friends_notifications": true,
"messages_notifications": true,
"settings_notifications": false
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bafyreia6fugejce4uhhy2kim6v7go2acnh4mvf2qwgeqhdt2pn62xwp2iu
1 change: 1 addition & 0 deletions tests/fixtures/users/FriendsTestUser/.user/warp/.id
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bafyreiawoiqb75pg6u3c6qgf3cafarpj7cbbv3rukmqpj33lv5vwovtefa
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
X�0����A��i��`5$vc�)c,f_V
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�x8did:key:z6MkfTEn5PBr8oDKuxVL6TSkZyTpQeLnnnCps3fJytuXSZwRx8did:key:z6Mkto6MQeSzAfpUZzihzRsk8r9pdzAFurALsQJUdEas2PDzx8did:key:z6MkeucvmiCtf15FBadMdXGVdcyyp6Nv9yLimNMAPXZhdaFDx8did:key:z6MksXmZDTAVxCATQye8jCkarY7YBS1gZk5wyCq8M9ZVoFTN
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�cdidx8did:key:z6MkmEHs1YbbV51bF8Y1y5zXCUVpNjhPkYw1UjUb5sp5nKiLgcreatedx2023-12-18T14:59:48.982712400Zgversionbv0hmetadata�fstatusfonlinehplatformgdesktophmodifiedx2024-01-03T17:41:58.457436700Zhshort_id�5sp5nKiLhusernamelwindowJefferisignaturexX35ut45LXAsWqqU3SA8FDKXPofKyhEEzfMJbTyeG2VtSqs2VY4493HWa7xbuGuXTyFMrH69WPJgzBqaiRJj2sLznR
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�cdidx8did:key:z6MkfQ4h5sgwDpWxTUE4QSeQxWAHgmAzG86QqAhd1xgC7UHtgcreatedx2024-01-03T17:59:43.045868Zgversionbv0hmetadata�hplatformgdesktophmodifiedx2024-01-03T18:00:06.419917Zhshort_id�1xgC7UHthusernameiChatUserGisignaturexX3dsFwSLEeYuSgGUpaerwdnNT5XQ34zMDRnCWwUYzSH6HiESWq9hDrYE8w5nnKd8QHYaGR1QrhJ8EQ3idbw5oMKLo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�cdidx8did:key:z6Mkto6MQeSzAfpUZzihzRsk8r9pdzAFurALsQJUdEas2PDzgcreatedx2024-01-03T17:47:31.807075Zgversionbv0hmetadata�hplatformgdesktophmodifiedx2024-01-03T17:47:44.372207Zhshort_id�dEas2PDzhusernameiChatUserCisignaturexX31eVFCoEKweZGPkMrBsCvsmrsyYqCUHdmPSzwPqyS1bcEsssiE6uvHtJzVTCFVmxFW2nuRMUk4ZNeEHubeKNySE9
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�cdidx8did:key:z6MksXmZDTAVxCATQye8jCkarY7YBS1gZk5wyCq8M9ZVoFTNgcreatedx2024-01-03T17:57:04.592112Zgversionbv0hmetadata�hplatformgdesktophmodifiedx2024-01-03T17:57:15.635810Zhshort_id�M9ZVoFTNhusernameiChatUserEisignaturexX4EvFC7HZ8nCNAmhfRjdMhGS8jdhsqbRx28WQPty3Pjttwmb6X4yhFdRqE9amBQfxBbT4Fr8U7v7mfXuPVqDdUqQa
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�cdidx8did:key:z6MkkpMoUqBNzLd1BJGpwT6KSd4s8kXStC9eEMuSJtacm517gcreatedx2024-01-03T17:41:34.937478Zgversionbv0hmetadata�hmodifiedx2024-01-03T17:41:34.937546Zhshort_id�Jtacm517husernameiChatUserAisignaturexX53rSEqSGaqen4oEEA89MPN6cG58T1pA9nMFfHRFjKBzzvv5ZW8EKPSXEBPKihEeGRmovharWhHUNBrpmzr1WtB1H
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�cdidx8did:key:z6MksEvuwM8Wqc56RN1TohxntceaNL4N8E1G9uw2SjAfzRNHgcreatedx2024-01-03T18:00:26.559319Zgversionbv0hmetadata�hplatformgdesktophmodifiedx2024-01-03T18:00:39.971824Zhshort_id�SjAfzRNHhusernameiChatUserHisignaturexX2UXGVuZ2GHqDqzzP6Kxvaq2C4Nx7P46HwyvriHpDihua8BYz6P3Gsg6KjqpAxmqrxAfbKF5RSvxWkWwn3JJoHJQq
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�cdidx8did:key:z6MkpnM6eTAyWdPefy9iW9sW4LaudhxyNw1Azv3ARbFQ18xhgcreatedx2024-01-03T18:00:53.994364Zgversionbv0hmetadata�hplatformgdesktophmodifiedx2024-01-03T18:01:06.750445Zhshort_id�RbFQ18xhhusernameiChatUserIisignaturexX2Q1jHoghnK36m5D36xeYcfWjQ9VmEkuYFggCs8QkvH2pLe9KGVptyRxKSPuJVYy6LAPCpVqJD7HhHZtyJegsadoW
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�cdidx8did:key:z6MkpDWvDttMZmPmbYVoPicrS8q7TQ9A6UVzixzBdkoB9Ye1gcreatedx2024-01-03T17:59:00.705392Zgversionbv0hmetadata�hplatformgdesktophmodifiedx2024-01-03T17:59:24.429989Zhshort_id�dkoB9Ye1husernameiChatUserFisignaturexX3E6Fff99bVjB132axcCKXeqR7gSAfbZpXZGsoBoGGciZUWCDveNCRcJceBDyAupGRYNPsd72ZaXsYDSVhBy894La
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�cdidx8did:key:z6MkkzVbhbcZCMQWHGjaCSNohyLaV2xigEP2j2be8uFsyzWSgcreatedx2024-01-03T18:03:34.451615Zgversionbv0hmetadata�hplatformgdesktophmodifiedx2024-01-03T18:03:50.133433Zhshort_id�8uFsyzWShusernameiChatUserKisignaturexX5sPvT5mAnx4vKuGzi1noSjW5BVDsNaGFGZomU2uczMJX5JomRiWLmcmXMFPSjjdZf7CsRPhabNBKyb5Ug1HJYS1c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�cdidx8did:key:z6MkeucvmiCtf15FBadMdXGVdcyyp6Nv9yLimNMAPXZhdaFDgcreatedx2024-01-03T17:49:01.388739Zgversionbv0hmetadata�hplatformgdesktophmodifiedx2024-01-03T17:49:14.724149Zhshort_id�PXZhdaFDhusernameiChatUserDisignaturexX5FawfxuWc5iXyEeHJTUQiupfBWCm3jAhpBckCB5dkYLt62dgdmVrByaHUGQeHmX8LhsQP3PSuMekPQZsBnh3YTKK
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��cdidx8did:key:z6MkpDWvDttMZmPmbYVoPicrS8q7TQ9A6UVzixzBdkoB9Ye1ddatex2024-01-03T17:59:12.012578Zidirectionbin�cdidx8did:key:z6MkfQ4h5sgwDpWxTUE4QSeQxWAHgmAzG86QqAhd1xgC7UHtddatex2024-01-03T17:59:58.543078Zidirectionbin�cdidx8did:key:z6MksEvuwM8Wqc56RN1TohxntceaNL4N8E1G9uw2SjAfzRNHddatex2024-01-03T18:00:33.821453Zidirectionbin�cdidx8did:key:z6MkpnM6eTAyWdPefy9iW9sW4LaudhxyNw1Azv3ARbFQ18xhddatex2024-01-03T18:00:59.456121Zidirectionbin�cdidx8did:key:z6Mkvfe4S45gfSkcu2CRwZkgQVBqhRu5D9VELQxMKa8x5yPTddatex2024-01-03T18:01:48.618245Zidirectioncout�cdidx8did:key:z6MkkzVbhbcZCMQWHGjaCSNohyLaV2xigEP2j2be8uFsyzWSddatex2024-01-03T18:03:44.952622Zidirectioncout
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�cdidx8did:key:z6MkfTEn5PBr8oDKuxVL6TSkZyTpQeLnnnCps3fJytuXSZwRgcreatedx2024-01-03T17:46:47.722071Zgversionbv0hmetadata�hplatformgdesktophmodifiedx2024-01-03T17:47:03.318450Zhshort_id�ytuXSZwRhusernameiChatUserBisignaturexWbBWzMRCg1HRD5U3FxXqZovZemNzE85ZGSKjGtDoPx457Ewm2o7owohUJP4V4jA7HAnbTgz4yaWNk1hxL5QsfmgE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�cdidx8did:key:z6Mkvfe4S45gfSkcu2CRwZkgQVBqhRu5D9VELQxMKa8x5yPTgcreatedx2024-01-03T18:01:31.423335Zgversionbv0hmetadata�hplatformgdesktophmodifiedx2024-01-03T18:02:37.381981Zhshort_id�Ka8x5yPThusernameiChatUserJisignaturexX5iwC4fVatrpXwHGX7CZuUfQh6haGTYDkRMcekadvLgvjTwJcXGnPahAiE8FnM4MEZP4sbc3Xuj3E7wrSS82aKQcP
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
["bafyreidkriynppmqqkb35ni3r66tanlrdskq26tfaj4clpj2ajxominhhq","bafyreid7udnt2wvyma6uk2hdgxafp7zi3eusdaozeuisa3zoaygw6wu2em","bafyreihskc4bkdlcibequ73v3n542vgdj46mlgrzux3zy6jvoaoj7utwzm"]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
["QmYmSDy7ZYLRjqfthofZzzH18PumtrkmHtokVZe93TSL8B"]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"keypair":[237,240,71,131,108,43,19,42,69,246,28,88,169,215,104,106,170,27,50,29,219,6,37,107,236,152,195,205,48,151,220,101,19,23,28,93,127,123,29,1,101,124,13,32,104,159,190,159,201,42,137,54,207,105,47,199,37,230,149,229,35,97,100,237,0,131,96,44,207,220,146,22,187,54,243,147,148,188,53,117,196,171,251,197,150,142,27,75,220,199,147,21,161,91,88,143,92,225,148,180,243,65,169,165,89,131,94,91,176,146,99,13,33,180,151,185]}
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"keypair":[237,240,71,131,108,43,19,42,69,246,28,88,169,215,104,106,170,27,50,29,219,6,37,107,236,152,195,205,48,151,220,101,19,23,28,93,127,123,29,1,101,124,13,32,104,159,190,159,201,42,137,54,207,105,47,199,37,230,149,229,35,97,100,237,0,131,96,44,207,220,146,22,187,54,243,147,148,188,53,117,196,171,251,197,150,142,27,75,220,199,147,21,161,91,88,143,92,225,148,180,243,65,169,165,89,131,94,91,176,146,99,13,33,180,151,185]}
4 changes: 3 additions & 1 deletion tests/helpers/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,11 @@ export async function launchApplication(
} else if (currentOS === MACOS_DRIVER) {
await driver.executeScript("macos: launchApp", [
{
bundleId: bundle,
bundleId: MACOS_BUNDLE_ID,
arguments: ["--discovery", "disable", "--path", homedir() + "/.uplink"],
},
]);
await browser.pause(5000);
}
}

Expand Down
8 changes: 4 additions & 4 deletions tests/helpers/constants.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export const CHAT_USER_B_ID =
"did:key:z6Mksg6Q6uLs1s9LTd1EbUPh7idHDBqJ6dNss1BXcdd8BzCm";
"did:key:z6MkfTEn5PBr8oDKuxVL6TSkZyTpQeLnnnCps3fJytuXSZwR";
export const CHAT_USER_C_ID =
"did:key:z6MkrJ1upvw97WqetNm8nJ7xAPeTqUKZSunnRDzqSRQ6Fuh8";
export const CHAT_USER_L_ID =
"did:key:z6Mkf4d6X4WwMoUw6hSf25aMuwm8CiL1mGxsfL96TTz4Pd6y";
"did:key:z6Mkto6MQeSzAfpUZzihzRsk8r9pdzAFurALsQJUdEas2PDz";
export const CHAT_USER_J_ID =
"did:key:z6Mkvfe4S45gfSkcu2CRwZkgQVBqhRu5D9VELQxMKa8x5yPT";
export const MACOS_BUNDLE_ID = "im.satellite.uplink";
export const MACOS_USER_A_BUNDLE_ID = "im.satellite.uplinkChatUserA";
export const MACOS_USER_B_BUNDLE_ID = "im.satellite.uplinkChatUserB";
Expand Down
4 changes: 2 additions & 2 deletions tests/specs/04-friends.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import InputBar from "@screenobjects/chats/InputBar";
import {
CHAT_USER_B_ID,
CHAT_USER_C_ID,
CHAT_USER_L_ID,
CHAT_USER_J_ID,
} from "@helpers/constants";
import UplinkMainScreen from "@screenobjects/UplinkMainScreen";
const chatsInput = new InputBar();
Expand Down Expand Up @@ -164,7 +164,7 @@ export default async function friendsTests() {

it("Add Friend Input - Attempt to send friend request to a user with outgoing pending request", async () => {
// Attempt to send a friend request to ChatUserL, who already received a not accepted yet friend request before
await friendsScreen.enterFriendDidKey(CHAT_USER_L_ID);
await friendsScreen.enterFriendDidKey(CHAT_USER_J_ID);

// Click on Add Someone Button
await friendsScreen.clickOnAddSomeoneButton();
Expand Down
2 changes: 1 addition & 1 deletion tests/suites/MainTests/01-UplinkTests.suite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ describe("MacOS Tests", function () {
describe("Settings About Tests", settingsAboutTests.bind(this));
describe("Settings Licenses Tests", settingsLicensesTests.bind(this));
describe("Settings Developer Tests", settingsDeveloperTests.bind(this));
xdescribe("Friends Screen Tests", friendsTests.bind(this));
describe("Friends Screen Tests", friendsTests.bind(this));
});

0 comments on commit 0c266f7

Please sign in to comment.