File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed
src/components/configuration Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ const loading = computed(() => {
3131 <div class =" box" >
3232 <div class =" row" >
3333 <div class =" license-info" >
34- <div ><b >Platform license type:</b > {{ license.license_type }}{{ license.licenseEdition }}</div >
34+ <div ><b >Platform license type:</b > < span aria-label = " license-type " > {{ license.license_type }}{{ license.licenseEdition }}</ span > </div >
3535
3636 <template v-if =" licenseStatus .isSubscriptionLicense " >
3737 <div >
Original file line number Diff line number Diff line change 1+ import { screen } from "@testing-library/vue" ;
2+
3+ export async function licenseTypeDetails ( ) {
4+ const licenseType = await screen . findByRole ( "label" , { name : "license-type" } ) ;
5+ return licenseType . textContent ;
6+ }
Original file line number Diff line number Diff line change 1+ import { expect , vi } from "vitest" ;
12import { test , describe } from "../../drivers/vitest/driver" ;
3+ import * as precondition from "../../preconditions" ;
4+ import { licenseTypeDetails } from "./questions/licenseTypeDetails" ;
25
36describe ( "FEATURE: License" , ( ) => {
47 describe ( "RULE: Platform license type should be shown shown" , ( ) => {
5- test . todo ( "EXAMPLE: Valid platform license type should be shown" ) ;
8+ test . todo ( "EXAMPLE: Valid platform license type should be shown" , async ( { driver } ) => {
69
710 /* SCENARIO
811 Given the platform license is valid
912 Then the platform license type is shown
1013 */
14+ await driver . setUp ( precondition . hasActiveLicense ) ;
15+ await driver . goTo ( "/configuration/license" ) ;
16+
17+ expect ( await licenseTypeDetails ( ) ) . toBe ( "Commercial, Enterprise" ) ;
18+
19+
20+
1121 } ) ;
1222 describe ( "RULE: License expiry date should be shown" , ( ) => {
1323 test . todo ( "EXAMPLE: Valid license expiry date should be shown" ) ;
You can’t perform that action at this time.
0 commit comments