Skip to content

Commit

Permalink
chore(@clayui/color-picker): Tests updates selector to use uppercase …
Browse files Browse the repository at this point in the history
…letters
  • Loading branch information
pat270 committed Nov 8, 2022
1 parent b346183 commit a913781
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/clay-color-picker/src/__tests__/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ describe('Interactions', () => {
fireEvent.change(input, {target: {value: 'fff'}});
fireEvent.blur(input);

expect(input.value).toBe('ffffff');
expect(input.value).toBe('FFFFFF');
});

it('typing an invalid color in the input sets the input to an empty value', () => {
Expand Down Expand Up @@ -535,7 +535,7 @@ describe('Interactions', () => {

fireEvent.change(bInput, {target: {value: '200'}});

expect(input.value).toBe('c8c8c8');
expect(input.value).toBe('C8C8C8');

expect(
document.body.querySelector(
Expand Down Expand Up @@ -564,7 +564,7 @@ describe('Interactions', () => {

fireEvent.click(blankSplotch as HTMLButtonElement, {});

expect(input.value).toBe('dfcaff');
expect(input.value).toBe('DFCAFF');

const greenSplotch = (
document.body as HTMLButtonElement
Expand All @@ -576,7 +576,7 @@ describe('Interactions', () => {

const purpleSplotchs = (
document.body as HTMLButtonElement
).querySelectorAll('button[title="dfcaff"]');
).querySelectorAll('button[title="DFCAFF"]');

expect(purpleSplotchs.length).toBe(2);
});
Expand Down

0 comments on commit a913781

Please sign in to comment.