-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
WIP: Feature implement python devfile #15736
WIP: Feature implement python devfile #15736
Conversation
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
c4a8020
to
76c0fee
Compare
✅ E2E Happy path tests succeed 🎉 See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) |
ci-test |
❌ E2E Happy path tests failed ❗ See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) ℹ️ |
✅ E2E Happy path tests succeed 🎉 See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) |
✅ E2E Happy path tests succeed 🎉 See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) |
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.
Please rewrite your test methods by using the "DriverHelper" class.
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.
Adding the fist part of the review. I'll continue on Monday.
E2E tests of Eclipse Che Multiuser on OCP has failed:
|
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.
Maybe it would be good trying to simplify locators using this approach: https://github.com/eclipse/che/blob/master/tests/e2e/pageobjects/ide/DebugView.ts#L33 - I mean using contains
for some important class instead of directly specifying all classes by @class
.
63079ff
to
6361103
Compare
❌ E2E Happy path tests failed ❗ See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) ℹ️ |
timeout: number = TestConstants.TS_SELENIUM_LOAD_PAGE_TIMEOUT) { | ||
|
||
async waitWorkspaceAndIde(workspaceNamespace: string, workspaceName: string, timeout: number = TestConstants.TS_SELENIUM_LOAD_PAGE_TIMEOUT) { | ||
// why are there unused arguments in this method? |
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.
We should consider refactoring this method. It's tied to HappyPath tests as well.
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.
6361103
to
1e8e2e0
Compare
✅ E2E Happy path tests succeed 🎉 See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) |
1e8e2e0
to
ec051a0
Compare
20e279e
to
3c7a54d
Compare
✅ E2E Happy path tests succeed 🎉 See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) |
3c7a54d
to
dcf6901
Compare
❌ E2E Happy path tests failed ❗ See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) ℹ️ |
dcf6901
to
920a177
Compare
✅ E2E Happy path tests succeed 🎉 See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) |
@@ -45,8 +43,6 @@ export class TopMenu { | |||
Logger.debug(`TopMenu.clickOnTopMenuButton "${buttonText}"`); | |||
|
|||
const buttonLocator: By = this.getTopMenuButtonLocator(buttonText); | |||
|
|||
await this.ide.closeAllNotifications(); |
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.
Could you explain a reason why you deleted this method
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.
It makes absolutely no sense to close notifications after clicking the top menu item and it was stealing focus from the Terminal
element causing the windows to close since the method closeAllNotifications
is performing clicks.
If you want to make sure there are no notifications present, you should call it in your tests separately before you call TopMenu.clickOnTopMenuButton
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.
It doesn't make sense if notifications appear at the bottom left corner. as now But this method was put there when notifications appeared at the top center and override the top menu. Can you guarantee that it will not be there again for example tomorrow?
export function runTaskWithDialogShellAndOpenLink(taskName: string, expectedDialogText: string, timeout: number) { | ||
test(`Run command '${taskName}' expecting dialog shell`, async () => { | ||
await topMenu.runTask(taskName); | ||
await dialogWindow.waitDialog(timeout, expectedDialogText); |
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.
replace
await dialogWindow.waitDialog(timeout, expectedDialogText);
await dialogWindow.clickToButton(dialogWindowOpenLinkButtonText);
await dialogWindow.waitDialogDissappearance();
by
await dialogWindow.waitDialogAndOpenLink(timeout, expectedDialogText);
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.
https://github.com/eclipse/che/blob/master/tests/e2e/pageobjects/ide/DialogWindow.ts#L79 this and the method above it seem to be in an incorrect order
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've fixed the method:
From:
await this.ide.waitApllicationIsReady(await this.getApplicationUrlFromDialog(dialogText), timeout);
await this.clickToOpenLinkButton();
To:
const applicationUrlFromDialog: string = await this.getApplicationUrlFromDialog(dialogText);
await this.clickToOpenLinkButton();
await this.ide.waitApllicationIsReady(applicationUrlFromDialog, timeout);
This resolved the race condition
920a177
to
8dfbb3d
Compare
… added new runTaskWithDialogShell method into testsLibrary/CodeExecutionTests Signed-off-by: Tibor Dancs <tdancs@redhat.com>
Signed-off-by: Tibor Dancs <tdancs@redhat.com>
8dfbb3d
to
44e9f6c
Compare
✅ E2E Happy path tests succeed 🎉 See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) |
✅ E2E Happy path tests succeed 🎉 See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) |
@@ -521,6 +522,32 @@ export class DriverHelper { | |||
throw new error.TimeoutError(`Exceeded maximum mouse move attempts, for the '${elementLocator}' element`); | |||
} | |||
|
|||
public async hasChildren(elementLocator: By): Promise<boolean> { |
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 can suggest other variant:
public async hasChildren(elementXpathLocator: String): Promise<boolean> {
return await this.isVisible(By.xpath(`${elementXpathLocator}//*`));
}
For me looks much simplier
@@ -45,8 +43,6 @@ export class TopMenu { | |||
Logger.debug(`TopMenu.clickOnTopMenuButton "${buttonText}"`); | |||
|
|||
const buttonLocator: By = this.getTopMenuButtonLocator(buttonText); | |||
|
|||
await this.ide.closeAllNotifications(); |
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.
It doesn't make sense if notifications appear at the bottom left corner. as now But this method was put there when notifications appeared at the top center and override the top menu. Can you guarantee that it will not be there again for example tomorrow?
What does this PR do?
What issues does this PR fix or reference?
#15735