Skip to content

Commit

Permalink
#1780 use PARTIAL_TEXT by default
Browse files Browse the repository at this point in the history
... to keep backward compatibility. Let's change it to FULL_TEXT in a next major release 7.0.0
  • Loading branch information
asolntsev committed Aug 3, 2022
1 parent 3f4b38d commit ac0a54e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/codeborne/selenide/Condition.java
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ public static Condition matchText(String regex) {
*
* <p>Sample: <code>$("h1").shouldHave(partialText("ello Joh"))</code></p>
*
* @since 6.5.0
* @since 6.7.0
*/
@CheckReturnValue
@Nonnull
Expand All @@ -327,7 +327,7 @@ public static Condition partialText(String regex) {
*
* <p>Sample: <code>$("h1").should(partialTextCaseSensitive("ELLO jOH"))</code></p>
*
* @since 6.5.0
* @since 6.7.0
*/
@CheckReturnValue
@Nonnull
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/codeborne/selenide/SelenideConfig.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.codeborne.selenide;

import com.codeborne.selenide.impl.CiReportUrl;
import org.openqa.selenium.MutableCapabilities;

import static com.codeborne.selenide.AssertionMode.STRICT;
import static com.codeborne.selenide.Browsers.CHROME;
import static com.codeborne.selenide.FileDownloadMode.HTTPGET;
import static com.codeborne.selenide.SelectorMode.CSS;

import com.codeborne.selenide.impl.CiReportUrl;
import org.openqa.selenium.MutableCapabilities;

public class SelenideConfig implements Config {
private final PropertiesReader properties = new PropertiesReader("selenide.properties");

Expand Down Expand Up @@ -37,7 +37,7 @@ public class SelenideConfig implements Config {
private String downloadsFolder = getProperty("selenide.downloadsFolder", "build/downloads");
private String reportsUrl = new CiReportUrl().getReportsUrl(getProperty("selenide.reportsUrl", null));
private boolean fastSetValue = Boolean.parseBoolean(getProperty("selenide.fastSetValue", "false"));
private TextCheck textCheck = TextCheck.valueOf(getProperty("selenide.textCheck", TextCheck.FULL_TEXT.name()));
private TextCheck textCheck = TextCheck.valueOf(getProperty("selenide.textCheck", TextCheck.PARTIAL_TEXT.name()));
private SelectorMode selectorMode = SelectorMode.valueOf(getProperty("selenide.selectorMode", CSS.name()));
private AssertionMode assertionMode = AssertionMode.valueOf(getProperty("selenide.assertionMode", STRICT.name()));
private FileDownloadMode fileDownload = FileDownloadMode.valueOf(getProperty("selenide.fileDownload", HTTPGET.name()));
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/codeborne/selenide/TextCheck.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.codeborne.selenide;

/**
* @since 6.5.0
* @since 6.7.0
*/
public enum TextCheck {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public class Configuration {
/**
* Define behaviour of {@code $.shouldHave(text)}: full text or partial text.
*
* @since 6.5.0
* @since 6.7.0
*/
public static TextCheck textCheck = defaults.textCheck();

Expand Down

0 comments on commit ac0a54e

Please sign in to comment.