Skip to content

Commit f586ee1

Browse files
Filtering fixes
Signed-off-by: Lukasz Gryglicki <[email protected]> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot)
1 parent 55e9795 commit f586ee1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/functional/cypress/e2e/cla-group.cy.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ describe("To Validate 'GET, CREATE, UPDATE and DELETE' CLA groups API call on ch
240240
mode: 'both',
241241
},
242242

243-
// Update CLA group (using dummy ID which is well-formed but no body paramaters)
243+
// Update CLA group (using dummy ID which is well-formed but no body parameters)
244244
{
245245
method: 'PUT',
246246
url: `${claEndpoint}cla-group/${exampleClaGroupId}`,
@@ -456,7 +456,9 @@ describe("To Validate 'GET, CREATE, UPDATE and DELETE' CLA groups API call on ch
456456
},
457457
];
458458

459-
cy.wrap(requests).each((req: any) => {
459+
const effectiveMode = local ? 'local' : 'remote';
460+
const filtered = requests.filter((r) => r.mode === 'both' || r.mode === effectiveMode);
461+
cy.wrap(filtered).each((req: any) => {
460462
const { method, url, expectedStatus, expectedCode, expectedMsg, mode } = req;
461463
if ((mode === 'local' && !local) || (mode === 'remote' && local)) {
462464
return;

0 commit comments

Comments
 (0)