Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add(script): add script to send multiple friend requests #145

Closed
wants to merge 4 commits into from

Conversation

luisecm
Copy link
Collaborator

@luisecm luisecm commented Sep 4, 2024

What this PR does 📖

Instructions on how to run:

  1. Clone this repository git clone https://github.com/Satellite-im/automated-tests-web.git
  2. Checkout this branch luis/script-test and pull from here
  3. Install dependencies on this repo npm install
  4. Open the folder /playwright/assets and copy there any custom profile picture images
  5. Open the file playwright/specs/00-script.spec.ts and replace the following:
    const userToAdd: string =
    "did:key:z6MkiNPVXR1C3XKUZpKUUHZqaD52E5dkKP7icVLgsHxkYNWr"; to another did key value from an account where you want to receive the friend requests
  6. Also, update the const userData array of objects by passing custom usernames and profile picture locations from the playwright/assets folder
  7. Now when everything is setup launch uplink web locally (these tests will execute against localhost:5173)
  8. Open an instance from your account with did passed into file
  9. Finally run the specific spec file with npx playwright test ./playwright/specs/00-script.spec.ts and wait until is finished
  10. On your account, validate that you receive the friend requests with expected usernames and profile pictures

Which issue(s) this PR fixes 🔨

  • Resolve #

Special notes for reviewers 🗒️

I will move this into a separete folder in order to avoid execution on CI

Additional comments 🎤

Copy link

github-actions bot commented Sep 4, 2024

Automated Test Results

failed  11 failed
passed  119 passed
flaky  2 flaky
skipped  1 skipped

Details

stats  133 tests across 18 suites
duration  48 minutes, 4 seconds
commit  af9f644

Failed tests

Automated Tests on Chrome Desktop › 03-friends-two-instances.spec.ts › Two instances tests - Friends and Chats › H21 - User can send a friend request and cancel request before other user replies to it
Automated Tests on Chrome Desktop › 03-friends-two-instances.spec.ts › Two instances tests - Friends and Chats › H6, H19, B1 to B6, B16 and B17, B35 to B37 - Friend request happy path flow and then Chats Page basic send/receive text message flow
Automated Tests on Chrome Desktop › 03-friends-two-instances.spec.ts › Two instances tests - Friends and Chats › B7, B57, B58 - Favorites tests
Automated Tests on Chrome Desktop › 03-friends-two-instances.spec.ts › Two instances tests - Friends and Chats › C11, C12, C16, C17 and C19 - Chat Sidebar tests
Automated Tests on Chrome Desktop › 03-friends-two-instances.spec.ts › Two instances tests - Friends and Chats › B49 and B56 - Chats Tests - Multiple messages testing - Scroll to bottom and Go to pin message buttons
Automated Tests on Chrome Desktop › 03-friends-two-instances.spec.ts › Two instances tests - Friends and Chats › B8 to B14 - Quick Profile Local and Remote - Updating note
Automated Tests on Chrome Desktop › 03-friends-two-instances.spec.ts › Two instances tests - Friends and Chats › B8 to B14 - Quick Profile Local - Updating username, status, banner and profile picture
Automated Tests on Chrome Desktop › 03-friends-two-instances.spec.ts › Two instances tests - Friends and Chats › B8 to B14 - Quick Profile Remote - Updating username, status, banner and profile picture
Automated Tests on Chrome Desktop › 03-friends-two-instances.spec.ts › Two instances tests - Friends and Chats › B18 and B19, B23 to B25 - Chats Context Menu tests
Automated Tests on Chrome Desktop › 03-friends-two-instances.spec.ts › Two instances tests - Friends and Chats › B20 - Pin Messages Tests
Automated Tests on Chrome Desktop › 03-friends-two-instances.spec.ts › Two instances tests - Friends and Chats › B22 and B50 - Reaction Tests

Flaky tests

Automated Tests on Chrome Desktop › 03-friends-two-instances.spec.ts › Two instances tests - Friends and Chats › H16, H17, H18, H26 - User can be block/unblocked
Automated Tests on Chrome Desktop › 03-friends-two-instances.spec.ts › Two instances tests - Friends and Chats › H7, H20 - User can send a friend request and remote user can deny it

Skipped tests

Automated Tests on Chrome Desktop › 20-settings-developer.spec.ts › Settings Developer Tests › T4 - Clicking Clear State should clear users state

Copy link

github-actions bot commented Sep 4, 2024

Playwright test execution is complete! You can find the test results report here

@github-actions github-actions bot added the Failed Automated Test Failed Automated Test label Sep 6, 2024
@luisecm luisecm closed this Sep 11, 2024
@luisecm luisecm deleted the luis/script-test branch October 8, 2024 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Failed Automated Test Failed Automated Test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant