[go: nahoru, domu]

Skip to content

Commit

Permalink
ui: show menu in session details when there is recorded session
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo R.S. Joao <leonardo.joao@ossystems.com.br>
  • Loading branch information
leonardojoao authored and gustavosbarreto committed Feb 4, 2022
1 parent 89ec8b7 commit 06e1b34
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
1 change: 1 addition & 0 deletions ui/src/components/session/SessionDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
<v-spacer />

<v-menu
v-if="session.recorded"
ref="menu"
offset-y
>
Expand Down
2 changes: 1 addition & 1 deletion ui/tests/unit/components/session/SessionDetails.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ describe('SessionDetails', () => {

it('Renders the template with components', () => {
expect(wrapper.find('[data-test="sessionPlay-component"]').exists()).toBe(false);
expect(wrapper.find('[data-test="sessionClose-component"]').exists()).toBe(true);
expect(wrapper.find('[data-test="sessionClose-component"]').exists()).toBe(false);
expect(wrapper.find('[data-test="sessionDeleteRecord-component"]').exists()).toBe(false);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,7 @@ exports[`SessionDetails Recorded is false and device is offline Renders the comp
</v-toolbar-title-stub>
<v-spacer-stub tag="div"></v-spacer-stub>
<v-menu-stub opendelay="0" closedelay="0" openonclick="true" contentclass="" maxwidth="auto" nudgebottom="0" nudgeleft="0" nudgeright="0" nudgetop="0" nudgewidth="0" closeonclick="true" closeoncontentclick="true" maxheight="auto" offsety="true" origin="top left" transition="v-menu-transition">
<v-card-stub loaderheight="4" tag="div">
<!---->
<!---->
<!---->
</v-card-stub>
</v-menu-stub>
<!---->
</v-toolbar-stub>
<v-divider-stub></v-divider-stub>
<v-card-text-stub tag="div">
Expand Down Expand Up @@ -112,15 +106,7 @@ exports[`SessionDetails Recorded is false and device is online Renders the compo
39-5e-2a
</v-toolbar-title-stub>
<v-spacer-stub tag="div"></v-spacer-stub>
<v-menu-stub opendelay="0" closedelay="0" openonclick="true" contentclass="" maxwidth="auto" nudgebottom="0" nudgeleft="0" nudgeright="0" nudgetop="0" nudgewidth="0" closeonclick="true" closeoncontentclick="true" maxheight="auto" offsety="true" origin="top left" transition="v-menu-transition">
<v-card-stub loaderheight="4" tag="div">
<!---->
<v-list-item-stub activeclass="" tag="div">
<sessionclose-stub uid="8c354a00" device="a582b47a" data-test="sessionClose-component"></sessionclose-stub>
</v-list-item-stub>
<!---->
</v-card-stub>
</v-menu-stub>
<!---->
</v-toolbar-stub>
<v-divider-stub></v-divider-stub>
<v-card-text-stub tag="div">
Expand Down

0 comments on commit 06e1b34

Please sign in to comment.