diff --git a/cypress/integration/2-url-prompt/url-prompt.spec.js b/cypress/integration/2-url-prompt/url-prompt.spec.js index 4c179ad..82856e5 100644 --- a/cypress/integration/2-url-prompt/url-prompt.spec.js +++ b/cypress/integration/2-url-prompt/url-prompt.spec.js @@ -23,7 +23,7 @@ describe('URL prompts', () => { cy.window().then(($win) => { const stub = cy.stub($win, 'prompt'); - cy.get('button.image').click().then(() => { + cy.get('button.mde-image').click().then(() => { expect(stub).to.be.calledWith('URL of the image:', 'https://'); }); }); @@ -42,7 +42,7 @@ describe('URL prompts', () => { cy.previewOn(); - cy.get('.EasyMDEContainer .editor-preview').should('contain.html', '

Link to a website!

'); + cy.get('.EasyMDEContainer .mde-editor-preview').should('contain.html', '

Link to a website!

'); }); it('can use the prompt multiple times', () => { @@ -76,7 +76,7 @@ describe('URL prompts', () => { cy.previewOn(); - cy.get('.EasyMDEContainer .editor-preview').should( + cy.get('.EasyMDEContainer .mde-editor-preview').should( 'contain.html', '

Link to a website!
Link to a second website!

', ); @@ -95,7 +95,7 @@ describe('URL prompts', () => { cy.previewOn(); - cy.get('.EasyMDEContainer .editor-preview').should('contain.html', '

Link to a website!

'); + cy.get('.EasyMDEContainer .mde-editor-preview').should('contain.html', '

Link to a website!

'); }); it('must be able to deal with brackets in links', () => { @@ -111,7 +111,7 @@ describe('URL prompts', () => { cy.previewOn(); - cy.get('.EasyMDEContainer .editor-preview').should('contain.html', '

Link to a website!

'); + cy.get('.EasyMDEContainer .mde-editor-preview').should('contain.html', '

Link to a website!

'); }); it('must be able to deal with parentheses in links', () => { @@ -127,7 +127,7 @@ describe('URL prompts', () => { cy.previewOn(); - cy.get('.EasyMDEContainer .editor-preview').should('contain.html', '

Link to a website!

'); + cy.get('.EasyMDEContainer .mde-editor-preview').should('contain.html', '

Link to a website!

'); }); it('must be able to deal with parentheses in links (multiple)', () => { @@ -143,7 +143,7 @@ describe('URL prompts', () => { cy.previewOn(); - cy.get('.EasyMDEContainer .editor-preview').should('contain.html', '

Link to a website!

'); + cy.get('.EasyMDEContainer .mde-editor-preview').should('contain.html', '

Link to a website!

'); }); it('must be able to deal with unbalanced parentheses in links (opening)', () => { @@ -159,7 +159,7 @@ describe('URL prompts', () => { cy.previewOn(); - cy.get('.EasyMDEContainer .editor-preview').should('contain.html', '

Link to a website!

'); + cy.get('.EasyMDEContainer .mde-editor-preview').should('contain.html', '

Link to a website!

'); }); it('must be able to deal with unbalanced parentheses in links (closing)', () => { @@ -175,7 +175,7 @@ describe('URL prompts', () => { cy.previewOn(); - cy.get('.EasyMDEContainer .editor-preview').should('contain.html', '

Link to a website!

'); + cy.get('.EasyMDEContainer .mde-editor-preview').should('contain.html', '

Link to a website!

'); }); it('must be able to deal with inequality symbols in links', () => { @@ -191,7 +191,7 @@ describe('URL prompts', () => { cy.previewOn(); - cy.get('.EasyMDEContainer .editor-preview').should('contain.html', '

Link to a website!

'); + cy.get('.EasyMDEContainer .mde-editor-preview').should('contain.html', '

Link to a website!

'); }); it('must be able to deal with emoji in links', () => { @@ -207,7 +207,7 @@ describe('URL prompts', () => { cy.previewOn(); - cy.get('.EasyMDEContainer .editor-preview').should('contain.html', '

Link to a 👌 website!

'); + cy.get('.EasyMDEContainer .mde-editor-preview').should('contain.html', '

Link to a 👌 website!

'); }); it('must be able to deal with spaces in links', () => { @@ -223,6 +223,6 @@ describe('URL prompts', () => { cy.previewOn(); - cy.get('.EasyMDEContainer .editor-preview').should('contain.html', '

Link to a website!

'); + cy.get('.EasyMDEContainer .mde-editor-preview').should('contain.html', '

Link to a website!

'); }); });