Skip to content

Commit

Permalink
Tests: Stabilized a ViewNodeInspector test.
Browse files Browse the repository at this point in the history
  • Loading branch information
oleq committed Sep 20, 2019
1 parent eb9fa75 commit ae6e773
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions tests/inspector/components/view/nodeinspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,15 @@ describe( '<ViewNodeInspector />', () => {
const lists = inspector.props().lists;

expect( lists[ 0 ].name ).to.equal( 'Attributes' );
expect( lists[ 0 ].items ).to.deep.equal( [
[ 'aria-label', '"Rich Text Editor, main"' ],
[ 'lang', '"en"' ],
[ 'dir', '"ltr"' ],
[ 'role', '"textbox"' ],
[ 'contenteditable', '"true"' ],
[ 'class', '"ck-blurred ck ck-content ck-editor__editable ck-rounded-corners ck-editor__editable_inline"' ],
] );
expect( lists[ 0 ].items.sort( ( itemA, itemB ) => itemA[ 0 ] > itemB[ 0 ] ? 1 : -1 ) )
.to.deep.equal( [
[ 'aria-label', '"Rich Text Editor, main"' ],
[ 'class', '"ck-blurred ck ck-content ck-editor__editable ck-rounded-corners ck-editor__editable_inline"' ],
[ 'contenteditable', '"true"' ],
[ 'dir', '"ltr"' ],
[ 'lang', '"en"' ],
[ 'role', '"textbox"' ]
] );

expect( lists[ 1 ].name ).to.equal( 'Properties' );
expect( lists[ 1 ].items ).to.deep.equal( [
Expand Down

0 comments on commit ae6e773

Please sign in to comment.