-
Notifications
You must be signed in to change notification settings - Fork 6
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
QA-15348: Fixes for the condition property of json overrides #1323
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b278795
QA-15348 Fixes for the condition property of json overrides
r3dm1ke a389b00
Add extendMixin test for overrides
gflores-jahia c73593b
Make changes to failing tests
gflores-jahia c732541
Fix init for hidePreview test
gflores-jahia 0cb0246
Fix choicetree test
gflores-jahia a4f3e9b
Refactor login setup for search and areaActions
gflores-jahia 861d984
Fix test lint
gflores-jahia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
43 changes: 43 additions & 0 deletions
43
tests/cypress/e2e/contentEditor/jsonOverrides/extendMixins.cy.ts
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,43 @@ | ||
import {JContent} from '../../../page-object'; | ||
import {SmallTextField} from '../../../page-object/fields'; | ||
import {createSite, deleteSite, enableModule} from '@jahia/cypress'; | ||
|
||
// This test makes use of jmix_freezeSystemName.json form override from jcontent-test-module | ||
describe('Extend Mixins tests with CE', () => { | ||
const siteKey = 'extendMixinsSite'; | ||
|
||
before(() => { | ||
createSite(siteKey); | ||
enableModule('jcontent-test-module', siteKey); | ||
}); | ||
|
||
after(() => { | ||
cy.logout(); | ||
deleteSite(siteKey); | ||
}); | ||
|
||
beforeEach(() => { | ||
cy.loginAndStoreSession(); | ||
}); | ||
|
||
it('Applies extend mixin only if it is enabled on the node', () => { | ||
const jcontent = JContent.visit(siteKey, 'en', 'pages'); | ||
let contentEditor = jcontent.editPage(); | ||
const systemNameFieldSel = 'nt:base_ce:systemName'; | ||
|
||
cy.log('Verify conditional override is not applied'); | ||
let systemNameField = contentEditor.getField(SmallTextField, systemNameFieldSel); | ||
systemNameField.isNotReadOnly(); | ||
|
||
cy.log('Enable the mixin'); | ||
contentEditor.toggleOption('jmix:freezeSystemName'); | ||
contentEditor.save(); | ||
|
||
cy.log('Verify conditional override is applied after applying mixin'); | ||
contentEditor = jcontent.editPage(); | ||
systemNameField = contentEditor.getField(SmallTextField, systemNameFieldSel); | ||
systemNameField.isReadOnly(); | ||
|
||
contentEditor.cancel(); | ||
}); | ||
}); |
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
disabled for now as this is flaky even on nightly. Will create separate ticket.