-
Notifications
You must be signed in to change notification settings - Fork 66
[WIP] chore(test): renaming classes appropriately, reshufling test logic into main for loop #3843
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
base: main
Are you sure you want to change the base?
Conversation
danivilla9
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes so far make sense to me.
One tiny nitpick is that I think that you have an extra 'l' in 'guilderails'
317f4c7 to
563dff7
Compare
…to main for loop Signed-off-by: Tibor Dancs <[email protected]>
563dff7 to
a04c903
Compare
Signed-off-by: Tibor Dancs (tdancs old laptop podman-desktop windows testing) <[email protected]>
| await aiLabPage.navigationBar.waitForLoad(); | ||
| }, | ||
| ); | ||
| test.skip(true, `Skipping test due to https://github.com/containers/podman-desktop-extension-ai-lab/issues/3406`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not skip whole suite, you still can run 2/5? test cases and check the api endpoints for ai lab.
| * Model Download | ||
| */ | ||
| test.describe.serial(`Download model ${appModel} via AI Lab Catalog`, () => { | ||
| test(`Open AI Lab Catalog`, async ({ runner, page, navigationBar }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why to you change the hook into test case? Still can be a hook for all tests in this sub-suite.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since downloading of a model is a prerequisite to all subsequent tests, it might be converted into fixture.
| }, | ||
| ); | ||
| test.skip(true, `Skipping test due to https://github.com/containers/podman-desktop-extension-ai-lab/issues/3406`); | ||
| test('Get AI Lab extension version and open AI Lab navigation bar', async ({ page, runner, navigationBar }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you change the before hook into test case?
|
|
||
| AI_APP_MODEL_AND_NAMES.forEach((appNames, appModel) => { | ||
| /* eslint-disable sonarjs/no-nested-functions */ | ||
| test.describe.serial(`AI Recipe installations for ${appModel}`, { tag: '@smoke' }, () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The suite name should be more general, we test a lot of stuff here.
Signed-off-by: Tibor Dancs (tdancs old laptop podman-desktop windows testing) <[email protected]>
What does this PR do?
Screenshot / video of UI
What issues does this PR fix or reference?
#3642
How to test this PR?