Skip to content

Commit

Permalink
fix screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
VladSenyuta committed Apr 30, 2024
1 parent 741f027 commit 8c44758
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package io.kafbat.ui.smokesuite.schemas;

import static org.apache.commons.lang3.RandomUtils.nextInt;

import com.codeborne.selenide.Condition;
import com.codeborne.selenide.Selenide;
import io.kafbat.ui.BaseTest;
import io.kafbat.ui.api.model.CompatibilityLevel;
import io.kafbat.ui.models.Schema;
import io.kafbat.ui.utilities.FileUtil;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import org.testng.Assert;
Expand Down Expand Up @@ -99,7 +100,7 @@ public void compareVersionsCheck() {
.selectVersionFromDropDown(latestVersion)
.openRightVersionDdl()
.selectVersionFromDropDown(latestVersion - 1);
Selenide.screenshot("compareVersionsCheck_" + LocalDateTime.now());
Selenide.screenshot("compareVersionsCheck_" + nextInt(0, 5));
Assert.assertEquals(schemaCreateForm.getMarkedLinesNumber(), 21, "getMarkedLinesNumber()");
}

Expand Down

0 comments on commit 8c44758

Please sign in to comment.