Skip to content

Commit cf8588a

Browse files
committed
fixup! fix: Smart picker/code block tests after changes
1 parent 962135f commit cf8588a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cypress/e2e/nodes/CodeBlock.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ describe('Front matter support', function() {
4545
// Remove language
4646
cy.getContent().find('.code-block').eq(1).find('.view-switch button').click()
4747
cy.get('.action-input__text-label').contains('Code block language')
48-
cy.get('.input-field__input').filter(':visible').clear({ force: true })
48+
cy.get('.input-field__input:visible').clear()
4949

5050
cy.getContent().find('code').eq(1).click()
5151

@@ -54,7 +54,7 @@ describe('Front matter support', function() {
5454
// Re-add language
5555
cy.getContent().find('.code-block').eq(1).find('.view-switch button').click()
5656
cy.get('.action-input__text-label').contains('Code block language')
57-
cy.get('.input-field__input').type('javascript')
57+
cy.get('.input-field__input:visible').type('javascript')
5858

5959
cy.getContent().find('code').eq(1).find('.hljs-keyword').eq(0).contains('const')
6060
cy.getContent().find('code').eq(1).find('.hljs-string').eq(0).contains('"bar"')

0 commit comments

Comments
 (0)