Skip to content

Commit

Permalink
test: remove test for overriding previous guids
Browse files Browse the repository at this point in the history
  • Loading branch information
nilshah98 committed Dec 2, 2023
1 parent 8ef8679 commit dbbdb79
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions packages/dom/test/serialize-inputs.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,19 +126,11 @@ describe('serializeInputs', () => {
expect(dom.querySelectorAll('[data-percy-element-id]')).toHaveSize(platform === 'plain' ? 10 : 9);
});

fit(`${platform}: adds matching guids to the orignal DOM and cloned DOM`, () => {
it(`${platform}: adds matching guids to the orignal DOM and cloned DOM`, () => {
let og = dom.querySelector('[data-percy-element-id]').getAttribute('data-percy-element-id');
expect(og).toEqual($('[data-percy-element-id]')[0].getAttribute('data-percy-element-id'));
});

it(`${platform}: does not override previous guids when reserializing`, () => {
let getUid = () => dom.querySelector('[data-percy-element-id]').getAttribute('data-percy-element-id');
let first = getUid();

serializeDOM();
expect(getUid()).toEqual(first);
});

it(`${platform}: does not mutate values in origial DOM`, () => {
expect($('#name')[0].getAttribute('value')).toBe('Bob Boberson');
expect(dom.querySelector('#name').getAttribute('value')).toBeNull();
Expand Down

0 comments on commit dbbdb79

Please sign in to comment.