diff --git a/e2e-tests/cypress/tests/integration/channels/files_and_attachments/youtube_video_spec.js b/e2e-tests/cypress/tests/integration/channels/files_and_attachments/youtube_video_spec.js index 58aa8eb086..db67be9600 100644 --- a/e2e-tests/cypress/tests/integration/channels/files_and_attachments/youtube_video_spec.js +++ b/e2e-tests/cypress/tests/integration/channels/files_and_attachments/youtube_video_spec.js @@ -37,7 +37,7 @@ describe('YouTube Video', () => { cy.get('.play-button', {timeout: TIMEOUTS.TEN_SEC}).click(); // * Video should be loaded in the iframe - cy.get('.video-div > iframe').should('exist'); + cy.get('.video-playing iframe').should('exist'); // # Collapse video cy.get('.post__embed-visibility').click(); @@ -52,7 +52,7 @@ describe('YouTube Video', () => { cy.get('.play-button').should('exist'); // * Video should not be played in the iframe - cy.get('.video-div > iframe').should('not.exist'); + cy.get('.video-playing iframe').should('not.exist'); }); }); }); diff --git a/webapp/channels/src/components/youtube_video/__snapshots__/youtube_video.test.tsx.snap b/webapp/channels/src/components/youtube_video/__snapshots__/youtube_video.test.tsx.snap index 4e5f490148..6f62daa7ae 100644 --- a/webapp/channels/src/components/youtube_video/__snapshots__/youtube_video.test.tsx.snap +++ b/webapp/channels/src/components/youtube_video/__snapshots__/youtube_video.test.tsx.snap @@ -63,41 +63,51 @@ exports[`YoutubeVideo should match init snapshot 1`] = `
-
youtube video thumbnail
- - - +