Commit Graph
75 Commits
Author SHA1 Message Date
Michael Li 25b801826d chore(e2e): Fix slack message (#3079) 2025-11-19 16:52:14 -05:00
Michael Li 123818dc70 chore(e2e): Update workflow triggers for e2e tests (#3077)
* chore(e2e): Update workflow triggers for e2e tests

* CR
2025-11-18 18:27:30 -05:00
Michael Li dafcd046d7 fix(e2e): Improve locator to avoid finding multiple elements (#3076) 2025-11-18 17:00:45 -05:00
Michael Li 2bf09011fb fix(e2e): Fix LDAP test when org name contains the word "New" (#3074)
* fix(e2e): Wait for auth methods page to load

* fix(e2e): Make search for New button exact
2025-11-18 08:35:46 -05:00
Michael Li 953e35bcd6 chore(e2e): Add slack message on e2e test failure (#3070)
* chore(e2e): Add slack message on test failure

* chore(e2e): Remove deprecated variable

* CR: only run in boundary-ui
2025-11-17 15:34:13 -05:00
Michael Li ad2c1ba2ad chore(e2e): Update desktop e2e test workflow to use new environment variable (#3014)
* chore(e2e): Update to use boundary license env

* chore(e2e): Allow runs if workflow_dispatch
2025-10-01 09:06:36 -04:00
Michael Li 830acef847 test(e2e): Make role creation sequential (#3003)
When running this test against an AWS cluster, this operation was resulting in 504s. This was potentially hitting some AWS rate limits when making these requests concurrently.
2025-09-16 17:50:11 -04:00
Michael Li 1bafbe1ad2 test(e2e): Address some Admin UI test flakiness (#2934)
* fix(e2e): Address flakiness during screen navigation

* fix(e2e): Fix function call

* fix(e2e): Address flakiness in connection

* fix(e2e): Make locator explicit to avoid conflict when an ID has `ok`

* fix(e2e): Fix URL now that project page defaults to showing targets
2025-09-03 11:28:33 -04:00
Michael Li 2e507be454 test(e2e): Address some Admin UI test issues for 0.19.2 (#2818)
* test(e2e): Update navigation to create a storage bucket

* test(e2e): Address flake when creating host catalogs
2025-05-06 14:07:36 -04:00
Michael LiandDharini Jeeva e29a83ec25 test(e2e): Enable Admin UI e2e tests to run against a local branch (#2700)
* test(e2e): decouple url used for browser vs cli

* test(e2e): Add instructions for using the UI of a local branch

* CR

* Fix typo in e2e-tests/README.md

Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>

---------

Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>
2025-03-05 11:38:12 -05:00
Michael Li cd8480bc67 test(e2e): Add check for credential store worker filters (#2696) 2025-03-04 14:43:01 -05:00
Michael Li f9411794c4 test(e2e): Remove attempt to delete session recording due to UI change (#2687)
This test attempted to delete a session recording when the policy did not allow it. However, there was a UI change to remove that option entirely, so we are removing the check.
2025-02-14 11:10:53 -05:00
Michael Li f3232f34c2 test(e2e): Use new tags syntax (#2686)
* test(e2e): Use new tag syntax

* chore: Update yarn lock
2025-02-12 17:24:51 -05:00
Michael Li 9742d824c4 test(e2e/desktop): Address failures in session tests (#2664)
* test(e2e): Address failures in session tests

* CR
2025-01-28 11:04:46 -05:00
Michael Li 5fa0d11aa9 test(e2e/admin): Updates for 0.19.0 (#2665)
* test(e2e): Update "Inactive" locators

* test(e2e): Update worker filter locators

* test(e2e): Address flake

Ensure that the test has reached the org page before trying to click the Auth Methods link (there is an auth method link on both the global page and the org page).
2025-01-27 10:01:44 -05:00
Michael Li 1cbf3b227e test(e2e): Add additional assertions to UI tests (#2634)
* test(e2e): Address deprecation

* test(e2e): Add additional connection assertions on tests

* CR: Fix flake when waiting for sessions

If no sessions are available and the page needs to reload, we should wait to ensure that the page has loaded before checking what the state of the sessions are

* CR: Address flake in connect methods

Noticed an issue where a session recording was not playable. The theory is that the session didn't last long enough before it was cancelled. This adds a 2 second wait after establishing a connection before continuing.

* CR: Use authenticated state by default

* CR: Update dynamic host catalog assertion

* CR: Simplify host set checks

- Use .all() when looping
- Add check to see if we need to reload the page or not

* CR: Be more specific with locator

Ran into a conflict with the Static/Dynamic host catalog type and the Static/Dynamic credential type.

* CR: Update connection methods to be more resilient

Rather than using a hardcoded sleep, we will now run a command on the target and wait for a specific string to return before continuing.

* CR
2025-01-06 11:40:32 -05:00
Michael Li ca4aad0a2b test(e2e): Add Admin UI test for OIDC auth method (#2638)
* test(e2e): Add managed group check in LDAP test

* test(e2e): Add oidc test

* CR: Suppress warning

* CR: Use toHaveText
2025-01-03 14:19:33 -05:00
Michael Li af8655ec45 test(e2e): Refactor imports for boundary cli helper methods (#2632)
* test(e2e): Update imports to match boundary-http conventions

* test(e2e): Remove cli from method name
2024-12-17 10:17:32 -05:00
Michael Li ca50a963fd test(e2e): Add extra timeout for "delete resources" test (#2524) 2024-11-11 09:10:13 -05:00
Michael Li 6454fb7061 test(e2e): Add check for worker filters (#2513)
* test(e2e): Add check to add an ingress worker filter

* test(e2e): Add check for editing a worker filter
2024-10-17 12:51:49 -04:00
Michael Li 9c31154941 test(e2e): Updates from 0.18.0 testing (#2509)
* test(e2e): Update locators that can't be found

* test(e2e): Fix race condition

It seems like the alias tests were failing as it was unable to open the Manage menu here. One theory is that we need to make sure the alias page has fully loaded before it tries to click the Manage button (the test might be finding the Manage button from the previous screen and clicking that)

* CR: Fix Alias header check
2024-10-04 08:39:20 -04:00
Michael Li be528dae47 test(e2e): Add test for worker tags (#2507) 2024-10-02 14:04:38 -04:00
Michael Li 15727f61fd test(e2e): Add Admin UI test for vault credential libraries (enterprise) (#2501) 2024-10-01 12:11:14 -04:00
Michael Li 7cebece600 refact(e2e): Use fixtures for environment variables (#2452) 2024-08-28 11:54:58 -04:00
Michael Li 075d8c6d8f refact(e2e): Create HTTP methods and more page objects (#2448)
* refact(e2e): Create LoginPage

* refact(e2e): Create http methods

* refact(e2e): Create more methods
2024-08-23 10:17:10 -04:00
Michael Li 007f5d8b46 refact(e2e): Split up boundary-cli helper methods (#2430)
* refact(e2e): Split up boundary-cli helper methods

* CR: Use ESM import

* CR: Move authenticated state to a non-shared file

* CR: Use mjs

* CR: Modify playwright config to .mjs
2024-08-19 16:00:16 -04:00
Michael Li 0d0dadf398 chore(e2e): Fix eslint for Admin UI e2e tests (#2427)
* chore(e2e): Fix eslint for e2e tests

* chore(e2e): Fix license headers
2024-08-06 14:26:19 -04:00
Michael Li 45c16252a7 refact(e2e): Update Admin UI tests to use Page Objects (#2426)
* refact(e2e): Use page object methods

* refact(e2e): Create base page class
2024-08-06 13:15:00 -04:00
Michael Li fc5121c41e test(e2e): Update test to select other options from Items Per Page (#2417) 2024-07-31 12:12:09 -04:00
Michael Li e73bded6ae test(e2e): Update tests due to 0.17.0 changes (#2401)
* test(e2e): Only clean up org if org hasn't been deleted yet

* test(e2e): Use new worker filter tab

* test(e2e): Update selector for updated Manage button

Some pages now use a Manage button instead of a Manage link. The "Title" selector was not being picked up on the Manage button.

* test(e2e): Fix flakiness due to race condition

The test should navigate to the home page after creating all of the resources using the API

* test(e2e): Add cleanup to test
2024-07-24 14:55:51 -04:00
Michael Li 12a986b2ba test(e2e): Add test for search and pagination (#2366)
* test(e2e): Add test for search and pagination

* CR: Add comment
2024-06-28 15:04:11 -04:00
Michael Li 5e5c25be82 test(e2e): Add alias test (#2363)
* test(e2e): Add alias test

* test(e2e): Cleanup
2024-06-28 10:24:50 -04:00
Michael Li 45db2ad5a6 test(e2e): Add check to detach storage bucket from target (#2352) 2024-06-24 09:35:33 -04:00
Michael Li e6642959be test(e2e): Fix flakiness when selecting org links (#2348)
* test(e2e): Fix flakiness when selecting links

Some links exist on both the "Global" and "Org" scope (i.e. Storage Policies, Auth Methods). There was some flakiness observed where the test intends to select the "Org" variant of the link, but the test moves too quickly and selects the "Global" variant instead.

This commit ensures that the Org page has loaded after clicking the Org link before trying to navigate to the next thing.

* test(e2e): Address flake due to OK conflict

* test(e2e): Address flake due to OK conflict part 2

* CR: Fix more race conditions
2024-06-21 13:26:13 -04:00
Michael Li 365545d61c test(e2e): Add checks for LDAP account attributes (#2343)
* test(e2e): Add check for LDAP account attributes

* test(e2e): Refactor to use expect assertions
2024-06-17 10:42:08 -04:00
Michael Li 1a7b3f578c test(e2e): Add multiple credentials to target (#2333) 2024-06-17 10:14:44 -04:00
Michael Li 40c1b3c6b5 test(e2e): Add check for multiple host sources (#2331)
* test(e2e): Add check for multiple host sets

* CR: TCP targets don't have injected credentials

* test(e2e): Add "exact: true" for OK button locators

Sometimes, the OK button will get interfered by resource ids that contain an OK.
2024-06-17 10:01:13 -04:00
Michael Li 09c60c7bcb test(e2e): Add test for worker (#2320)
* test(e2e): Add test for worker

* CR: Fix selector

* test(e2e): Skip test on safari

* test(e2e): Check create config
2024-06-14 14:59:23 -04:00
Michael Li fc4344c6c5 test(e2e): Update test to add a DHC host set as a source (#2324) 2024-06-11 18:57:10 -04:00
Michael Li 7106f36686 test(e2e): Add test for global settings (#2323) 2024-06-11 18:42:24 -04:00
Michael Li 28e65dbf4f test(e2e): Update ldap test to log in with ldap account (#2314) 2024-06-11 18:30:34 -04:00
Michael Li 8d217aab2b test(e2e): Update password test to log in with new account (#2313)
* test(e2e): Update password test to log in with new account

* CR: Don't break other tests

Performing a log out in a test when using authenticatedState causes subsequent tests that use the state to fail (it will show up as logged out)

* CR: Only do clean up steps when necessary

* CR: Use const
2024-06-07 13:09:24 -04:00
Michael Li 5a7e09c70c test(e2e): Add test for minio storage bucket (#2312) 2024-06-06 14:59:13 -04:00
Michael Li c0b1373851 test(e2e): 0.16.1 updates (#2310)
* test(e2e): Use AWS region specified in environment

* test(e2e): Update storage bucket label
2024-05-28 17:54:21 -04:00
Michael Li 87e0a075c1 chore: Lint action (#2294) 2024-05-09 11:13:00 -04:00
Michael Li 91fe148df4 chore: Fix error in Jira Sync workflow (#2289) 2024-05-06 12:37:05 -04:00
Michael Li 4cb9565ca0 chore: Update to use Node20 version of Actions (#2283)
atlassian/gajira-* actions are no longer maintained, but they are using node16, which is soon to be deprecated. This change removes the use of those actions.
2024-05-06 09:55:17 -04:00
Michael Li 3674d07762 test(e2e): Address flake (#2274)
Observed a flake when the Recording ID also contained an `OK`, causing a conflict with finding this OK button.
2024-04-25 13:52:26 -04:00
Michael Li bd394d9517 fix: Update LDAP address example (#2270) 2024-04-24 12:22:04 -04:00
Michael Li 20f8c99013 test(e2e): Fixes for 0.16.0 (#2258) 2024-04-22 10:39:53 -04:00
Michael Li d31cfca138 chore(e2e): Update playwright to 1.43 (#2254)
When running the Admin UI e2e tests against 0.16.0, there were some issues with trying to click on a link on the new pagination tables (links were not seen as visible). For some reason, updating the playwright version fixed this.
2024-04-18 11:49:46 -04:00
Michael Li 79f4c2bc5d test(e2e): Update credential library form behavior (#2207)
* test(e2e): Update credential library form behavior

* fix(e2e):  Fix some locators due to form updates
2024-03-28 15:05:57 -04:00
Michael Li b1085def48 test(e2e): Add check for playing back session recording (#2198) 2024-03-25 12:13:27 -04:00
Michael Li 499b0fde31 refact(e2e): Convert to match "create" helper convention (#2200) 2024-03-22 16:22:34 -04:00
Michael Li 6d88206491 refact(e2e): Update create helper methods (#2191) 2024-03-20 09:38:59 -04:00
Michael Li 45ad7a8f3b fix(e2e): Address flake in log in/log out test (#2189) 2024-03-19 16:52:30 -04:00
Michael Li 879c196887 refact(e2e): Move env outside of helper methods (#2186)
* refact(e2e): Move env outside of UI helper methods

* refact(e2e): Move env outside of CLI helpers
2024-03-18 15:53:39 -04:00
Michael Li 6b0958e4d8 test(e2e): Admin UI test fixes (#2182) 2024-03-14 14:17:54 -04:00
Michael Li 9d9a38510b test(e2e): Add test for SSH certification injection (#2170) 2024-03-07 17:05:45 -05:00
Michael Li d07c33ca41 test(e2e): Add test for SSH Credential Injection with Vault SSH Private Key (#2166) 2024-03-01 13:35:47 -05:00
Michael Li 1040a05880 test(e2e): Add LDAP Admin UI e2e test (#2164) 2024-02-29 16:51:32 -05:00
Michael Li 58a31b880b test(e2e): Add enterprise tests for creating TCP/SSH targets (#2158) 2024-02-26 12:59:34 -05:00
Michael Li e76cc2eeeb test(admin/e2e): Fix yarn scripts (#2111) 2024-01-25 15:49:09 -05:00
Michael Li 659067dd08 test(admin/e2e): Add tags to tests (#2046) 2023-12-20 15:06:38 -05:00
Michael Li 6328cc1fcf test(admin/e2e): Update tests to account for changes in 0.14.3 (#2033)
* test(admin/e2e): Modify password locators due to new Show Password button

* test(admin/e2e): Update breadcrumbs locators due to design updates

Previously, all breadcrumb items were links, but that is no longer the case for the active breadcrumb.
2023-12-07 11:42:04 -05:00
Michael Li 5b8fc06e21 test(admin/e2e): Update test timeout to 60s (#1955) 2023-10-17 13:06:21 -04:00
Michael Li 958b91264f test(admin/e2e): Fixes for Admin UI test suite (#1935)
* test(admin/e2e): Update locator for worker filter textbox

* test(admin/e2e): Update locator for the New button

* test(admin/e2e): Update locator for New link

* fixup! test(admin/e2e): Update locator for worker filter textbox
2023-10-02 10:07:37 -04:00
Michael Li 0c80f4ba40 test(admin/e2e): Rename variables for clarity (#1878) 2023-09-06 10:49:09 -04:00
Michael Li 735e124642 test(admin/e2e): Updates to the dynamic host catalog e2e test (#1830)
* test(admin/e2e): Return to the host list page

* test(admin/e2e): Remove unneeded second host set check
2023-08-09 12:16:45 -04:00
Michael Li 7eb6a101a2 chore: Add missing compliance headers (#1649) 2023-03-01 11:29:33 -05:00
Michael Li a0fe6c86f6 test(admin/e2e): Update DHC test to catch host issue (#1648) 2023-02-28 15:55:41 -05:00
Michael Li f5cb07248d test(admin/e2e): Add login tests (#1647) 2023-02-28 10:14:22 -05:00
Michael Li 2dc50570b7 test(admin/e2e): Add tests for Credential Stores (#1643) 2023-02-27 13:54:12 -05:00
Michael Li 1f3a8ef135 test(admin/e2e): Add test for AWS Dynamic Host Catalogs (#1641) 2023-02-24 13:59:30 -05:00
Michael Li 7816772ef2 test(admin/e2e): Add first playwright test (#1637)
Adds an end-to-end test for the Admin UI using Playwright. This test uses the Admin UI to create the necessary resources to connect to a target. The test then uses the CLI to start a session and checks in the Admin UI that a session is created
2023-02-23 18:30:51 -05:00