Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump ubuntu from 3f85b7c to 8a37d68 in /.devcontainer/cpp #552

Merged
merged 2 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 });
});
});
Loading