Skip to content

Commit

Permalink
Move open
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanck committed Dec 9, 2024
1 parent 3092a9e commit a5296af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/e2e/specs/language/terraform.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ describe('Terraform language tests', () => {
before(async function () {
this.timeout(15_000);
statusBar = new StatusBar();
// most basic functions of status bar are only available when a file is opened
await VSBrowser.instance.openResources(path.join('src', 'test', 'fixtures', 'sample.tf'));
});

it('can detect correct language', async () => {
// most basic functions of status bar are only available when a file is opened
await VSBrowser.instance.openResources(path.join('src', 'test', 'fixtures', 'sample.tf'));

// retrieve an item from the status bar by label (the text visible on the bar)
// we are looking at a tf file, so we can get the language selection item like so
const item = await statusBar.getItem('Terraform');
Expand Down

0 comments on commit a5296af

Please sign in to comment.