diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-13 03:08:33 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-13 03:08:33 +0300 |
commit | 41038b07f78339fb0a02a6917dbeeabf19f47697 (patch) | |
tree | 9fa520e9ce8a56941fb9fb9880d1694afd42d615 /spec/frontend/groups | |
parent | 40a1569568e57bb93632d2ac048dbbf6c9bb9770 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/groups')
-rw-r--r-- | spec/frontend/groups/components/group_item_spec.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/frontend/groups/components/group_item_spec.js b/spec/frontend/groups/components/group_item_spec.js index 546cdd3cd6f..b1211e075bf 100644 --- a/spec/frontend/groups/components/group_item_spec.js +++ b/spec/frontend/groups/components/group_item_spec.js @@ -236,13 +236,13 @@ describe('GroupItemComponent', () => { describe('schema.org props', () => { describe('when showSchemaMarkup is disabled on the group', () => { it.each(['itemprop', 'itemtype', 'itemscope'], 'it does not set %s', (attr) => { - expect(wrapper.vm.$el.getAttribute(attr)).toBeNull(); + expect(wrapper.attributes(attr)).toBeUndefined(); }); it.each( ['.js-group-avatar', '.js-group-name', '.js-group-description'], 'it does not set `itemprop` on sub-nodes', (selector) => { - expect(wrapper.vm.$el.querySelector(selector).getAttribute('itemprop')).toBeNull(); + expect(wrapper.find(selector).attributes('itemprop')).toBeUndefined(); }, ); }); @@ -263,16 +263,16 @@ describe('GroupItemComponent', () => { ${'itemtype'} | ${'https://schema.org/Organization'} ${'itemprop'} | ${'subOrganization'} `('it does set correct $attr', ({ attr, value } = {}) => { - expect(wrapper.vm.$el.getAttribute(attr)).toBe(value); + expect(wrapper.attributes(attr)).toBe(value); }); it.each` selector | propValue - ${'[data-testid="group-avatar"]'} | ${'logo'} + ${'img'} | ${'logo'} ${'[data-testid="group-name"]'} | ${'name'} ${'[data-testid="group-description"]'} | ${'description'} `('it does set correct $selector', ({ selector, propValue } = {}) => { - expect(wrapper.vm.$el.querySelector(selector).getAttribute('itemprop')).toBe(propValue); + expect(wrapper.find(selector).attributes('itemprop')).toBe(propValue); }); }); }); |