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

Gui improvements 08 11 23 #3432

Merged
merged 43 commits into from
May 21, 2024
Merged

Gui improvements 08 11 23 #3432

merged 43 commits into from
May 21, 2024

Conversation

maryvictol
Copy link
Collaborator

@maryvictol maryvictol commented Jan 26, 2024

The PR provides updates:

  • updates DetachedConfigurationsTest, NfsDataStorageTest
  • fix SLURMMasterSetup message
  • associate different description estimated price to common primitive ESTIMATED_PRICE
  • add Price cannot be estimated case handling
  • add restoring filters values after refresh in the getInfoRow method for SystemLoggingTest
  • update clearAndFillPipelineFile method

@maryvictol maryvictol marked this pull request as ready for review April 11, 2024 10:51
@maryvictol maryvictol added the sys/e2e Issues related to the e2e tests automation label Apr 11, 2024
@@ -192,7 +192,8 @@ public void rerunPipelineWithoutLimitMounts() {
.ensure(LIMIT_MOUNTS, text("All available non-sensitive storages"))
.launch(this)
.showLog(getLastRunId())
.ensureNotVisible(PARAMETERS)
.expandTab(PARAMETERS)
.ensureParameterIsNotPresent("CP_CAP_LIMIT_MOUNTS")
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we extract "CP_CAP_LIMIT_MOUNTS" to constant and replace this

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@@ -18,6 +18,7 @@
import static com.codeborne.selenide.Selectors.byClassName;
Copy link
Contributor

Choose a reason for hiding this comment

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

Clean up the unused import statements, please

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

.uploadFile(getFile(launchScript))
.ensure(byText(launchScript), visible);
sleep(20, SECONDS);
// sleep(20, SECONDS);
Copy link
Contributor

Choose a reason for hiding this comment

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

Could this be cleaned?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@@ -142,15 +146,15 @@ public void userAuthenticationUnsuccessfulAttempt() {
.switchToSystemLogs();
if (impersonateMode()) {
systemLogsAO
.filterByUser(admin.login)
.filterByField("User", admin.login)
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's extract "User" to constant and replace its everywhere

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@@ -461,6 +461,7 @@ public static By parameterWithName(final String name, final String value) {
".//td[contains(., '%s')]]", name, value));
}


Copy link
Contributor

Choose a reason for hiding this comment

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

Could be cleaned up?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@@ -196,6 +199,18 @@ public PipelineCodeTabAO shouldContainFile(final String fileName) {
return this;
}

public PipelineCodeTabAO waitUntilSaveEnding() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can be private

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@@ -15,7 +15,9 @@
*/
package com.epam.pipeline.autotests.ao;

import static com.codeborne.selenide.Condition.exist;
Copy link
Contributor

Choose a reason for hiding this comment

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

Clean up the unused import statements, please

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

import com.codeborne.selenide.SelenideElement;
import static com.epam.pipeline.autotests.utils.C.DEFAULT_TIMEOUT;
Copy link
Contributor

Choose a reason for hiding this comment

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

Clean up the unused import statements, please

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@@ -50,6 +53,7 @@ public PipelineSelection(final Configuration parentAO) {

public PipelineSelection selectPipeline(final String pipeline) {
this.pipeline = pipeline;
context().$(className("ant-table-content")).waitUntil(exist, DEFAULT_TIMEOUT);
Copy link
Contributor

Choose a reason for hiding this comment

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

Could this to be extracted to TABLE primitive?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

Comment on lines +126 to +127
return $(filterBy("Message")).$(byXpath("./input"))
.getAttribute("value");
Copy link
Contributor

Choose a reason for hiding this comment

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

Could this be better to extract filters to primitives?

@maryvictol maryvictol requested a review from kamyshova May 10, 2024 16:26
maryvictol and others added 2 commits May 14, 2024 14:18
@kamyshova kamyshova merged commit 954baa7 into develop May 21, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sys/e2e Issues related to the e2e tests automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants