Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MARP-919 doc factory fix test for dev build #266

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.codeborne.selenide.Configuration;
import com.codeborne.selenide.FileDownloadMode;
import com.codeborne.selenide.Selenide;
import com.codeborne.selenide.SelenideElement;

@IvyWebTest
class WebTestApiExamplesIT {
Expand Down Expand Up @@ -79,7 +80,11 @@ void ivyDocApi(WebAppFixture fixture) {
$(withText("Task End")).shouldBe(visible);

open(EngineUrl.create().path("tasks").toUrl());
$(By.linkText("Task: View attached document")).shouldBe(visible).click();
$(By.id("tasksForm:tasks:0:taskName")).shouldBe(visible).click();
SelenideElement taskStartBtn = $(By.id("actionMenuForm:taskStartBtn"));
if (taskStartBtn.isDisplayed()) {
taskStartBtn.shouldBe(visible).click();
}
Selenide.switchTo().frame("iFrame");
$("h3").shouldHave(exactText("DocFactoryDemos: Attached Document"));
$("iframe").shouldBe(visible);
Expand Down
Loading