Commit Graph
30 Commits
Author SHA1 Message Date
sabrilandMattermost Build a8c2307bee E2E/Playwright: Add testcontainers to playwright-lib (#37570)
* add testcontainers to playwright-lib

* include retry mechanism for transient failures

* - Introduced a new command `testcontainers:up` in package.json to run Playwright tests with Testcontainers.
- Created a standalone Playwright configuration file `playwright.testcontainers-up.config.ts` for managing Testcontainers.
- Added a no-op test `testcontainers_up.spec.ts` to ensure the Testcontainers stack is up during the test run.
- Implemented a global setup script `testcontainers_up_global_setup.ts` to start and stop the Testcontainers stack.
- Updated dependencies in package.json, including adding `chalk` for logging.

* fix package-lock

* fix tsc and restore waiting for all migrations to complete

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2026-07-28 10:06:36 +02:00
sabril 02d770d64b SEC-10587 E2E/Playwright: Migrate RFQA browser tests (batch 1, 1-20) (#37352) 2026-07-08 15:20:29 +08:00
sabril d85da5ce2c E2E/Playwright: Upgrade Playwright to 1.61 and its deps (#37277)
* chore: upgrade playwright to 1.61 and its deps

* fix failed tests

* address comments

* use assignTeamsToPolicy helper method
2026-06-30 04:38:05 +00:00
sabril bff3577690 chore(playwright): upgrade to v1.59 and to typescript@6.0 (#36071) 2026-04-15 17:43:52 +08:00
sabril bffe406e9f (chore): upgrade playwright and its dependencies (#35175) 2026-02-09 21:30:07 +08:00
sabril 0b0658bdd0 chore: upgrade playwright to 1.57 and its dependencies (#34769)
* chore: upgrade playwright to 1.57 and its dependencies

* bump webapp's npm to accept ^11.0.0

* updated per comment

* fix failed tests
2026-01-09 10:48:19 +08:00
sabril b3b5f9d3e3 E2E/Playwright: Upgrade to playwright@1.56 and its dependencies (#34135)
* upgrade to playwright@1.56 and its dependencies

* move audited packages to devdep
2025-10-17 11:41:54 +08:00
sabril 18d2e8da9f MM-63700 E2E/Playwright: Add accessibility testing guidelines (#33997)
* add accessibility testing guidelines

* use accessibility locators

* address comments
2025-10-15 12:00:01 +08:00
sabrilandMattermost Build bb979f6f9f upgrade playwright and fix client config (#33800)
Co-authored-by: Mattermost Build <build@mattermost.com>
2025-09-01 14:12:24 +08:00
sabril 680059758b upgrade to playwright@1.54 and its dependencies (#33568) 2025-07-29 11:24:15 +08:00
sabril edbfc3d933 upgrade playwright dependencies (#32405) 2025-06-30 23:38:24 +08:00
sabril f710512e3e separate visual tests from main test, update snapshots and dependencies (#31131) 2025-05-22 23:21:23 +08:00
sabril 6a4407de76 E2E/Playwright: Refactor and fix tests for scheduled posts (#30871) 2025-05-06 11:27:18 +08:00
Saturn Abril d631974e88 MM-63820 chore(e2e): update dependencies and docs (#30807)
* chore(e2e): update dependencies and docs

* update the use of postMessage, expose 8065 on test server and fix flakiness on profile popover
2025-04-22 02:02:55 +08:00
Saturnino Abril cf68cfdf4b bump playwright lib to 10.8.0, update dependencies and update snapshots (#30662) 2025-04-08 16:21:50 +08:00
Saturnino Abril a35a6d7a3a MM-63669 E2E/Playwright: Move "e2e-tests/playwright/test" to "e2e-tests/playwright" folder (#30647)
* move "e2e-tests/playwright/test" to  "e2e-tests/playwright/test" and expose "ensurePluginsLoaded"

* add test setup, and expose ensurePluginsLoaded and ensureServerDeployment to pw
2025-04-07 22:26:29 +08:00
Saturnino Abril a47269cfe2 MM-62954 E2E/Playwright shared library (#30177)
* feat: Add package.json for Playwright library with dependencies

* feat: Add explicit exports for test.config in playwright-lib package

* feat: Add initialization setup for Mattermost E2E testing with admin and user client

* fix: Update package dependencies and resolve TypeScript build errors

* feat: Update package exports for test.config to support both CommonJS and ESM

* playwright shared library

* add README, fix pipeline

* keep file structures, move report up to playwright

* minimize API, use the prerelease versions of client and types

* bump version

* update package*.json

* resolve merge conflict

* update depedencies and merge conflicts

* update readme and fix ci

* remove unnecessary export and list all external packages

* fix import for Client4
2025-04-01 08:52:56 +08:00
Saturnino Abril 5c9030ffc9 chore(deps): update (#29939) 2025-01-24 05:25:13 +08:00
Saturnino Abril 90c0235c4b upgrade playwright dependencies, screenshots and tests (#29466) 2024-12-04 19:52:18 +08:00
Saturnino Abril 073e2cecaa use node's native fetch, add ensureLicense flag and update snapshots (#28279) 2024-09-23 21:11:45 +08:00
armmanvaillancourt 73b14b417e Improve E2E tests README for readability (#27884) 2024-09-16 15:02:46 +02:00
Saturnino AbrilandMattermost Build eb560fff1e Upgrade Playwright's dependencies (#28125)
* upgrade playwright's dependencies

* fix test

* fix types

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-10 14:54:10 +08:00
Saturnino Abril 20825101a4 Playwright/E2E: Upgrade to playwright@1.43 and its dependencies (#26833)
* chore: upgrade to playwright@1.43 and its dependencies

* fix lint

* attempt to fix lint error on console
2024-04-23 06:58:49 +08:00
Saturnino Abril 53471c7e8c E2E/Playwright: Upgrade playwright/dependencies and test server config (#26464)
* chore: upgrade playwright and test server config

* add post install script

* update config types

* fix visual test
2024-03-19 08:09:25 +08:00
Saturnino Abril 79e961e239 Playwright/E2E: Upgraded Playwright to 1.41 and fixed tests (#26008)
* upgrade Playwright and fix tests

* fix lint
2024-01-23 20:56:23 +08:00
6746857ee7 MM-52642 CLD-6352 MM-54007 Prepare setup for Playwright pipeline (#24647)
* pipeline(playwright): prepare setup for playwright

* feedback address

* clean up readme

* Fix docker-compose command and definition for dashboard

* fix the dashboard

* ignore dashboard when formatting

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Mario Vitale <mvitale1989@hotmail.com>
2023-10-14 07:02:32 +08:00
Saturnino Abril b7b08dbc0f CLD-5948 Playwright/E2E: Update dependencies, server default config and its types, and remove Boards and mobile view tests (#24583)
* update dependencies

* update dependencies

* remove mobile view

* remove boards

* update default config  and its types

* update snapshots

* fix formatting

* check works and fix styling
2023-09-20 05:28:35 +08:00
Saturnino Abril e377d985cd MM-52641 MM-52645 Playwright/Accessibility: Initial setup and accessibility fix on login page (#23254)
* MM-52641 Playwright/Accessibility: initial setup

* upgrade Playwright to 1.36.1

* fix accessibility at login page

* fix lint

* update snapshot
2023-07-19 16:25:17 -04:00
Saturnino AbrilandMattermost Build 6ca5824ea1 E2E/Playwright: Update dependencies, screenshots, config and type (#23000)
* update dependencies

* update default server config and client type

* close browser context once test is done

* fix test when switching a product

* update screenshots and readme

* add cross-env and make headless mode as default

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-04-19 12:04:25 +08:00
Mario Vitale ba6b97fb62 Move /e2e -> /e2e-tests 2023-03-28 18:10:00 +02:00