e497eccfb431be6af38d22c5bc2bb0e745c89b2d braney Sat Sep 5 09:22:17 2026 -0700 docent: eight more regression scripts, one per fixed bug rm35580 "Show <alt> placed on its chromosome" errored on the window rm36061 DECIPHER SNVs details missing after a quickLift rm36335 a quickLifted GIAB item click printed a garbled "can't port" rm36340 a search-result click carried the source coordinate rm37491 hgConvert named subtracks the user never showed as not liftable rm37562 a stale lastPosition banner on the lifted search-results page rm37615 a quickLifted bigBed tooltip reported pre-lift coordinates rm37785 a squishyPack track stole a neighbouring track's center label Each asserts the behavior its ticket says is correct, on genome-test, and names in noText:/noUrl: the exact string the buggy build produced rather than a generic "Error". Where the last page has no track image the noText: is paired with a positive text: or url: check, because a bare noText: passes just as happily on a blank page or an early error. Four things found writing these, all of them recorded in the scripts: A ticket's stated position and its stated item can disagree. #36061 says to go to chr7:156,982,676-156,996,015 and click item 517898; that item is at chr7:155,803,191, and decipherSnvs draws nothing at all in the ticket's window. hideKids cannot express "the user deselected this subtrack". It writes a <track>=hide cart variable, and isSubtrackVisible() (hg/lib/trackHub.c) begins with overrideComposite = (NULL != cartOptionalString(cart, tdb->track)) and then forces enabled = TRUE, so the sibling counts as visible to hgConvert and lands back in the "failed to lift" warning. A first rm37491 failed on exactly that and looked like the bug being back. A deselected subtrack is <track>_sel=0 with no visibility variable, which is what hgTrackUi's checkbox writes and what the goto: in that script sets. #37615's fix is not the one the plan for this suite described. The first commit appended a note saying the coordinates came from the source assembly; the second replaced it with the real fix, which puts the TARGET coordinates in the tooltip. A test for the note would fail. decipherSnvs (SNVs) and decipher (CNVs) are two different members of the superTrack decipherContainer, and the row that turns up when the SNVs track draws nothing is the CNVs one, which reads like the same track under a shorter id. refs #38252 diff --git src/hg/utils/docent/tests/regress/rm36061.docent.yaml src/hg/utils/docent/tests/regress/rm36061.docent.yaml new file mode 100644 index 00000000000..51a945fa18f --- /dev/null +++ src/hg/utils/docent/tests/regress/rm36061.docent.yaml @@ -0,0 +1,46 @@ +# #36061 -- the DECIPHER SNVs details page came up missing its details after a quickLift. +# +# Gerardo's steps from the ticket: hg38, hide all, DECIPHER to show, QuickLift to hs1, and +# click the 517898 item in the DECIPHER SNV track. The lifted details page came back +# without the fields the native one shows. +# +# The ticket's position, chr7:156,982,676-156,996,015, is the window every quickLift ticket +# quotes, and item 517898 is not in it: it is at chr7:155,803,191-155,803,192, and +# decipherSnvs draws nothing at all in the ticket's window. Following the ticket literally +# gave "item 517898 not found ... 8 map box(es) in that row, addressable as: mergedItem, +# ... 314209" -- those belong to decipherSnvs' sibling. So the window here is the one that +# actually holds the item the ticket names. +# +# Two names are in play and only one of them is a row. decipherSnvs and decipher are +# DIFFERENT tracks (SNVs and CNVs) under decipherContainer, which is a superTrack -- so it +# does not pass its setting down, and its other members come up at their own trackDb +# visibility however much the hide: all hid. The row to assert is decipherSnvs; `decipher` +# turning up instead of it is the sign that the SNVs track drew nothing. +target: genome-test +db: hg38 +position: chr7:155800000-155806000 +reset: true +fast: true +steps: + - go: chr7:155800000-155806000 + - hide: all + - track: {decipherContainer: show, decipherSnvs: pack} + - expect: {rows: [decipherSnvs], noText: "Warning/Error"} + + - convert: {to: hs1, quicklift: true} + - open: lift + - expect: {rows: [decipherSnvs], noText: "Warning/Error"} + + - click: {track: decipherSnvs, item: "517898"} + + # The details themselves, not just the item's name -- "missing details" was the whole + # report, and the name alone is on the page even when every field below it is gone. + # These five are what the native hgc page prints for patient 517898, read off it rather + # than guessed. + - expect: + text: "Ref Allele: A" + noText: "Warning/Error" + - expect: {text: "Alt Allele: G"} + - expect: {text: "Transcript: ENST00000297261"} + - expect: {text: "Genotype: Heterozygous"} + - expect: {text: "Inheritance: Paternally inherited"}