You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Purpose:** When enabled, execution pauses on the first test failure and the app remains live in the browser exactly as it was at the point of failure — no teardown, no reload happens automatically. The paused state persists until you explicitly navigate away, so you can inspect the actual UI directly (without reloading) in the browser to see why it differs from what the test expected.
20
-
**Setup:** Add the following line to your test entry point (right before `Opa5.extendConfig`):
21
-
```javascript
22
-
// Inside the existing sap.ui.define callback in your test entry point
23
-
sap.ui.test.qunitPause.pauseRule="assert,timeout"; // enables pause on assertion failures and timeouts
24
-
// Opa5.extendConfig({...});
25
-
```
26
-
27
-
## Verification workflow
28
-
1. Enable the inspection tools above and load the test in the browser.
29
-
2. When the test pauses on failure, inspect the app first — verify the full causal chain with no gaps before changing any code. Rule out app-side issues before assuming the test is wrong.
30
-
3. Iterate on the test until all journeys pass.
31
-
4. Once all journeys pass, remove the `sap.ui.testrecorder` library from the app and the pause-on-failure rule `sap.ui.test.qunitPause.pauseRule`.
32
-
33
-
## Handle special cases
8
+
## Handle special cases (follow when planning and writing an OPA5 test)
34
9
-**Initial configuration for OPA5 test** → follow `references/configuration.md`
35
10
-**If the test-case spans multiple views** → follow `references/handle-multiple-views.md`
36
11
-**Teardown the app** → follow `references/handle-teardown.md`
12
+
13
+
## Set up browser inspection tools (follow every time **before running the OPA5 test**)
14
+
**Purpose:** Efficient inspection of test failures with minimal steps.
**Purpose:** When enabled, execution pauses on the first test failure and the app remains live in the browser exactly as it was at the point of failure — no teardown, no reload happens automatically. The paused state persists until you explicitly navigate away, so you can inspect the actual UI directly (without reloading) in the browser to see why it differs from what the test expected.
13
+
**Setup:** Add the following line to your test entry point (right before `Opa5.extendConfig`):
14
+
```javascript
15
+
// Inside the existing sap.ui.define callback in your test entry point
16
+
sap.ui.test.qunitPause.pauseRule="assert,timeout"; // enables pause on assertion failures and timeouts
17
+
// Opa5.extendConfig({...});
18
+
```
19
+
20
+
## Workflow
21
+
1. Enable the inspection tools above and load the test in the browser.
22
+
2. When the test pauses on failure, inspect the app in the browser — verify the full causal chain with no gaps before changing any code. Rule out app-side issues before assuming the test is wrong.
23
+
3. Iterate on the test until all journeys pass.
24
+
4. Once all journeys pass, remove the `sap.ui.testrecorder` library from the app and the pause-on-failure rule `sap.ui.test.qunitPause.pauseRule`.
0 commit comments