Add @web tag to new web-only tests for later CI use (#6784)

pierremtb/adhoc/add-web-tag-for-later
This commit is contained in:
Pierre Jacquier
2025-05-08 17:58:05 -04:00
committed by GitHub
parent fc3ce4cda8
commit 7b8585f3c3
2 changed files with 54 additions and 47 deletions

View File

@ -514,9 +514,13 @@ test.describe('Command bar tests', () => {
})
})
test(`Zoom to fit to shared model on web`, async ({ page, scene }) => {
test(
`Zoom to fit to shared model on web`,
{ tag: ['@web'] },
async ({ page, scene }) => {
if (process.env.PLATFORM !== 'web') {
// This test is web-only
// TODO: re-enable on CI as part of a new @web test suite
return
}
await test.step(`Prepare and navigate to home page with query params`, async () => {
@ -548,7 +552,8 @@ profile001 = startProfile(sketch001, at = [-484.34, 484.95])
await test.step(`Ensure we created the project and are in the modeling scene`, async () => {
await expectPixelColor(page, [252, 252, 252], { x: 600, y: 260 }, 8)
})
})
}
)
test(`Can add and edit a named parameter or constant`, async ({
page,

View File

@ -13,12 +13,13 @@ test.describe('Share link tests', () => {
showsErrorOnWindows: true,
},
].forEach(({ codeLength, showsErrorOnWindows }) => {
test(`Open in desktop app with ${codeLength}-long code ${isWindows && showsErrorOnWindows ? 'shows error' : "doesn't show error"}`, async ({
page,
}) => {
test(
`Open in desktop app with ${codeLength}-long code ${isWindows && showsErrorOnWindows ? 'shows error' : "doesn't show error"}`,
{ tag: ['@web'] },
async ({ page }) => {
if (process.env.PLATFORM !== 'web') {
// This test is web-only
// TODO: re-enable on CI as part of a new web test suite
// TODO: re-enable on CI as part of a new @web test suite
return
}
@ -38,6 +39,7 @@ test.describe('Share link tests', () => {
await expect(toastError).not.toBeVisible()
// TODO: check if we could verify the deep link dialog shows up
}
})
}
)
})
})