Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmotyczynska committed Nov 9, 2023
1 parent c965469 commit 8593a19
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions tests/_util/githubpage.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ export const GitHubPage = {
root.classList.add( 'js-blob-form' );
root.querySelector( 'textarea' ).setAttribute( 'data-codemirror-mode', 'text/x-gfm' );

root.querySelector( '.previewable-comment-form > file-attachment' ).classList.add( 'commit-create' );
root.querySelector( '.previewable-comment-form > .preview-content' ).classList.add( 'commit-preview' );
root.querySelector( '.js-previewable-comment-form > file-attachment' ).classList.add( 'commit-create' );
root.querySelector( '.js-previewable-comment-form > .preview-content' ).classList.add( 'commit-preview' );

root.querySelector( 'markdown-toolbar' ).remove();
root.querySelector( '.tabnav-tabs' ).remove();
Expand Down
4 changes: 2 additions & 2 deletions tests/_util/html/root.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
-->

<!--suppress ALL -->
<form action="/server" accept-charset="UTF-8" method="post" class="previewable-comment-form">
<tab-container class="previewable-comment-form" data-preview-url="/preview">
<form action="/server" accept-charset="UTF-8" method="post" class="js-previewable-comment-form">
<tab-container class="js-previewable-comment-form" data-preview-url="/preview">
<file-attachment data-upload-repository-id="1234" data-upload-policy-url="/upload/policies/assets">
<textarea required></textarea>
</file-attachment>
Expand Down
8 changes: 4 additions & 4 deletions tests/compat/issue-new.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ describe( 'Issue - New', function() {
'toolbar': root + ' markdown-toolbar',
'textarea': root + ' textarea',
'tab -> write': root + ' .write-tab',
'panels container': root + ' .previewable-comment-form',
'panel -> markdown': root + ' .previewable-comment-form > file-attachment',
'panels container': root + ' .js-previewable-comment-form',
'panel -> markdown': root + ' .js-previewable-comment-form > file-attachment',
'panel -> preview':
root + ' .previewable-comment-form > .js-preview-panel, ' +
root + ' .previewable-comment-form > .preview-content',
root + ' .js-previewable-comment-form > .js-preview-panel, ' +
root + ' .js-previewable-comment-form > .preview-content',
'buttons -> submit':
root + ' input[type=submit].btn-primary,' +
root + ' button[type=submit].btn-primary',
Expand Down

0 comments on commit 8593a19

Please sign in to comment.