diff --git a/.devcontainer/cpp/Dockerfile b/.devcontainer/cpp/Dockerfile index aa77c640..b2c28e4f 100644 --- a/.devcontainer/cpp/Dockerfile +++ b/.devcontainer/cpp/Dockerfile @@ -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 diff --git a/.devcontainer/cpp/e2e/tests/smoke.spec.ts b/.devcontainer/cpp/e2e/tests/smoke.spec.ts index bee322fc..915414f3 100644 --- a/.devcontainer/cpp/e2e/tests/smoke.spec.ts +++ b/.devcontainer/cpp/e2e/tests/smoke.spec.ts @@ -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 }); - }); });