-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from bigbite/feature/delete-release-note
[4] Version control change after release note deletion
- Loading branch information
Showing
3 changed files
with
103 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/// <reference types="cypress" /> | ||
|
||
describe('release notes version control', () => { | ||
before(() => { | ||
cy.visit('/wp-admin/edit.php?post_type=release-note'); | ||
}); | ||
|
||
it('should change the version accordingly after a release note has been deleted', () => { | ||
//asserts that the version number is the current version | ||
cy.get('#wpadminbar').within(() => { | ||
cy.get('#wp-admin-bar-release-note-version > a').should('contain', 'Version 1.6.0'); | ||
}) | ||
//deletes the current release note in the post list | ||
cy.get('#the-list').within(() => { | ||
cy.get('#post-5 .row-actions').invoke('attr', 'style', 'position: static').find('.submitdelete').click(); | ||
cy.visit('/wp-admin/edit.php?post_type=release-note'); | ||
cy.get('tr').should('have.length', 1); | ||
}); | ||
//asserts that the version number has changed to the previous release note version | ||
cy.get('#wpadminbar').within(() => { | ||
cy.get('#wp-admin-bar-release-note-version > a').should('contain', 'Version 1.5.0'); | ||
}) }); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
"watch:dev:all": "webpack --mode=development --watch --env=\"all-projects\"", | ||
"watch:prod": "webpack --mode=production --watch --env=\"project=$npm_config_project\"", | ||
"watch:prod:all": "webpack --mode=production --watch --env=\"all-projects\"", | ||
"test:e2e": "wp-cypress start" | ||
"test:e2e": "wp-cypress stop && wp-cypress start && cypress open" | ||
}, | ||
"dependencies": { | ||
"@bigbite/build-tools": "git+ssh://[email protected]:bigbite/build-tools.git#1.0.0-beta.6", | ||
|