diff --git a/app/views/chord_sheets/_main.html.slim b/app/views/chord_sheets/_main.html.slim index ecea000..c4dda22 100644 --- a/app/views/chord_sheets/_main.html.slim +++ b/app/views/chord_sheets/_main.html.slim @@ -21,7 +21,7 @@ turbo-frame[id=dom_id(chord_sheet) data-controller="clipboard chord-diagram moda span.icon i.fas.fa-arrow-circle-down - .level-right.align-items-space-between + .level-right.align-items-space-between#level-right[data-turbo-permanent] .level-item.mt-2 data-chord-diagram-target="wrapper" = render("chord_diagram_icon") .hidden#diagram-select data-chord-diagram-target="selectBox" diff --git a/spec/cypress/e2e/chord_sheets.cy.js b/spec/cypress/e2e/chord_sheets.cy.js index de2f88c..4acfbf2 100644 --- a/spec/cypress/e2e/chord_sheets.cy.js +++ b/spec/cypress/e2e/chord_sheets.cy.js @@ -120,6 +120,13 @@ describe("Undoing changes", () => { cy.get("#versions").click() cy.contains("My amazing song") + + cy.get(".modal-close").click() + cy.get("#transpose-up").click() // even after transposing + + cy.get("#versions").click() + + cy.contains("My amazing song") }) it("allows the user to restore a previous version", () => {