fix css for finding markdown elements
@@ -46,7 +46,8 @@ Cypress.Commands.add('compute', () => {
})
Cypress.Commands.add('textMatch', (label, length, result) => {
- let text = cy.get(`.stMarkdown p:contains(${label})`).should("have.length", length)
+ // From https://github.com/streamlit/streamlit/blob/a03d3b9ae3c43a63b149dd590f8f6cf17ec917dd/e2e/specs/st_markdown.spec.js#L24
+ let text = cy.get(`.element-container .stMarkdown p:contains(${label})`).should("have.length", length)
if (result !== null) {
text.find('code').each(($el) => {
return cy.wrap($el).should("have.text", result)
