@checksum-ai/runtime 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -113,6 +113,21 @@ export type RuntimeOptions = {
113
113
  autoHealPRs?: boolean;
114
114
  };
115
115
 
116
+ type ChecksumConfigEnvironment = {
117
+ name: string;
118
+ users?: EnvironmentUser[];
119
+ baseURL: string;
120
+ loginURL?: string;
121
+ default?: boolean;
122
+ };
123
+
124
+ type EnvironmentUser = {
125
+ role: string;
126
+ username?: string;
127
+ password?: string;
128
+ default?: boolean;
129
+ };
130
+
116
131
  export type ChecksumConfig = {
117
132
  /**
118
133
  * Checksum runtime running mode -
@@ -144,12 +159,12 @@ export type ChecksumConfig = {
144
159
  /**
145
160
  * The credentials of the users that will be used to login into your testing environment
146
161
  */
147
- users?: {
148
- role: string;
149
- username?: string;
150
- password?: string;
151
- default?: boolean;
152
- }[];
162
+ users?: EnvironmentUser[];
163
+
164
+ /**
165
+ * The environments that are available to be used within your testing suite
166
+ */
167
+ environments?: ChecksumConfigEnvironment[];
153
168
 
154
169
  /**
155
170
  * Checksum runtime options
@@ -159,7 +174,7 @@ export type ChecksumConfig = {
159
174
 
160
175
  export function getLogin(): (
161
176
  page: Page,
162
- { role }: { role?: string } = {}
177
+ { role, environment }?: { role?: string; environment?: string }
163
178
  ) => Promise<void>;
164
179
 
165
180
  export function getChecksumConfig(