1- import { browser , expect } from " @wdio/globals" ;
1+ import { browser , expect } from ' @wdio/globals' ;
22import { Workbench } from 'wdio-vscode-service' ;
33
4- describe ( "LFS VSCE Side Bar Smoke Tests" , ( ) => {
5-
4+ describe ( 'LFS VSCE Side Bar Smoke Tests' , ( ) => {
65 let workbench : Workbench ;
76
87 beforeEach ( async ( ) => {
98 workbench = await browser . getWorkbench ( ) ;
109 } ) ;
1110
12- it ( " Extension is accessible in the Side Bar" , async ( ) => {
11+ it ( ' Extension is accessible in the Side Bar' , async ( ) => {
1312 // Verify if Lightning Flow Scanner is in the side bar
1413 const viewControls = await workbench . getActivityBar ( ) . getViewControls ( ) ;
1514 expect (
1615 await Promise . all ( viewControls . map ( ( vc ) => vc . getTitle ( ) ) )
17- ) . toContain ( " Lightning Flow Scanner" ) ;
16+ ) . toContain ( ' Lightning Flow Scanner' ) ;
1817
1918 // Verify if Lightning Flow Scanner can be opened in the side bar
2019 const lfsViewContainer = await workbench
2120 . getActivityBar ( )
22- . getViewControl ( " Lightning Flow Scanner" ) ;
21+ . getViewControl ( ' Lightning Flow Scanner' ) ;
2322 await lfsViewContainer ?. wait ( ) ;
2423 await lfsViewContainer ?. openView ( ) ;
2524 const selectedView = await workbench
2625 . getActivityBar ( )
2726 . getSelectedViewAction ( ) ;
28- expect ( await selectedView . getTitle ( ) ) . toBe ( " Lightning Flow Scanner" ) ;
27+ expect ( await selectedView . getTitle ( ) ) . toBe ( ' Lightning Flow Scanner' ) ;
2928
3029 // // TODO Verify some content of the Lightning Flow Scanner side bar
3130 /*
@@ -38,16 +37,14 @@ describe("LFS VSCE Side Bar Smoke Tests", () => {
3837 */
3938 } ) ;
4039
41- it ( "The Get Rules command results in opening the Flow Rules view" , async ( ) => {
42-
40+ it ( 'The Get Rules command results in opening the Flow Rules view' , async ( ) => {
4341 // Run the View Default Flow Rules via the Command Prompt
4442 const commandInput = await workbench . openCommandPrompt ( ) ;
45- await workbench . executeCommand ( " lightningflowscanner.viewDefaulFlowRules" ) ;
43+ await workbench . executeCommand ( ' lightningflowscanner.viewDefaultFlowRules' ) ;
4644 const editorView = workbench . getEditorView ( ) ;
4745 const activeTab = await editorView . getActiveTab ( ) ;
4846 const title = await activeTab ?. getTitle ( ) ;
4947 console . log ( 'title = ' , title ) ;
5048 expect ( title ) . toBe ( 'Flow Rules' ) ;
5149 } ) ;
52-
5350} ) ;
0 commit comments