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:
@@ -126,6 +126,14 @@ create type public.subscription_item_type as ENUM(
|
||||
'metered'
|
||||
);
|
||||
|
||||
/*
|
||||
* Invitation Type
|
||||
- We create the invitation type for the Supabase MakerKit. These types are used to manage the type of the invitation
|
||||
*/
|
||||
create type public.invitation as (
|
||||
email text,
|
||||
role varchar( 50));
|
||||
|
||||
/*
|
||||
* -------------------------------------------------------
|
||||
* Section: App Configuration
|
||||
@@ -1949,13 +1957,9 @@ language plpgsql;
|
||||
grant execute on function public.get_account_invitations(text) to
|
||||
authenticated, service_role;
|
||||
|
||||
create type kit.invitation as (
|
||||
email text,
|
||||
role varchar( 50));
|
||||
|
||||
create or replace function
|
||||
public.add_invitations_to_account(account_slug text, invitations
|
||||
kit.invitation[])
|
||||
public.invitation[])
|
||||
returns public.invitations[]
|
||||
as $$
|
||||
declare
|
||||
@@ -1999,7 +2003,7 @@ $$
|
||||
language plpgsql;
|
||||
|
||||
grant execute on function public.add_invitations_to_account(text,
|
||||
kit.invitation[]) to authenticated, service_role;
|
||||
public.invitation[]) to authenticated, service_role;
|
||||
|
||||
-- Storage
|
||||
-- Account Image
|
||||
|
||||
Reference in New Issue
Block a user