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

Adapt CreateNewProjectIT #4668

Merged

Conversation

bob4o-afk
Copy link
Contributor

What does this PR do?

Adapting test CreateNewProjectIT with the new UI
Fixes codbex/codbex-platform-development#4

What issues does this PR fix or reference?

It fixes the way of finding the correct elements.

Adapt test CreateNewProjectIT

Release Notes

Documentation

iliyan-velichkov and others added 12 commits February 18, 2025 13:36
Signed-off-by: Iliyan Velichkov <[email protected]>
Signed-off-by: Iliyan Velichkov <[email protected]>
…le#4617)

---------

Signed-off-by: Iliyan Velichkov <[email protected]>
Co-authored-by: Iliyan Velichkov <[email protected]>
Signed-off-by: Iliyan Velichkov <[email protected]>
* switch tests to the new UI

Signed-off-by: Iliyan Velichkov <[email protected]>

* MailIT works as well

Signed-off-by: Iliyan Velichkov <[email protected]>

* switch more tests to the new UI

Signed-off-by: Iliyan Velichkov <[email protected]>

---------

Signed-off-by: Iliyan Velichkov <[email protected]>
Signed-off-by: Iliyan Velichkov <[email protected]>
@iliyan-velichkov
Copy link
Contributor

@bob4o-afk resolve the conflicts - codeql is now enabled for all branches with commit 7b3f62b

@iliyan-velichkov
Copy link
Contributor

@BorisNen please review this PR

@bob4o-afk bob4o-afk requested a review from BorisNen February 20, 2025 07:05
@iliyan-velichkov iliyan-velichkov marked this pull request as draft February 20, 2025 13:16
@iliyan-velichkov iliyan-velichkov marked this pull request as ready for review February 20, 2025 13:17
Comment on lines 415 to 417
By selector = constructCssLocatorByType(elementType);

findElementInAllFrames(selector, Condition.exist, Condition.exactText(text));
Copy link
Contributor

Choose a reason for hiding this comment

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

you have to search for element with class attribute which have given value and contains exact text

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is replaced with "By selector = constructCssSelectorByType(elementType); " as it was, because now it uses " browser.assertElementExistsByTypeAndText(HtmlElementType.SPAN, expectedMessage);"

@iliyan-velichkov iliyan-velichkov changed the title fix: fixing test Adapt CreateNewProjectIT Feb 21, 2025
@iliyan-velichkov iliyan-velichkov merged commit 77ab0dc into eclipse-dirigible:new-ui Feb 21, 2025
9 checks passed
iliyan-velichkov added a commit that referenced this pull request Feb 21, 2025
* add dummy change

Signed-off-by: Iliyan Velichkov <[email protected]>

* enable new UI by default

Signed-off-by: Iliyan Velichkov <[email protected]>

* fix tests execution - run them with the old UI until adapted

Signed-off-by: Iliyan Velichkov <[email protected]>

