Skip to content

Commit

Permalink
Test captial letters
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Oct 8, 2024
1 parent b04c568 commit 4323fa5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class="foo"
></div>

<div
data-wp-class--class-name-attribute&#61;&quot;foo&#32;bar&quot;="context.value"
data-wp-class--class-name-attribute&#61;&quot;&#70;&#79;&#79;&#32;bar&quot;="context.value"
data-testid="class name HTML entities"
></div>
</div>
2 changes: 1 addition & 1 deletion test/e2e/specs/interactivity/directive-class.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ test.describe( 'data-wp-class', () => {
} );

test( 'can use class name with HTML entities', async ( { page } ) => {
const expectedClassName = 'class-name-attribute="foo bar"';
const expectedClassName = 'class-name-attribute="FOO bar"';
const el = page.getByTestId( 'class name HTML entities' );
const toggle = page.getByTestId( 'toggle context value' );
await expect( el ).not.toHaveClass( expectedClassName );
Expand Down

0 comments on commit 4323fa5

Please sign in to comment.