The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/tests/e2e
Lucas Pelegrino 4a63442526 Merge branch 'release-7.0.0' of github.com:RocketChat/Rocket.Chat into PASLR-26 1 year ago
..
apps chore!: Update private apps cap on Community Edition (#33399) 1 year ago
config refactor(tests): API tests (#32643) 2 years ago
containers/saml test: saml login custom role (#31830) 2 years ago
federation chore: Use `prettier` on UI tests files (#32526) 2 years ago
fixtures chore!: Update private apps cap on Community Edition (#33399) 1 year ago
omnichannel i18n: Required fields text to "{Field} required" format (#33077) 1 year ago
page-objects Merge branch 'release-7.0.0' of github.com:RocketChat/Rocket.Chat into PASLR-26 1 year ago
utils Revert "fix: Login services button colors" (#32955) 1 year ago
.eslintrc.json chore: Use `prettier` on UI tests files (#32526) 2 years ago
README.md
access-security-page.spec.ts chore: Use `prettier` on UI tests files (#32526) 2 years ago
account-forgetSessionOnWindowClose.spec.ts fix: Forget session on window close (#33040) 1 year ago
account-profile.spec.ts chore: Use `prettier` on UI tests files (#32526) 2 years ago
admin-room.spec.ts test: close pages properly (#32681) 2 years ago
administration-settings.spec.ts chore: Renders back button through prop in admin settings (#32987) 1 year ago
administration.spec.ts feat: New users page contextual bar user form (#32041) 1 year ago
anonymous-user.spec.ts
avatar-settings.ts
channel-management.spec.ts Merge branch 'release-7.0.0' of github.com:RocketChat/Rocket.Chat into PASLR-26 1 year ago
create-channel.spec.ts feat: Improve sidebar keyboard navigation (#32115) 2 years ago
create-direct.spec.ts chore: Create/Edit room consistency (#31960) 2 years ago
create-discussion.spec.ts
e2e-encryption.spec.ts chore!: Update private apps cap on Community Edition (#33399) 1 year ago
email-inboxes.spec.ts
emojis.spec.ts
file-upload.spec.ts fix: File uploads should only be allowed for room members (#32940) 1 year ago
forgot-password.spec.ts chore: Use `prettier` on UI tests files (#32526) 2 years ago
homepage.spec.ts chore: Use `prettier` on UI tests files (#32526) 2 years ago
image-gallery.spec.ts test: closing remaining opened pages (#32844) 1 year ago
imports.spec.ts chore: Use `prettier` on UI tests files (#32526) 2 years ago
login.spec.ts chore: Use `prettier` on UI tests files (#32526) 2 years ago
mark-unread.spec.ts fix: Mark as unread not working (#32939) 1 year ago
message-actions.spec.ts fix: Following/unfollowing a message when the thread is closed does not update the UI (#32981) 1 year ago
message-composer.spec.ts regression: Messagebox sending message instead of just selecting popup suggestion (#32890) 1 year ago
message-mentions.spec.ts test: Flaky `mention @all @here` yet again (#32799) 1 year ago
messaging.spec.ts test: closing remaining opened pages (#32844) 1 year ago
oauth.spec.ts fix: Custom OAuth not working if other login services are also enabled (#31753) 2 years ago
permissions.spec.ts fix: bad word filtering not working (#32810) 1 year ago
presence.spec.ts fix: User status when setting "Use REST instead of websocket for Meteor calls" is disabled (#32500) 2 years ago
read-receipts.spec.ts test: closing remaining opened pages (#32844) 1 year ago
register.spec.ts chore: Use `prettier` on UI tests files (#32526) 2 years ago
reset-password.spec.ts chore: Use `prettier` on UI tests files (#32526) 2 years ago
retention-policy.spec.ts test: Add e2e tests for teams multi-step modals (#33168) 1 year ago
saml.spec.ts Revert "fix: Login services button colors" (#32955) 1 year ago
search-discussion.spec.ts chore: Use `prettier` on UI tests files (#32526) 2 years ago
settings-assets.spec.ts
settings-int.spec.ts fix: saveSettings endpoint allowing NaN to be stored on Int settings (#32428) 2 years ago
settings-persistence-on-ui-navigation.spec.ts fix: settings disappear on UI navigation back and forth (#32713) 1 year ago
sidebar-administration-menu.spec.ts chore: Use `prettier` on UI tests files (#32526) 2 years ago
sidebar.spec.ts chore: Use `prettier` on UI tests files (#32526) 2 years ago
system-messages.spec.ts
team-management.spec.ts fix: Multi-step modals closing unexpectedly (#33158) 1 year ago
threads.spec.ts fix: Pressing esc whilst editing a message closes the contextual bar (#32861) 1 year ago
translations.spec.ts fix: Translations falling back to english after refreshing the page (#32348) 2 years ago
user-card-info-actions-by-member.spec.ts fix: show only relevant userInfoActions for mentioned non-members (#31525) 1 year ago
user-card-info-actions-by-room-owner.spec.ts fix: show only relevant userInfoActions for mentioned non-members (#31525) 1 year ago
video-conference-ring.spec.ts feat: Voip for Team Collaboration (#33346) 1 year ago
video-conference.spec.ts Merge branch 'release-7.0.0' of github.com:RocketChat/Rocket.Chat into PASLR-26 1 year ago

README.md

E2E Testing with playwright

Running tests

The application must be started with TEST_MODE=true

$ TEST_MODE=true yarn dev

Then we can run a single suite with

$ yarn test:e2e ./tests/e2e/administration.spec.ts

Or all the tests with

$ yarn test:e2e

We can also provide some env vars to test:e2e script:

  • BASE_URL=<any_url> Run the tests to the given url
  • PWDEBUG=1 Control the test execution

Page Objects

  • Any locator name must start with of one the following prefixes: btn, link, input, select, checkbox, text

Assertions

Checking if a element is visible

 await expect(anyElement).toBeVisible();