From a3b864698a3fedf4f466a10deb1343ee2e9dec18 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Sun, 22 May 2022 19:55:16 +0200 Subject: [PATCH] Update url-prompt.spec.js --- .../2-url-prompt/url-prompt.spec.js | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/cypress/integration/2-url-prompt/url-prompt.spec.js b/cypress/integration/2-url-prompt/url-prompt.spec.js index 82856e5..c701eb9 100644 --- a/cypress/integration/2-url-prompt/url-prompt.spec.js +++ b/cypress/integration/2-url-prompt/url-prompt.spec.js @@ -42,7 +42,7 @@ describe('URL prompts', () => { cy.previewOn(); - cy.get('.EasyMDEContainer .mde-editor-preview').should('contain.html', '

Link to a website!

'); + cy.get('.EasyMDEContainer .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 .mde-editor-preview').should( + cy.get('.EasyMDEContainer .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 .mde-editor-preview').should('contain.html', '

Link to a website!

'); + cy.get('.EasyMDEContainer .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 .mde-editor-preview').should('contain.html', '

Link to a website!

'); + cy.get('.EasyMDEContainer .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 .mde-editor-preview').should('contain.html', '

Link to a website!

'); + cy.get('.EasyMDEContainer .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 .mde-editor-preview').should('contain.html', '

Link to a website!

'); + cy.get('.EasyMDEContainer .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 .mde-editor-preview').should('contain.html', '

Link to a website!

'); + cy.get('.EasyMDEContainer .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 .mde-editor-preview').should('contain.html', '

Link to a website!

'); + cy.get('.EasyMDEContainer .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 .mde-editor-preview').should('contain.html', '

Link to a website!

'); + cy.get('.EasyMDEContainer .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 .mde-editor-preview').should('contain.html', '

Link to a 👌 website!

'); + cy.get('.EasyMDEContainer .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 .mde-editor-preview').should('contain.html', '

Link to a website!

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

Link to a website!

'); }); });