Skip to content

Conversation

@rranjan03
Copy link
Contributor

What is this PR for?

Add a new test case for testing the create new button.
Create new button is for creating new paragraph within notebook

What type of PR is it?

Test

Is there a relevant Jira issue?

NA

How should this be tested?

On OSX, you'll need firefox 42.0 installed, then you can run with

PATH=~/Applications/Firefox.app/Contents/MacOS/:$PATH CI=""
mvn -Dtest=org.apache.zeppelin.ParagraphActionsIT -Denforcer.skip=true
test -pl zeppelin-server

Questions:

  • Does the licenses files need update?NO
  • Is there breaking changes for older versions?NO
  • Does this needs documentation?NO

createNewNote();

waitForParagraph(1, "READY");
Integer nosOfParas = driver.findElements(By.xpath("//div[@ng-controller=\"ParagraphCtrl\"]")).size();
Copy link
Contributor

Choose a reason for hiding this comment

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

extra space after "="

@Leemoonsoo
Copy link
Member

Could this test also cover new paragraph by clicking + button between paragraphs?

@rranjan03
Copy link
Contributor Author

@Leemoonsoo This test does not cover new paragraph by clicking + buttons between paragraphs

@rranjan03
Copy link
Contributor Author

@Leemoonsoo Modified test case to cover new paragraph by clicking + buttons between paragraph.

@Leemoonsoo
Copy link
Member

@ravicodder Thanks for taking care.

LGTM

@Leemoonsoo
Copy link
Member

Merge if there're no more discussions

@prabhjyotsingh
Copy link
Contributor

@ravicodder I think you should test both append paragraph to top, and append paragraph to bottom buttons as well. Instead of only testing append to top.

https://github.com/apache/incubator-zeppelin/pull/688/files#diff-48409cf8ca5ddb1aea1a62ada3cd091dR82

@rranjan03
Copy link
Contributor Author

@prabhjyotsingh Modified test case to include test case to test append paragraph to top and bottom.
Please have a look.

@prabhjyotsingh
Copy link
Contributor

CI green, LGTM.

@Leemoonsoo
Copy link
Member

LGTM and merge if there're no more discussion

@asfgit asfgit closed this in 8e46b0a Feb 17, 2016
prabhjyotsingh pushed a commit to prabhjyotsingh/zeppelin that referenced this pull request Feb 19, 2016
### What is this PR for?
Add a new test case for testing the create new button.
Create new button is for creating new paragraph within notebook

### What type of PR is it?
Test

### Is there a relevant Jira issue?

NA

### How should this be tested?

On OSX, you'll need firefox 42.0 installed, then you can run with

PATH=~/Applications/Firefox.app/Contents/MacOS/:$PATH CI="" \
mvn -Dtest=org.apache.zeppelin.ParagraphActionsIT -Denforcer.skip=true \
test -pl zeppelin-server

### Questions:
* Does the licenses files need update?NO
* Is there breaking changes for older versions?NO
* Does this needs documentation?NO

Author: Ravi Ranjan <ranjanravi0308@gmail.com>

Closes apache#688 from ravicodder/testCreateNewButton and squashes the following commits:

7d5bc65 [Ravi Ranjan] Add LOG.error message in catch statement
ce25396 [Ravi Ranjan]  Add LOG.error in catch statement
0247d3f [Ravi Ranjan] Modified test case to test create new paragraph using '+' sign between paragraph
2fbf220 [Ravi Ranjan] modified Debug message and in checkthat value of pargarphs used instead of <true> or <false>
9b1d777 [Ravi Ranjan] Add new selenium test case for create new paragraph button
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.

3 participants