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
Harmeet221 dcdef4b5ec Merge branch 'Export-PDF-Transcript' of https://github.com/RocketChat/Rocket.Chat into Export-PDF-Transcript 3 years ago
..
config Chore: Playwright test improvements (#28100) 3 years ago
federation refactor: `AppsProvider` (#29264) 3 years ago
fixtures chore(deps): Safe upgrades (#28867) 3 years ago
omnichannel Merge branch 'develop' into Export-PDF-Transcript 3 years ago
page-objects Merge branch 'develop' into Export-PDF-Transcript 3 years ago
utils chore(deps): Safe upgrades (#28867) 3 years ago
.eslintrc.json Chore: Add Eslint rules to tests (#28074) 3 years ago
README.md [FIX] E2EE initial banner not showing (#27574) 3 years ago
administration-menu.spec.ts chore: Menu v2 (#29580) 3 years ago
administration.spec.ts chore(deps): Safe upgrades (#28867) 3 years ago
anonymous-user.spec.ts refactor: `RegisterUsername` (#28362) 3 years ago
apps.spec.ts chore: `Contextualbar` empty state consistency (#29341) 3 years ago
avatar-settings.ts fix: External avatar url provider for rooms not respected. (#28910) 3 years ago
channel-management.spec.ts chore(deps): Safe upgrades (#28867) 3 years ago
create-channel.spec.ts chore(deps): Safe upgrades (#28867) 3 years ago
create-direct.spec.ts Chore: Playwright test improvements (#28100) 3 years ago
create-discussion.spec.ts chore(deps): Safe upgrades (#28867) 3 years ago
e2e-encryption.spec.ts chore(deps): Safe upgrades (#28867) 3 years ago
email-inboxes.spec.ts chore(deps): Safe upgrades (#28867) 3 years ago
emojis.spec.ts refactor: `EmojiPicker` to React Component (#28836) 3 years ago
engagement-dashboard.spec.ts ci: improve engagement dashboard selectors (#29541) 3 years ago
file-upload.spec.ts Chore: Playwright test improvements (#28100) 3 years ago
forgot-password.spec.ts Chore: E2E tests small corrections (#28066) 3 years ago
homepage.spec.ts Chore: Playwright test improvements (#28100) 3 years ago
imports.spec.ts Chore: Playwright test improvements (#28100) 3 years ago
login.spec.ts Chore: E2E tests small corrections (#28066) 3 years ago
message-actions.spec.ts fix: spotlight reacts to new rooms (#29547) 3 years ago
message-mentions.spec.ts Chore: Playwright test improvements (#28100) 3 years ago
messaging.spec.ts fix: Horizontal scroll in main room if text is too long (#28434) 3 years ago
omnichannel-send-transcript-pdf.spec.ts missing api param within initialisation 3 years ago
permissions.spec.ts Regression: Show messages instead of the composer when there is no action available on federated rooms (#28093) 3 years ago
register.spec.ts chore(deps): Safe upgrades (#28867) 3 years ago
settings-account-profile.spec.ts chore(deps): Safe upgrades (#28867) 3 years ago
settings-assets.spec.ts Chore: Add dark theme assets (#28214) 3 years ago
system-messages.spec.ts chore(deps): Safe upgrades (#28867) 3 years ago
team-management.spec.ts chore(deps): Safe upgrades (#28867) 3 years ago
threads.spec.ts chore: Add `roomName` on Composer placeholder (#29255) 3 years ago
user-invitations.spec.ts Chore: Playwright test improvements (#28100) 3 years ago
video-conference-ring.spec.ts Chore: Playwright test improvements (#28100) 3 years ago
video-conference.spec.ts Chore: Playwright test improvements (#28100) 3 years 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();