Skip to content

Commit 0c807ab

Browse files
chore(test): enable instructLab test for linux (#3611)
* chore(test): enable instructLab test for linux Signed-off-by: serbangeorge-m <[email protected]> * chore(test): change tags Signed-off-by: serbangeorge-m <[email protected]> --------- Signed-off-by: serbangeorge-m <[email protected]>
1 parent 6f136e0 commit 0c807ab

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

tests/playwright/src/ai-lab-extension.spec.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -556,11 +556,10 @@ test.describe.serial(`AI Lab extension installation and verification`, () => {
556556
});
557557
});
558558

559-
test.describe.serial('InstructLab container startup', { tag: '@instructlab' }, () => {
559+
test.describe.serial('InstructLab container startup', { tag: ['@smoke', '@instructLab'] }, () => {
560560
let instructLabPage: AILabTryInstructLabPage;
561561
const instructLabContainerName = /^instructlab-\d+$/;
562562
let exactInstructLabContainerName = '';
563-
test.skip(!!process.env.GITHUB_ACTIONS && !!isLinux);
564563

565564
test.beforeAll('Open Try InstructLab page', async ({ runner, page, navigationBar }) => {
566565
aiLabPage = await reopenAILabDashboard(runner, page, navigationBar);
@@ -600,16 +599,13 @@ test.describe.serial(`AI Lab extension installation and verification`, () => {
600599
});
601600

602601
test('Cleanup the InstructLab container', async ({ runner, page, navigationBar }) => {
603-
const containerDetailsPage = new ContainerDetailsPage(page, exactInstructLabContainerName);
604-
await playExpect(containerDetailsPage.heading).toBeVisible();
605-
606-
await containerDetailsPage.deleteContainer();
607602
const containersPage = await navigationBar.openContainers();
608-
await playExpect(containersPage.heading).toBeVisible({ timeout: 30_000 });
603+
await playExpect(containersPage.heading).toBeVisible();
604+
await containersPage.deleteContainer(exactInstructLabContainerName);
609605
await playExpect
610-
.poll(async () => containersPage.containerExists(exactInstructLabContainerName), { timeout: 100_000 })
606+
.poll(async () => await containersPage.containerExists(exactInstructLabContainerName), { timeout: 60_000 })
611607
.toBeFalsy();
612-
608+
await deleteUnusedImages(navigationBar);
613609
aiLabPage = await reopenAILabDashboard(runner, page, navigationBar);
614610
await aiLabPage.navigationBar.waitForLoad();
615611
instructLabPage = await aiLabPage.navigationBar.openTryInstructLab();

0 commit comments

Comments
 (0)