Commit 5ddc506c authored by Alexander Turinske's avatar Alexander Turinske Committed by David O'Regan

Clean up code

- simplify css logic
- update tests
parent fea3a2df
......@@ -193,12 +193,8 @@ export default {
<template>
<div
class="alert-assignees gl-py-5"
:class="{
'gl-border-b-1': !sidebarCollapsed,
'gl-border-b-solid': !sidebarCollapsed,
'gl-border-b-gray-100': !sidebarCollapsed,
}"
class="alert-assignees gl-py-5 gl-w-70p"
:class="{ 'gl-border-b-1 gl-border-b-solid gl-border-b-gray-100': !sidebarCollapsed }"
style="width: 70%"
>
<template v-if="sidebarCollapsed">
......
......@@ -66,12 +66,8 @@ export default {
<template>
<div
class="alert-status gl-py-5"
:class="{
'gl-border-b-1': !sidebarCollapsed,
'gl-border-b-solid': !sidebarCollapsed,
'gl-border-b-gray-100': !sidebarCollapsed,
}"
class="alert-status gl-py-5 gl-w-70p"
:class="{ 'gl-border-b-1 gl-border-b-solid gl-border-b-gray-100': !sidebarCollapsed }"
style="width: 70%"
>
<template v-if="sidebarCollapsed">
......
......@@ -31,8 +31,10 @@ describe('Alert Details Sidebar Assignees', () => {
},
];
const findAssigned = () => wrapper.findByTestId('assigned-users');
const findDropdown = () => wrapper.findComponent(GlDropdownItem);
const findSidebarIcon = () => wrapper.findByTestId('assignees-icon');
const findUnassigned = () => wrapper.findByTestId('unassigned-users');
function mountComponent({
data,
......@@ -77,9 +79,6 @@ describe('Alert Details Sidebar Assignees', () => {
mock.restore();
});
const findAssigned = () => wrapper.find('[data-testid="assigned-users"]');
const findUnassigned = () => wrapper.find('[data-testid="unassigned-users"]');
describe('sidebar expanded', () => {
const mockUpdatedMutationResult = {
data: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment