Skip to content
Snippets Groups Projects
Name Last commit Last update
apps/meteor/tests/e2e/apps
apps/meteor/tests/e2e/config
apps/meteor/tests/e2e/containers/saml
apps/meteor/tests/e2e/federation
apps/meteor/tests/e2e/fixtures
apps/meteor/tests/e2e/omnichannel
apps/meteor/tests/e2e/page-objects
apps/meteor/tests/e2e/utils
apps/meteor/tests/e2e/.eslintrc.json
apps/meteor/tests/e2e/README.md
apps/meteor/tests/e2e/access-security-page.spec.ts
apps/meteor/tests/e2e/account-forgetSessionOnWindowClose.spec.ts
apps/meteor/tests/e2e/account-profile.spec.ts
apps/meteor/tests/e2e/admin-room.spec.ts
apps/meteor/tests/e2e/administration-settings.spec.ts
apps/meteor/tests/e2e/administration.spec.ts
apps/meteor/tests/e2e/anonymous-user.spec.ts
apps/meteor/tests/e2e/avatar-settings.ts
apps/meteor/tests/e2e/channel-management.spec.ts
apps/meteor/tests/e2e/create-channel.spec.ts
apps/meteor/tests/e2e/create-direct.spec.ts
apps/meteor/tests/e2e/create-discussion.spec.ts
apps/meteor/tests/e2e/e2e-encryption.spec.ts
apps/meteor/tests/e2e/email-inboxes.spec.ts
apps/meteor/tests/e2e/emojis.spec.ts
apps/meteor/tests/e2e/file-upload.spec.ts
apps/meteor/tests/e2e/forgot-password.spec.ts
apps/meteor/tests/e2e/homepage.spec.ts
apps/meteor/tests/e2e/image-gallery.spec.ts
apps/meteor/tests/e2e/imports.spec.ts
apps/meteor/tests/e2e/jump-to-thread-message.spec.ts
apps/meteor/tests/e2e/login.spec.ts
apps/meteor/tests/e2e/mark-unread.spec.ts
apps/meteor/tests/e2e/message-actions.spec.ts
apps/meteor/tests/e2e/message-composer.spec.ts
apps/meteor/tests/e2e/message-mentions.spec.ts
apps/meteor/tests/e2e/messaging.spec.ts
apps/meteor/tests/e2e/oauth.spec.ts
apps/meteor/tests/e2e/permissions.spec.ts
apps/meteor/tests/e2e/presence.spec.ts
apps/meteor/tests/e2e/read-receipts.spec.ts
apps/meteor/tests/e2e/register.spec.ts
apps/meteor/tests/e2e/reset-password.spec.ts
apps/meteor/tests/e2e/retention-policy.spec.ts
apps/meteor/tests/e2e/saml.spec.ts
apps/meteor/tests/e2e/search-discussion.spec.ts
apps/meteor/tests/e2e/settings-assets.spec.ts
apps/meteor/tests/e2e/settings-int.spec.ts
apps/meteor/tests/e2e/settings-persistence-on-ui-navigation.spec.ts
apps/meteor/tests/e2e/sidebar-administration-menu.spec.ts
apps/meteor/tests/e2e/sidebar.spec.ts
apps/meteor/tests/e2e/system-messages.spec.ts
apps/meteor/tests/e2e/team-management.spec.ts
apps/meteor/tests/e2e/threads.spec.ts
apps/meteor/tests/e2e/translations.spec.ts
apps/meteor/tests/e2e/user-card-info-actions-by-member.spec.ts
apps/meteor/tests/e2e/user-card-info-actions-by-room-owner.spec.ts
apps/meteor/tests/e2e/video-conference-ring.spec.ts
apps/meteor/tests/e2e/video-conference.spec.ts

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

Important links

Assertions

Checking if a element is visible

 await expect(anyElement).toBeVisible();