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
Aleksander Nicacio da Silva d09b88292f
chore: refactored livechat e2e tests (#31054)
2 years ago
..
config Chore: Playwright test improvements (#28100) 3 years ago
federation feat: workspace info admin page (#30434) 2 years ago
fixtures regression: banners close (#31033) 2 years ago
omnichannel chore: refactored livechat e2e tests (#31054) 2 years ago
page-objects regression: update seats cap modal (#31061) 2 years ago
utils chore: fix priorities sidebar flaky test (#30674) 2 years ago
.eslintrc.json chore: Adjust mocha assertions (#30052) 2 years ago
README.md [FIX] E2EE initial banner not showing (#27574) 3 years ago
account-profile.spec.ts feat: Add `ChangePassword` field to Account/Security (#30306) 2 years ago
administration-menu.spec.ts chore: remove upgrade page and references (#30715) 2 years ago
administration.spec.ts regression: update seats cap modal (#31061) 2 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 chore: Adjust mocha assertions (#30052) 2 years ago
channel-management.spec.ts test: enable http cache for tests (#30278) 2 years ago
create-channel.spec.ts chore: Improve form fields on `CreateChannelModal` (#30203) 2 years ago
create-direct.spec.ts feat: workspace info admin page (#30434) 2 years ago
create-discussion.spec.ts chore(deps): Safe upgrades (#28867) 3 years ago
e2e-encryption.spec.ts regression: banners close (#31033) 2 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
file-upload.spec.ts Chore: Playwright test improvements (#28100) 3 years ago
forgot-password.spec.ts chore: `ResetPasswordPage` a11y improvements (#30479) 2 years ago
homepage.spec.ts test: Changed Home Page spec titles (#30349) 2 years ago
imports.spec.ts Chore: Playwright test improvements (#28100) 3 years ago
login.spec.ts chore: `LoginForm` a11y improvements (#30337) 2 years ago
message-actions.spec.ts fix: href messages from server (#31005) 2 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
permissions.spec.ts test: flaky tests related to lazy room loading (#30155) 2 years ago
register.spec.ts chore: Assertion accuracy on registration test (#30440) 2 years ago
reset-password.spec.ts chore: `ResetPasswordPage` a11y improvements (#30479) 2 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 test: create non private team and readonly team (#30371) 2 years ago
threads.spec.ts test: adding missing verifications on threads (#30528) 2 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();