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

[Test] Update 'Factory' E2E test #23336

Merged
merged 3 commits into from
Feb 13, 2025
Merged

[Test] Update 'Factory' E2E test #23336

merged 3 commits into from
Feb 13, 2025

Conversation

artaleks9
Copy link
Contributor

What does this PR do?

  • Updates the Factory E2E test to do checking test-cases of factory with gitlab server private/public repo when OAuth token is refreshed.
  • Adds new environment variable: SELECT_OF_CREATION_NEW_WORKSPACE to tests/e2e/constants/BASE_TEST_CONSTANTS.ts

Screenshot/screencast of this PR

What issues does this PR fix or reference?

How to test this PR?

Run the Factory.spec.ts as usual

PR Checklist

As the author of this Pull Request I made sure that:

Reviewers

Reviewers, please comment how you tested the PR when approving it.

* select creation of a new workspace, if a duplicate workspace is created from the factory or sample list.
* this option is false by default.
*/
SELECT_OF_CREATION_NEW_WORKSPACE: process.env.SELECT_OF_CREATION_NEW_WORKSPACE === 'true',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO SELECT_CREATING_NEW_WORKSPACE name should be more relevant in this case

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, default value = true is probably conflicting with another constant value SELECT_OPENING_EXISTING_WORKSPACE_INSTEAD_OF_CREATION_NEW=== true

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both constants SELECT_CREATING_NEW_WORKSPACE and SELECT_OPENING_EXISTING_WORKSPACE_INSTEAD_OF_CREATION_NEW have default value false

Copy link
Contributor

@dmytro-ndp dmytro-ndp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to merge, with a few cosmetic remarks

@artaleks9 artaleks9 merged commit 617712e into main Feb 13, 2025
5 checks passed
@artaleks9 artaleks9 deleted the update-factory branch February 13, 2025 08:49
@artaleks9 artaleks9 self-assigned this Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants