Skip to content
代码片段 群组 项目
提交 2e2b1b56 编辑于 作者: Jose Ivan Vargas's avatar Jose Ivan Vargas
浏览文件

Merge branch '428638-vue3-migration-enumerated-coercion-3' into 'master'

Fix ATTR_ENUMERATED_COERCION for contenteditable

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/138493



Merged-by: default avatarJose Ivan Vargas <jvargas@gitlab.com>
Approved-by: default avatarEduardo Bonet <ebonet@gitlab.com>
Approved-by: default avatarJose Ivan Vargas <jvargas@gitlab.com>
Co-authored-by: default avatarArtur Fedorov <afedorov@gitlab.com>
No related branches found
No related tags found
无相关合并请求
......@@ -112,6 +112,8 @@ describe('DiffRow', () => {
});
const getCommentButton = (side) => wrapper.find(`[data-testid="${side}-comment-button"]`);
const findRightCommentButton = () => wrapper.find('[data-testid="right-comment-button"]');
const findLeftCommentButton = () => wrapper.find('[data-testid="left-comment-button"]');
describe.each`
side
......@@ -135,6 +137,10 @@ describe('DiffRow', () => {
it('renders', () => {
wrapper = createWrapper({ props: { line, inline: false } });
expect(findRightCommentButton().attributes('draggable')).toBe('true');
expect(findLeftCommentButton().attributes('draggable')).toBe(
side === 'left' ? 'true' : 'false',
);
expect(getCommentButton(side).exists()).toBe(true);
});
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册