mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-28 10:49:48 -05:00
remove unused logic from test
This commit is contained in:
+1
-3
@@ -1165,8 +1165,6 @@ describe('src/cy/commands/actions/type - #type special chars', () => {
|
||||
it('inserts new line into [contenteditable] ', () => {
|
||||
cy.get('#input-types [contenteditable]:first').invoke('text', 'foo')
|
||||
.type('bar{enter}baz{enter}{enter}{enter}quux').then(function ($div) {
|
||||
const conditionalNewLines = '\n\n'
|
||||
|
||||
if (Cypress.isBrowser('firefox')) {
|
||||
expect(trimInnerText($div)).to.eql(`foobar\nbaz\n\n\nquux`)
|
||||
expect($div.get(0).textContent).to.eql('foobarbazquux')
|
||||
@@ -1174,7 +1172,7 @@ describe('src/cy/commands/actions/type - #type special chars', () => {
|
||||
return
|
||||
}
|
||||
|
||||
expect(trimInnerText($div)).to.equal(`foobar\nbaz${conditionalNewLines}\nquux`)
|
||||
expect(trimInnerText($div)).to.equal(`foobar\nbaz\nquux`)
|
||||
expect($div.get(0).textContent).to.equal('foobarbazquux')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user