We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 597bd79 commit 56a5034Copy full SHA for 56a5034
1 file changed
testing/e2e/src/global/global.setup.spec.ts
@@ -1,6 +1,6 @@
1
import type { $LoginCredentials } from '@opendatacapture/schemas/auth';
2
3
-import { initAppOptions } from '../helpers/data';
+import { groups, initAppOptions } from '../helpers/data';
4
import { expect, test } from '../helpers/fixtures';
5
6
test.describe.serial(() => {
@@ -45,4 +45,18 @@ test.describe.serial(() => {
45
process.env.ADMIN_PASSWORD = password;
46
});
47
48
+
49
+ test.describe.serial('creating groups', () => {
50
+ test('creating groups', async ({ request }) => {
51
+ for (const key in groups) {
52
+ const response = await request.post('/api/v1/groups', {
53
+ data: groups[key as keyof typeof groups],
54
+ headers: {
55
+ Authorization: `Bearer ${process.env.ADMIN_ACCESS_TOKEN}`
56
+ }
57
+ });
58
+ expect(response.status()).toBe(201);
59
60
61
62
0 commit comments