Add data testing attributes and adapt tests for team account invitations

This commit adds data testing attributes to key elements in the team account invitations features. It also modifies e2e tests to make use of these attributes. Additionally, it introduces minor tweaks to other parts of the system to better facilitate testing, such as adjustments in timeouts and update of some log messages.
This commit is contained in:
giancarlo
2024-04-13 15:27:21 +08:00
parent 24e5c0debd
commit b6b9a9462f
15 changed files with 219 additions and 62 deletions

View File

@@ -188,7 +188,9 @@ export function AccountSelector({
>
{(accounts ?? []).map((account) => (
<CommandItem
data-test={'account-selector-team-' + account.value}
data-test={'account-selector-team'}
data-name={account.label}
data-slug={account.value}
className={'group'}
key={account.value}
value={account.value ?? ''}