Skip to content
This repository was archived by the owner on Jul 10, 2024. It is now read-only.

SUBMARINE-881. Sidebar page component object for e2e-test#625

Closed
noidname01 wants to merge 10 commits intoapache:masterfrom
noidname01:SUBMARINE-881
Closed

SUBMARINE-881. Sidebar page component object for e2e-test#625
noidname01 wants to merge 10 commits intoapache:masterfrom
noidname01:SUBMARINE-881

Conversation

@noidname01
Copy link
Copy Markdown
Contributor

@noidname01 noidname01 commented Jun 30, 2021

What is this PR for?

Sidebar page component object for e2e-test

What type of PR is it?

[Improvement]

Todos

What is the Jira issue?

https://issues.apache.org/jira/projects/SUBMARINE/issues/SUBMARINE-881

How should this be tested?

# Step1: Run Submarine workbench on 127.0.0.1:8080 by operator
# Step2: Run testcase
cd submarine-cloud-v2

# Usage: ./hack/run_frontend_e2e.sh ${testcase}
# Example: 
./hack/run_frontend_e2e.sh notebookIT

Screenshots (if appropriate)

image

Questions:

  • Do the license files need updating? No
  • Are there breaking changes for older versions? No
  • Does this need new documentation? No

@noidname01
Copy link
Copy Markdown
Contributor Author

@kevin85421

Copy link
Copy Markdown
Member

@kevin85421 kevin85421 left a comment

Choose a reason for hiding this comment

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

@noidname01 Thank you for your contribution! There are some recommendatinos.


public class Sidebars extends AbstractSubmarineIT{

private String URL = getURL("http://127.0.0.1", 8080);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In my opinion, it is better to pass URL as a function argument. Any thoughts?

public void workspaceNavigation() throws Exception {
String URL = getURL("http://127.0.0.1", 8080);
// Login

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

empty line

public void notebookNavigation() throws Exception {
String URL = getURL("http://127.0.0.1", 8080);
// Login

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

empty line

@Test
public void workspaceNavigation() throws Exception {
String URL = getURL("http://127.0.0.1", 8080);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

empty line

ExperimentPage experimentPage = new ExperimentPage(driver);
// Login
Sidebars sidebars = new Sidebars(URL);
// Login
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

indentation

String URL = getURL("http://127.0.0.1", 8080);
// Login
Sidebars sidebars = new Sidebars(URL);
// Login
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

indentation

Copy link
Copy Markdown
Member

@kevin85421 kevin85421 left a comment

Choose a reason for hiding this comment

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

LGTM

@asfgit asfgit closed this in 27567b7 Jul 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants