Skip to content

Commit 7bec121

Browse files
committedJan 31, 2025
test: Add failing test
1 parent 98179a4 commit 7bec121

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

Diff for: ‎packages/e2e/shared/specs/conditional-rendering.cy.ts

+9
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,14 @@ export const testConditionalRendering = createTest(
1818
cy.get('button#mount').click()
1919
cy.get('#state').should('have.text', 'pass')
2020
})
21+
it('should keep the correct state after unmounting and remounting with a different state', () => {
22+
cy.visit(path + '?test=init')
23+
cy.contains('#hydration-marker', 'hydrated').should('be.hidden')
24+
cy.get('button#mount').click()
25+
cy.get('button#set').click()
26+
cy.get('button#unmount').click()
27+
cy.get('button#mount').click()
28+
cy.get('#state').should('have.text', 'pass')
29+
})
2130
}
2231
)

0 commit comments

Comments
 (0)
Failed to load comments.