Skip to content

added test changeSimpleToolColor#18

Merged
msulaev merged 6 commits into
masterfrom
addSimpleToolTest
Jul 15, 2019
Merged

added test changeSimpleToolColor#18
msulaev merged 6 commits into
masterfrom
addSimpleToolTest

Conversation

@apenkov

@apenkov apenkov commented Jul 11, 2019

Copy link
Copy Markdown
Collaborator

No description provided.

apenkov added 3 commits July 11, 2019 16:16
# Conflicts:
#	src/main/java/com/pdffiller/element/DocumentElements.java
#	src/main/java/com/pdffiller/element/ElementParameterOnToolbar.java
@apenkov apenkov changed the title delete some blank line added test changeSimpleToolColor Jul 11, 2019
Comment thread src/test/java/EditorTest.java Outdated
editorStep.addSimpleTool("Cross", "cross1", grid);
editorStep.selectColorOnToolbar("Red");
cssAttribute(editorStep.getElementColor("checkmark"), "Red");
}

@msulaev msulaev Jul 11, 2019

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Вынести в отдельный класс(?) засунь часть методов в фикстуру.
Где ассерт?
Имя теста должно отображать проверку: shouldCanChangeSmth

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Добавь enum с цветами

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

используй имплементацию cssAttribute с матчером is(Color.Red)\

Comment thread src/main/java/step/EditorStep.java Outdated
Comment thread src/main/java/step/EditorStep.java Outdated
Comment thread src/main/java/step/EditorStep.java Outdated
documentGridForField = new DocumentGridForField();
}

public enum Color {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

вынеси енам в отдельным класс


import java.util.Optional;

public class MyCustomExt implements TestWatcher

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Обнови градл файл и закомить

@msulaev msulaev merged commit 6093b45 into master Jul 15, 2019
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.

2 participants