-
Notifications
You must be signed in to change notification settings - Fork 86
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
fix media metadata editor changes not being saved #4572
fix media metadata editor changes not being saved #4572
Conversation
it was calling authoring editor instances to generate html which then overwrote any changes done in modal. SDESK-7304
2ad6639
to
03f7abe
Compare
scripts/apps/authoring/authoring/directives/AuthoringDirective.ts
Outdated
Show resolved
Hide resolved
scripts/apps/authoring/authoring/directives/AuthoringDirective.ts
Outdated
Show resolved
Hide resolved
scripts/apps/authoring/authoring/directives/ArticleEditDirective.ts
Outdated
Show resolved
Hide resolved
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.
Check out unresolved comments. I did resolve the ones you addressed.
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.
Can you check the remaining unresolved comments?
|
||
async saveMetadata(): Promise<void> { | ||
await this.page.locator(s('media-editor', 'apply-metadata-button')).click(); | ||
await this.page.locator(s('change-image', 'done')).click(); |
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.
is change-image
image selector still inside "media-editor"? If it is, it'd be good to scope it:
await this.page.locator(s('media-editor', 'change-image', 'done')).click();
The reason being not uniqueness, but documentation - ability to quickly understand the hierarchy without having to look it up inside dev tools.
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.
those are on the same level
* fix media metadata editor changes not being saved it was calling authoring editor instances to generate html which then overwrote any changes done in modal. SDESK-7304 * trigger actions * add test from authoring to modal * trigger autosave when opening modal * only trigger autosave if dirty * fix protractor * fix failing protractor tests * handle feedback * docs * create picture authoring object * tweak test
it was calling authoring editor instances to generate html which then overwrote any changes done in modal.
SDESK-7304