1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

F #5422: add data-cy for tests guacamole (#1951)

This commit is contained in:
Jorge Miguel Lobo Escalona 2022-04-19 10:13:56 +02:00 committed by Ruben S. Montero
parent b6421dff85
commit be64a54920
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87
3 changed files with 6 additions and 18 deletions

View File

@ -1,18 +1,3 @@
/* ------------------------------------------------------------------------- *
* Copyright 2002-2022, OpenNebula Project, OpenNebula Systems *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); you may *
* not use this file except in compliance with the License. You may obtain *
* a copy of the License at *
* *
* http://www.apache.org/licenses/LICENSE-2.0 *
* *
* Unless required by applicable law or agreed to in writing, software *
* distributed under the License is distributed on an "AS IS" BASIS, *
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
* See the License for the specific language governing permissions and *
* limitations under the License. *
* ------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------- *
* Copyright 2002-2022, OpenNebula Project, OpenNebula Systems *
* *

View File

@ -87,7 +87,7 @@ const HeaderVmInfo = ({ id, type }) => {
<OpenNebulaLogo width={38} height={38} disabledBetaText />
)}
</StatusBadge>
<Typography noWrap component="span" variant="h6">
<Typography noWrap component="span" variant="h6" data-cy="name">
{vm?.NAME}
</Typography>
{serviceFlow && (
@ -117,6 +117,7 @@ const HeaderVmInfo = ({ id, type }) => {
component="span"
variant="body1"
color="text.secondary"
data-cy="id"
>
{`# ${vm?.ID}`}
</Typography>
@ -135,7 +136,7 @@ const HeaderVmInfo = ({ id, type }) => {
/>
) : (
!!ips?.length && (
<Typography>
<Typography data-cy="ips">
<MultipleTags tags={ips} clipboard />
</Typography>
)

View File

@ -135,7 +135,9 @@ const Guacamole = () => {
alignItems="flex-end"
gap="1em"
>
<Typography color={colorStatus}>{connectionState}</Typography>
<Typography color={colorStatus} data-cy="state">
{connectionState}
</Typography>
<GuacamoleLogo />
</Stack>
)}