Skip to content
Snippets Groups Projects
Name Last commit Last update
..
apps/meteor/tests/e2e/config
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/account-profile.spec.ts
apps/meteor/tests/e2e/administration-menu.spec.ts
apps/meteor/tests/e2e/administration.spec.ts
apps/meteor/tests/e2e/anonymous-user.spec.ts
apps/meteor/tests/e2e/apps.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/imports.spec.ts
apps/meteor/tests/e2e/login.spec.ts
apps/meteor/tests/e2e/message-actions.spec.ts
apps/meteor/tests/e2e/message-mentions.spec.ts
apps/meteor/tests/e2e/messaging.spec.ts
apps/meteor/tests/e2e/permissions.spec.ts
apps/meteor/tests/e2e/register.spec.ts
apps/meteor/tests/e2e/settings-assets.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/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();