* Changed DirigibleHomepageIT test to work with new UI (#4617)

---------

Signed-off-by: Iliyan Velichkov <[email protected]>
Co-authored-by: Iliyan Velichkov <[email protected]>

* add generic solution to reload config after test classes

Signed-off-by: Iliyan Velichkov <[email protected]>

* make openWorkbench to work with the new and the old UI

Signed-off-by: Iliyan Velichkov <[email protected]>

* format the code

Signed-off-by: Iliyan Velichkov <[email protected]>

* improve failure messages and elements search

Signed-off-by: Iliyan Velichkov <[email protected]>

* don't let the logs to affect the matching, increase search time

Signed-off-by: Iliyan Velichkov <[email protected]>

* switch tests to the new UI (#4657)

* switch tests to the new UI

Signed-off-by: Iliyan Velichkov <[email protected]>

* MailIT works as well

Signed-off-by: Iliyan Velichkov <[email protected]>

* switch more tests to the new UI

Signed-off-by: Iliyan Velichkov <[email protected]>

---------

Signed-off-by: Iliyan Velichkov <[email protected]>

* reduce ELEMENT_SEARCH_IN_FRAME_MILLIS (#4663)

Signed-off-by: Iliyan Velichkov <[email protected]>

* fix: fixing test

* codeql on all branches

Signed-off-by: Iliyan Velichkov <[email protected]>

* Update IDE.java

Signed-off-by: bobinkata <[email protected]>

* Update BrowserImpl.java

Signed-off-by: bobinkata <[email protected]>

* Update CreateNewProjectIT.java

Signed-off-by: bobinkata <[email protected]>

* fix: fixing comments

* fix: fixing comments

* fix: fixing comments

---------

Signed-off-by: Iliyan Velichkov <[email protected]>
Signed-off-by: bobinkata <[email protected]>
Co-authored-by: Iliyan Velichkov <[email protected]>
Co-authored-by: Valentin <[email protected]>
iliyan-velichkov added a commit that referenced this pull request Feb 21, 2025
* add dummy change

Signed-off-by: Iliyan Velichkov <[email protected]>

* enable new UI by default

Signed-off-by: Iliyan Velichkov <[email protected]>

* fix tests execution - run them with the old UI until adapted

Signed-off-by: Iliyan Velichkov <[email protected]>

* Changed DirigibleHomepageIT test to work with new UI (#4617)

---------

Signed-off-by: Iliyan Velichkov <[email protected]>
Co-authored-by: Iliyan Velichkov <[email protected]>

* add generic solution to reload config after test classes

Signed-off-by: Iliyan Velichkov <[email protected]>

* make openWorkbench to work with the new and the old UI

Signed-off-by: Iliyan Velichkov <[email protected]>

* format the code

Signed-off-by: Iliyan Velichkov <[email protected]>

* improve failure messages and elements search

Signed-off-by: Iliyan Velichkov <[email protected]>

* don't let the logs to affect the matching, increase search time

Signed-off-by: Iliyan Velichkov <[email protected]>

* switch tests to the new UI (#4657)

* switch tests to the new UI

Signed-off-by: Iliyan Velichkov <[email protected]>

* MailIT works as well

Signed-off-by: Iliyan Velichkov <[email protected]>

* switch more tests to the new UI

Signed-off-by: Iliyan Velichkov <[email protected]>

---------

Signed-off-by: Iliyan Velichkov <[email protected]>

* reduce ELEMENT_SEARCH_IN_FRAME_MILLIS (#4663)

Signed-off-by: Iliyan Velichkov <[email protected]>

* fix: fixing test

* codeql on all branches

Signed-off-by: Iliyan Velichkov <[email protected]>

* Update IDE.java

Signed-off-by: bobinkata <[email protected]>

* Update BrowserImpl.java

Signed-off-by: bobinkata <[email protected]>

* Update CreateNewProjectIT.java

Signed-off-by: bobinkata <[email protected]>

* fix: fixing comments

* fix: fixing comments

* fix: fixing comments

---------

Signed-off-by: Iliyan Velichkov <[email protected]>
Signed-off-by: bobinkata <[email protected]>
Co-authored-by: Iliyan Velichkov <[email protected]>
Co-authored-by: Valentin <[email protected]>
iliyan-velichkov added a commit that referenced this pull request Feb 21, 2025
* add dummy change

Signed-off-by: Iliyan Velichkov <[email protected]>

* enable new UI by default

Signed-off-by: Iliyan Velichkov <[email protected]>

* fix tests execution - run them with the old UI until adapted

Signed-off-by: Iliyan Velichkov <[email protected]>

* Changed DirigibleHomepageIT test to work with new UI (#4617)

---------

Signed-off-by: Iliyan Velichkov <[email protected]>
Co-authored-by: Iliyan Velichkov <[email protected]>

* add generic solution to reload config after test classes

Signed-off-by: Iliyan Velichkov <[email protected]>

* make openWorkbench to work with the new and the old UI

Signed-off-by: Iliyan Velichkov <[email protected]>

* format the code

Signed-off-by: Iliyan Velichkov <[email protected]>

* improve failure messages and elements search

Signed-off-by: Iliyan Velichkov <[email protected]>

* don't let the logs to affect the matching, increase search time

Signed-off-by: Iliyan Velichkov <[email protected]>

* switch tests to the new UI (#4657)

* switch tests to the new UI

Signed-off-by: Iliyan Velichkov <[email protected]>

* MailIT works as well

Signed-off-by: Iliyan Velichkov <[email protected]>

* switch more tests to the new UI

Signed-off-by: Iliyan Velichkov <[email protected]>

---------

Signed-off-by: Iliyan Velichkov <[email protected]>

* reduce ELEMENT_SEARCH_IN_FRAME_MILLIS (#4663)

Signed-off-by: Iliyan Velichkov <[email protected]>

* Adapt CreateNewProjectIT  (#4668)

* add dummy change

Signed-off-by: Iliyan Velichkov <[email protected]>

* enable new UI by default

Signed-off-by: Iliyan Velichkov <[email protected]>

* fix tests execution - run them with the old UI until adapted

Signed-off-by: Iliyan Velichkov <[email protected]>

* Changed DirigibleHomepageIT test to work with new UI (#4617)

---------

Signed-off-by: Iliyan Velichkov <[email protected]>
Co-authored-by: Iliyan Velichkov <[email protected]>

* add generic solution to reload config after test classes

Signed-off-by: Iliyan Velichkov <[email protected]>

* make openWorkbench to work with the new and the old UI

Signed-off-by: Iliyan Velichkov <[email protected]>

* format the code

Signed-off-by: Iliyan Velichkov <[email protected]>

* improve failure messages and elements search

Signed-off-by: Iliyan Velichkov <[email protected]>

* don't let the logs to affect the matching, increase search time

Signed-off-by: Iliyan Velichkov <[email protected]>

* switch tests to the new UI (#4657)

* switch tests to the new UI

Signed-off-by: Iliyan Velichkov <[email protected]>

* MailIT works as well

Signed-off-by: Iliyan Velichkov <[email protected]>

* switch more tests to the new UI

Signed-off-by: Iliyan Velichkov <[email protected]>

---------

Signed-off-by: Iliyan Velichkov <[email protected]>

* reduce ELEMENT_SEARCH_IN_FRAME_MILLIS (#4663)

Signed-off-by: Iliyan Velichkov <[email protected]>

* fix: fixing test

* codeql on all branches

Signed-off-by: Iliyan Velichkov <[email protected]>

* Update IDE.java

Signed-off-by: bobinkata <[email protected]>

* Update BrowserImpl.java

Signed-off-by: bobinkata <[email protected]>

* Update CreateNewProjectIT.java

Signed-off-by: bobinkata <[email protected]>

* fix: fixing comments

* fix: fixing comments

* fix: fixing comments

---------

Signed-off-by: Iliyan Velichkov <[email protected]>
Signed-off-by: bobinkata <[email protected]>
Co-authored-by: Iliyan Velichkov <[email protected]>
Co-authored-by: Valentin <[email protected]>

* cleanup

Signed-off-by: Iliyan Velichkov <[email protected]>

* cleanup and refactoring

Signed-off-by: Iliyan Velichkov <[email protected]>

* configs refactoring

Signed-off-by: Iliyan Velichkov <[email protected]>

* refactoring

Signed-off-by: Iliyan Velichkov <[email protected]>

---------

Signed-off-by: Iliyan Velichkov <[email protected]>
Signed-off-by: bobinkata <[email protected]>
Co-authored-by: Valentin <[email protected]>
Co-authored-by: bobinkata <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants