Skip to content

Commit 421a590

Browse files
committed
fix(cypress): remove unnecessary logging from uploadMediaFile and beforeEach hooks
1 parent ff008ee commit 421a590

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

cypress/e2e/common/media_library.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,12 @@ import {
1414
import { workflowStatus } from '../../utils/constants';
1515

1616
function uploadMediaFile() {
17-
console.log(`[${new Date().toISOString()}] 📤 uploadMediaFile() checking for no images`);
1817
assertNoImagesInLibrary();
1918

2019
const fixture = 'cypress/fixtures/media/netlify.png';
21-
console.log(`[${new Date().toISOString()}] 📤 uploadMediaFile() selecting file: ${fixture}`);
2220
cy.get('input[type="file"]').selectFile(fixture, { force: true });
23-
24-
console.log(`[${new Date().toISOString()}] 📤 uploadMediaFile() waiting for upload to complete`);
2521
cy.contains('span', 'Uploading...').should('not.exist');
2622

27-
console.log(`[${new Date().toISOString()}] 📤 uploadMediaFile() asserting images exist`);
2823
assertImagesInLibrary();
2924
}
3025

@@ -109,18 +104,14 @@ function assertGridEntryImage(entry) {
109104

110105
export default function({ entries, getUser }) {
111106
beforeEach(() => {
112-
console.log(`[${new Date().toISOString()}] 🧪 fixture beforeEach: About to call login()`);
113107
login(getUser && getUser());
114-
console.log(`[${new Date().toISOString()}] 🧪 fixture beforeEach: login() complete`);
115108
});
116109

117110
it('can upload image from global media library', () => {
118-
console.log(`[${new Date().toISOString()}] 🧪 TEST START: can upload image from global media library`);
119111
goToMediaLibrary();
120112
uploadMediaFile();
121113
matchImageSnapshot();
122114
closeMediaLibrary();
123-
console.log(`[${new Date().toISOString()}] 🧪 TEST COMPLETE: can upload image from global media library`);
124115
});
125116

126117
it('can delete image from global media library', () => {

0 commit comments

Comments
 (0)