New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cypress Setup for E2E testing #115
Conversation
# Conflicts: # package-lock.json # package.json
@@ -0,0 +1,14 @@ | |||
describe('Check if avatar migration works', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although the title implies we are testing if migration works, the test itself doesn't perform any migration.
I think we can change it to:
describe( 'Avatar migration', () => {} )
As the context for this test is migration of avatars.
And the test title can be set to:
it( 'Test no migration from WP User Avatar' );
cy.login(); | ||
}); | ||
|
||
it('Can admin upload, crop and select local avatar?', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we're not testing cropping in this test, it can be removed from the title.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
brilliant! 👍
Description of the Change
wp_get_original_image_path()
to support minimum WP version (i.e.4.6
) and instead usedget_attached_file
while clearing the avatar cache.Closes #111.
Alternate Designs
n/a
Possible Drawbacks
n/a
Verification Process
Make sure all tests added are running without fail.
Checklist:
Changelog Entry
Credits
Props @faisal-alvi @vikrampm1