Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"license": "MIT",
"devDependencies": {
"@playwright/test": "^1.51",
"@session-foundation/qa-seeder": "^0.1.23",
"@types/fs-extra": "^11.0.1",
"@types/lodash": "^4.14.196",
"@types/uuid": "^9.0.8",
Expand Down
4 changes: 2 additions & 2 deletions tests/automation/call_checks.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { englishStrippedStr } from '../localization/englishStrippedStr';
import { Global, HomeScreen } from './locators';
import { test_Alice_1W_Bob_1W } from './setup/sessionTest';
import { test_Alice1_Bob1 } from './setup/sessionTest';
import { createContact } from './utilities/create_contact';
import {
clickOn,
Expand All @@ -9,7 +9,7 @@ import {
} from './utilities/utils';
import { makeVoiceCall } from './utilities/voice_call';

test_Alice_1W_Bob_1W(
test_Alice1_Bob1(
'Voice calls',
async ({ alice, aliceWindow1, bob, bobWindow1 }) => {
await createContact(aliceWindow1, bobWindow1, alice, bob);
Expand Down
6 changes: 3 additions & 3 deletions tests/automation/community_tests.spec.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { testCommunityName } from './constants/community';
import { Conversation, HomeScreen } from './locators';
import { test_Alice_1W_Bob_1W, test_Alice_2W } from './setup/sessionTest';
import { test_Alice1_Bob1, test_Alice2 } from './setup/sessionTest';
import { joinCommunity } from './utilities/join_community';
import { sendMessage } from './utilities/message';
import { replyTo } from './utilities/reply_message';
import { sendMedia } from './utilities/send_media';
import { clickOn, clickOnWithText } from './utilities/utils';

test_Alice_2W(
test_Alice2(
'Join community and sync',
async ({ aliceWindow1, aliceWindow2 }) => {
await joinCommunity(aliceWindow1);
Expand All @@ -22,7 +22,7 @@ test_Alice_2W(
},
);

test_Alice_1W_Bob_1W(
test_Alice1_Bob1(
'Send image to community',
async ({ alice, bob, aliceWindow1, bobWindow1 }) => {
const mediaPath = 'sample_files/test-image.png';
Expand Down
8 changes: 4 additions & 4 deletions tests/automation/cta_donations.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Page } from '@playwright/test';

import { englishStrippedStr } from '../localization/englishStrippedStr';
import { CTA, Global } from './locators';
import { test_Alice_1W } from './setup/sessionTest';
import { test_Alice1 } from './setup/sessionTest';
import { mockDBCreationTime } from './utilities/time_travel';
import {
checkCTAStrings,
Expand All @@ -24,7 +24,7 @@ async function verifyDonateCTAShows(window: Page) {
);
}

test_Alice_1W(
test_Alice1(
'Donate CTA, DB age >= 7 days, max 4 times',
async ({ aliceWindow1 }) => {
const MAX_DONATE_CTA_SHOWS = 4;
Expand Down Expand Up @@ -52,7 +52,7 @@ const urlModalButtons = [
];

urlModalButtons.forEach(({ button, name }) => {
test_Alice_1W(
test_Alice1(
`Donate CTA, never shows after clicking ${name} in URL modal`,
async ({ aliceWindow1 }) => {
const url = 'https://getsession.org/donate';
Expand Down Expand Up @@ -85,7 +85,7 @@ urlModalButtons.forEach(({ button, name }) => {
);
});

test_Alice_1W(
test_Alice1(
'Donate CTA, DB age < 7 days',
async ({ aliceWindow1 }) => {
await verifyNoCTAShows(aliceWindow1);
Expand Down
12 changes: 6 additions & 6 deletions tests/automation/disappearing_message_checks.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
Global,
HomeScreen,
} from './locators';
import { test_Alice_1W_Bob_1W } from './setup/sessionTest';
import { test_Alice1_Bob1 } from './setup/sessionTest';
import { createContact } from './utilities/create_contact';
import { joinCommunity } from './utilities/join_community';
import { waitForSentTick } from './utilities/message';
Expand Down Expand Up @@ -44,7 +44,7 @@ const { timeOption, disappearingMessagesType, disappearAction } =

mediaArray.forEach(
({ mediaType, path, attachmentType, shouldCheckMediaPreview }) => {
test_Alice_1W_Bob_1W(
test_Alice1_Bob1(
`Send disappearing ${mediaType} 1:1`,
async ({ alice, aliceWindow1, bob, bobWindow1 }) => {
const testMessage = `${alice.userName} sending disappearing ${mediaType} to ${bob.userName}`;
Expand Down Expand Up @@ -113,7 +113,7 @@ mediaArray.forEach(
},
);

test_Alice_1W_Bob_1W(
test_Alice1_Bob1(
`Send disappearing long text 1:1`,
async ({ alice, aliceWindow1, bob, bobWindow1 }) => {
const formattedTime = formatTimeOption(timeOption);
Expand Down Expand Up @@ -158,7 +158,7 @@ test_Alice_1W_Bob_1W(
},
);

test_Alice_1W_Bob_1W(
test_Alice1_Bob1(
`Send disappearing link preview 1:1`,
async ({ alice, aliceWindow1, bob, bobWindow1 }) => {
const formattedTime = formatTimeOption(timeOption);
Expand Down Expand Up @@ -212,7 +212,7 @@ test_Alice_1W_Bob_1W(
},
);

test_Alice_1W_Bob_1W(
test_Alice1_Bob1(
`Send disappearing community invite 1:1`,
async ({ alice, aliceWindow1, bob, bobWindow1 }) => {
const formattedTime = formatTimeOption(timeOption);
Expand Down Expand Up @@ -306,7 +306,7 @@ test_Alice_1W_Bob_1W(
},
);

test_Alice_1W_Bob_1W(
test_Alice1_Bob1(
`Send disappearing call message 1:1`,
async ({ alice, aliceWindow1, bob, bobWindow1 }) => {
const formattedTime = formatTimeOption(timeOption);
Expand Down
16 changes: 8 additions & 8 deletions tests/automation/disappearing_messages.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { sleepFor } from '../promise_utils';
import { defaultDisappearingOptions } from './constants/variables';
import { Conversation, HomeScreen } from './locators';
import {
test_Alice_2W,
test_Alice_2W_Bob_1W,
test_group_Alice_2W_Bob_1W_Charlie_1W,
test_Alice2,
test_Alice2_Bob1,
test_group_Alice2_Bob1_Charlie1,
} from './setup/sessionTest';
import { createContact } from './utilities/create_contact';
import { sendMessage } from './utilities/message';
Expand All @@ -25,7 +25,7 @@ import {
waitForTextMessage,
} from './utilities/utils';

test_Alice_2W_Bob_1W(
test_Alice2_Bob1(
'Disappear after read 1:1',
async ({ alice, bob, aliceWindow1, aliceWindow2, bobWindow1 }) => {
const { timeOption, disappearingMessagesType, disappearAction } =
Expand Down Expand Up @@ -84,7 +84,7 @@ test_Alice_2W_Bob_1W(
},
);

test_Alice_2W_Bob_1W(
test_Alice2_Bob1(
'Disappear after send 1:1',
async ({ alice, bob, aliceWindow1, aliceWindow2, bobWindow1 }) => {
const { timeOption, disappearingMessagesType, disappearAction } =
Expand Down Expand Up @@ -136,7 +136,7 @@ test_Alice_2W_Bob_1W(
},
);

test_group_Alice_2W_Bob_1W_Charlie_1W(
test_group_Alice2_Bob1_Charlie1(
'Disappear after send groups',
async ({
aliceWindow1,
Expand Down Expand Up @@ -192,7 +192,7 @@ test_group_Alice_2W_Bob_1W_Charlie_1W(
},
);

test_Alice_2W(
test_Alice2(
'Disappear after send note to self',
async ({ alice, aliceWindow1, aliceWindow2 }) => {
const { timeOption, disappearingMessagesType, disappearAction } =
Expand Down Expand Up @@ -239,7 +239,7 @@ test_Alice_2W(
},
);

test_Alice_2W_Bob_1W(
test_Alice2_Bob1(
'Disappear after send off 1:1',
async ({ alice, bob, aliceWindow1, aliceWindow2, bobWindow1 }) => {
const { disappearAction, disappearingMessagesType, timeOption } =
Expand Down
8 changes: 4 additions & 4 deletions tests/automation/group_disappearing_messages.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
mediaArray,
testLink,
} from './constants/variables';
import { test_group_Alice_1W_Bob_1W_Charlie_1W } from './setup/sessionTest';
import { test_group_Alice1_Bob1_Charlie1 } from './setup/sessionTest';
import { sendMessage } from './utilities/message';
import {
sendLinkPreview,
Expand All @@ -27,7 +27,7 @@ const { timeOption, disappearingMessagesType, disappearAction } =
defaultDisappearingOptions.group;

mediaArray.forEach(({ mediaType, path, shouldCheckMediaPreview }) => {
test_group_Alice_1W_Bob_1W_Charlie_1W(
test_group_Alice1_Bob1_Charlie1(
`Send disappearing ${mediaType} groups`,
async ({
alice,
Expand Down Expand Up @@ -84,7 +84,7 @@ mediaArray.forEach(({ mediaType, path, shouldCheckMediaPreview }) => {
);
});

test_group_Alice_1W_Bob_1W_Charlie_1W(
test_group_Alice1_Bob1_Charlie1(
'Send disappearing long text to groups',
async ({ aliceWindow1, bobWindow1, charlieWindow1 }) => {
await setDisappearingMessages(aliceWindow1, [
Expand All @@ -106,7 +106,7 @@ test_group_Alice_1W_Bob_1W_Charlie_1W(
},
);

test_group_Alice_1W_Bob_1W_Charlie_1W(
test_group_Alice1_Bob1_Charlie1(
'Send disappearing link to groups',
async ({ aliceWindow1, bobWindow1, charlieWindow1 }) => {
await setDisappearingMessages(aliceWindow1, [
Expand Down
12 changes: 6 additions & 6 deletions tests/automation/group_testing.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import { createGroup } from './setup/create_group';
import { newUser } from './setup/new_user';
import {
sessionTestThreeWindows,
test_group_Alice_1W_Bob_1W_Charlie_1W,
test_group_Alice_1W_Bob_1W_Charlie_1W_Dracula_1W,
test_group_Alice1_Bob1_Charlie1,
test_group_Alice1_Bob1_Charlie1_Dracula1,
} from './setup/sessionTest';
import { createContact } from './utilities/create_contact';
import { leaveGroup } from './utilities/leave_group';
Expand Down Expand Up @@ -51,7 +51,7 @@ sessionTestThreeWindows('Create group', async ([windowA, windowB, windowC]) => {
// await waitForTestIdWithText(windowA, 'control-message');
});

test_group_Alice_1W_Bob_1W_Charlie_1W_Dracula_1W(
test_group_Alice1_Bob1_Charlie1_Dracula1(
'Add contact to group',
async ({
alice,
Expand Down Expand Up @@ -108,7 +108,7 @@ test_group_Alice_1W_Bob_1W_Charlie_1W_Dracula_1W(
},
);

test_group_Alice_1W_Bob_1W_Charlie_1W(
test_group_Alice1_Bob1_Charlie1(
'Change group name',
async ({ aliceWindow1, bobWindow1, charlieWindow1, groupCreated }) => {
const newGroupName = 'New group name';
Expand Down Expand Up @@ -157,7 +157,7 @@ test_group_Alice_1W_Bob_1W_Charlie_1W(
},
);

test_group_Alice_1W_Bob_1W_Charlie_1W(
test_group_Alice1_Bob1_Charlie1(
'Test mentions',
async ({
alice,
Expand Down Expand Up @@ -224,7 +224,7 @@ test_group_Alice_1W_Bob_1W_Charlie_1W(
},
);

test_group_Alice_1W_Bob_1W_Charlie_1W(
test_group_Alice1_Bob1_Charlie1(
'Leave group',
async ({
aliceWindow1,
Expand Down
4 changes: 2 additions & 2 deletions tests/automation/landing_page.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { englishStrippedStr } from '../localization/englishStrippedStr';
import { test_Alice_2W } from './setup/sessionTest';
import { test_Alice2 } from './setup/sessionTest';
import {
hasElementPoppedUpThatShouldnt,
waitForElement,
} from './utilities/utils';

test_Alice_2W(
test_Alice2(
`Landing page states`,
async ({ aliceWindow1, aliceWindow2 }, _testInfo) => {
await Promise.all([
Expand Down
12 changes: 6 additions & 6 deletions tests/automation/linked_device_group.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import {
import { openApp } from './setup/open';
import { recoverFromSeed } from './setup/recovery_using_seed';
import {
test_group_Alice_1W_Bob_1W_Charlie_1W,
test_group_Alice_2W_Bob_1W_Charlie_1W,
test_group_Alice1_Bob1_Charlie1,
test_group_Alice2_Bob1_Charlie1,
} from './setup/sessionTest';
import { leaveGroup } from './utilities/leave_group';
import {
Expand All @@ -25,7 +25,7 @@ import {
waitForTestIdWithText,
} from './utilities/utils';

test_group_Alice_2W_Bob_1W_Charlie_1W(
test_group_Alice2_Bob1_Charlie1(
'Leaving group syncs',
async ({
aliceWindow1,
Expand Down Expand Up @@ -88,7 +88,7 @@ test_group_Alice_2W_Bob_1W_Charlie_1W(
},
);

test_group_Alice_1W_Bob_1W_Charlie_1W(
test_group_Alice1_Bob1_Charlie1(
'Restore group',
async ({ alice, bob, charlie, groupCreated }) => {
const [aliceWindow2] = await openApp(1);
Expand Down Expand Up @@ -173,7 +173,7 @@ async function clearDataOnWindow(window: Page) {
}

// Delete device data > Restore account
test_group_Alice_1W_Bob_1W_Charlie_1W(
test_group_Alice1_Bob1_Charlie1(
'Delete and restore group',
async ({ alice, bob, charlie, groupCreated }) => {
const [aliceWindow2] = await openApp(1);
Expand Down Expand Up @@ -313,7 +313,7 @@ test_group_Alice_1W_Bob_1W_Charlie_1W(
},
);

test_group_Alice_2W_Bob_1W_Charlie_1W(
test_group_Alice2_Bob1_Charlie1(
'Delete group linked device',
async ({
aliceWindow1,
Expand Down
8 changes: 4 additions & 4 deletions tests/automation/linked_device_requests.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
LeftPane,
Settings,
} from './locators';
import { test_Alice_2W_Bob_1W } from './setup/sessionTest';
import { test_Alice2_Bob1 } from './setup/sessionTest';
import { sendMessage } from './utilities/message';
import { sendNewMessage } from './utilities/send_message';
import {
Expand All @@ -19,7 +19,7 @@ import {
waitForTextMessage,
} from './utilities/utils';

test_Alice_2W_Bob_1W(
test_Alice2_Bob1(
'Accept request syncs',
async ({ alice, bob, aliceWindow1, aliceWindow2, bobWindow1 }) => {
const testMessage = `${bob.userName} sending message request to ${alice.userName}`;
Expand Down Expand Up @@ -63,7 +63,7 @@ test_Alice_2W_Bob_1W(
},
);

test_Alice_2W_Bob_1W(
test_Alice2_Bob1(
'Decline request syncs',
async ({ alice, aliceWindow1, aliceWindow2, bob, bobWindow1 }) => {
const testMessage = `${bob.userName} sending message request to ${alice.userName}`;
Expand Down Expand Up @@ -103,7 +103,7 @@ test_Alice_2W_Bob_1W(
},
);

test_Alice_2W_Bob_1W(
test_Alice2_Bob1(
'Message requests block',
async ({ alice, bob, aliceWindow1, aliceWindow2, bobWindow1 }) => {
const testMessage = `Sender: ${bob.userName}, Receiver: ${alice.userName}`;
Expand Down
Loading
Loading