Commit efdd6b9
* fix(e2e): handle other catalog sources when verifying disable in testSourceEnableDisable
* fix(e2e): serialize catalog source toggles and handle remaining source
* fix(bff): add retry logic for configmap conflicts on catalog source update
* Revert "fix(bff): add retry logic for configmap conflicts on catalog source update"
This reverts commit 97d2a3d33ab7495ca90ff22b60d8ad76dc2495b6.
* fix(e2e): ensure catalog sources are enabled before testSourceEnableDisable runs
* fix(e2e): improve catalog source toggle reliability with API waits and correct configmap precedence
* fix(e2e): handle other catalog sources when verifying disable behavior
Revert unnecessary changes (switch selector, intercept serialization,
retryableBefore setup, configmap precedence, types cleanup) and keep
only the fix for environments with additional catalog sources: use
waitForModelCatalogAfterDisable to detect whether to expect cards or
empty state after disabling the test sources.
Made-with: Cursor
* fix(e2e): serialize toggle clicks and ensure sources enabled on retry
Two fixes for testSourceEnableDisable reliability:
1. Serialize disable toggles: verify each source is disabled in the
configmap before clicking the next toggle. Back-to-back clicks
cause a PATCH race condition in the BFF, leaving the second source
still enabled and the catalog never reaching empty state.
2. Ensure sources are enabled in retryableBefore: on test retry, the
sources may still be disabled from the previous run. Enable and
verify both sources before the test starts.
Made-with: Cursor
* fix(e2e): disable 'Other' catalog source in testSourceEnableDisable
The test was timing out because only two of three default sources
(redhat_ai_models, redhat_ai_validated_models) were being disabled.
The third default source (other_models) remained enabled, preventing
the empty state from appearing in the catalog.
Made-with: Cursor
* fix(e2e): enable and verify Other source in retryableBefore setup
Add redhatAiSourceId3 (other_models) to retryableBefore so all three
sources are enabled and verified before the test runs, matching the
after() teardown. Addresses review comments from FedeAlonso and
ConorOM1.
Made-with: Cursor
---------
Co-authored-by: Conor O'Malley <97108400+ConorOM1@users.noreply.github.com>
1 parent 202ecd4 commit efdd6b9
4 files changed
Lines changed: 95 additions & 8 deletions
File tree
- packages/cypress/cypress
- fixtures/e2e/modelCatalog
- tests/e2e/modelCatalog
- utils/oc_commands
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
Lines changed: 27 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
22 | 30 | | |
23 | 31 | | |
24 | 32 | | |
25 | 33 | | |
26 | 34 | | |
27 | 35 | | |
28 | 36 | | |
| 37 | + | |
29 | 38 | | |
30 | 39 | | |
31 | 40 | | |
| |||
56 | 65 | | |
57 | 66 | | |
58 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
59 | 71 | | |
60 | 72 | | |
61 | 73 | | |
62 | | - | |
63 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
64 | 82 | | |
65 | 83 | | |
66 | 84 | | |
67 | 85 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
73 | 92 | | |
74 | 93 | | |
75 | 94 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
611 | 611 | | |
612 | 612 | | |
613 | 613 | | |
| 614 | + | |
| 615 | + | |
614 | 616 | | |
615 | 617 | | |
616 | 618 | | |
| |||
Lines changed: 64 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
421 | 422 | | |
422 | 423 | | |
423 | 424 | | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
424 | 488 | | |
425 | 489 | | |
426 | 490 | | |
| |||
0 commit comments