Skip to content

Commit

Permalink
chore(deps): bump ubuntu from 3f85b7c to 8a37d68 in /.devcontaine…
Browse files Browse the repository at this point in the history
…r/cpp (#552)

* chore(deps): bump ubuntu in /.devcontainer/cpp

Bumps ubuntu from `3f85b7c` to `8a37d68`.

---
updated-dependencies:
- dependency-name: ubuntu
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* test: start with one test for now

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ron <45816308+rjaegers@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and rjaegers committed Aug 29, 2024
1 parent ed6753c commit 5188dd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/cpp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:24.04@sha256:3f85b7caad41a95462cf5b787d8a04604c8262cdcdf9a472b8c52ef83375fe15
FROM ubuntu:24.04@sha256:8a37d68f4f73ebf3d4efafbcf66379bf3728902a8038616808f04e34a9ab63ee

ARG BATS_VERSION=1.11.0
ARG CCACHE_VERSION=4.10.1
Expand Down
21 changes: 1 addition & 20 deletions .devcontainer/cpp/e2e/tests/smoke.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,11 @@ test.beforeEach(async ({ page }) => {
});

test.describe('CMake', () => {
test('should succesfully build without selecting configuration', async ({ page }) => {
test('should succesfully build default configuration', async ({ page }) => {
const codespace = new CodespacePage(page);

await page.getByRole('button', { name: 'Build the selected target' }).click();
await page.getByLabel('host, Build for host').locator('a').click();
await expect(codespace.outputPanel).toContainText('Build finished with exit code 0', { timeout: 5 * 60 * 1000 });
});

test('should succesfully build after selecting configuration', async ({ page }) => {
const codespace = new CodespacePage(page);

await codespace.openTabByName('CMake');
await expect(page.getByRole('treeitem', { name: 'Change Configure Preset' })).toContainText('[No Configure Preset Selected]');
await expect(page.getByRole('treeitem', { name: 'Change Build Preset' })).toContainText('[No Build Preset Selected]');

await codespace.executeFromCommandPalette([{ command: 'CMake: Select Configure Preset' },
{ command: 'host', prompt: 'Select a configure preset' }]);
await expect(page.getByRole('treeitem', { name: 'Change Configure Preset' })).toContainText('host');

await codespace.executeFromCommandPalette([{ command: 'CMake: Select Build Preset' },
{ command: 'host-Release', prompt: 'Select a build preset' }]);
await expect(page.getByRole('treeitem', { name: 'Change Build Preset' })).toContainText('host-Release');

await page.getByRole('button', { name: 'Build the selected target' }).click();
await expect(codespace.outputPanel).toContainText('Build finished with exit code 0', { timeout: 5 * 60 * 1000 });
});
});

0 comments on commit 5188dd8

Please sign in to comment.