@@ -55,32 +55,7 @@ describe('Templates', () => {
5555 projectName = testSetup . tempProjectName ;
5656 } ) ;
5757
58- // Apex Class
59- it ( 'Create an Apex Class' , async ( ) => {
60- logTestStart ( testSetup , 'Create an Apex Class' ) ;
61- // Using the Command palette, run SFDX: Create Apex Class.
62- await createCommand ( 'Apex Class' , 'ApexClass1' , 'classes' , 'cls' ) ;
63-
64- // Check for expected items in the Explorer view.
65- const workbench = getWorkbench ( ) ;
66-
67- // Get the matching (visible) items within the tree which contains "ApexClass1".
68- const filteredTreeViewItems = await getFilteredVisibleTreeViewItemLabels ( workbench , projectName , 'ApexClass1' ) ;
69-
70- expect ( filteredTreeViewItems . includes ( 'ApexClass1.cls' ) ) . to . equal ( true ) ;
71- expect ( filteredTreeViewItems . includes ( 'ApexClass1.cls-meta.xml' ) ) . to . equal ( true ) ;
72- } ) ;
73-
74- it ( 'Verify the contents of the Apex Class' , async ( ) => {
75- logTestStart ( testSetup , 'Verify the contents of the Apex Class' ) ;
76- const expectedText = [ 'public with sharing class ApexClass1 {' , ' public ApexClass1() {' , '' , ' }' , '}' ] . join (
77- '\n'
78- ) ;
79- const workbench = getWorkbench ( ) ;
80- const textEditor = await getTextEditor ( workbench , 'ApexClass1.cls' ) ;
81- const textGeneratedFromTemplate = ( await textEditor . getText ( ) ) . trimEnd ( ) . replaceAll ( '\r\n' , '\n' ) ;
82- expect ( textGeneratedFromTemplate ) . to . equal ( expectedText ) ;
83- } ) ;
58+ // Apex Class is covered in apexGenerateClass.headless.spec.ts (salesforcedx-vscode-metadata)
8459
8560 // Apex Unit Test Class is covered in apexTestClassCreate.headless.spec.ts
8661
0 commit comments