fix(profile): open the mobile profile on the class driven last (1.42.3)
Passes and exercises only count the selected class, and the profile opened on the first registered one, so laps with another car never showed. It now opens on the class with the latest lap and offers a switch when today's latest laps are in another class.
This commit is contained in:
1 parent
3eb4b5f042
commit
ca88fd9ecc
9 files changed
+99
-4
No files matched your search
@@ -14,6 +14,7 @@ import { runPrologueSmoke } from "./browser_prologue.js";
|
||||
import { runPracticeResetSmoke } from "./browser_practice_reset.js";
|
||||
import { runSuspectLapsSmoke } from "./browser_suspect_laps.js";
|
||||
import { runOverlayDriverLinkSmoke } from "./browser_overlay_driver_link.js";
|
||||
import { runProfileClassSmoke } from "./browser_profile_class.js";
|
||||
import { runCorrectionsScopeSmoke } from "./browser_corrections_scope.js";
|
||||
import { runDriversPageSmoke } from "./browser_drivers_page.js";
|
||||
import { runSeriesSmoke } from "./browser_series.js";
|
||||
@@ -217,6 +218,7 @@ try {
|
||||
await evaluate('document.getElementById("publicTrainingRetry").click()');
|
||||
await waitFor(async () => await evaluate('document.getElementById("publicTrainingConnection")?.dataset.state === "current"'), "mobile retry recovered");
|
||||
console.log("PASS mobile offline status preserves profile nodes and retry recovers");
|
||||
await runProfileClassSmoke({ evaluate, savedState, waitFor, base, send });
|
||||
assert.deepEqual(errors, []);
|
||||
if (dialogs.length) console.log("NOTE auto-accepted native dialog(s):", JSON.stringify(dialogs));
|
||||
console.log("PASS offline save failure, local draft retention, retry and confirmed saved status");
|
||||
|
||||
Reference in new issue
Block a user