-
Notifications
You must be signed in to change notification settings - Fork 0
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
[4] Version control change after release note deletion #13
Conversation
…hanged the name of the file to be more specific to the current release note as the new assertion should only occur when the most recent release note is delete
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.
I'm unsure how much value this test adds for us, as it's testing core WP behaviour of deleting a post. We might want to re-think what we're trying to do here.
Based on the assertion against the toolbar version number, perhaps a test to ensure this reflects the most recent release note version number would be more suitable?
I thought the same to fair, but I was trying to think of tests to write and its always good to cover CRUD I suppose. The assertion is suppose to be checking against the most recent release so I thought it was OK, but I'll check it again. |
Fair point, I wouldn't be dead set against including this if you want to continue with it |
I'd like to keep it, but it does need some refactoring. I think the assertion isn't great, as I'd like it assert that the version number has changed to the previous release note but at the moment there is no way to check that from the post list screen, so will need revisiting in the future. |
No worries. If you're planning to refactor please convert the PR to draft and we can re-visit reviewing it when ready. |
Can I get it merged into main before I refactor it, as I have a feeling some other tests on the main branch might impact how I refactor it. |
…han the deletion of a version
I've changed the test as per our conversation yesterday and resolved the conflict |
Cool! I think that since we're actually testing the toolbar version number displays correctly, and not really whether or not you are able to delete a post, that means the PR info should be updated and code-wise the test descriptions and filename will need to change too. |
…assertion is only finding one element
Updated necessary details as per previous comment. |
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.
Description
Test for #4 - Created a test that verifies the version number in the admin bar changes accordingly after the current release note has been deleted from the post list screen.
Change Log
test:e2e
script to include a complete stop of the container and to open Cypress without additional commands needing to be run in the terminalSteps to test
Checkout to the branch
run
npm run test:e2e
to start up the docker container and open CypressChoose End to End testing
Run
release notes version control
testScreenshots/Videos
Successful run of the test - http://bigbite.im/v/wYjf6I
Checklist: