Skip to content
Merged
Show file tree
Hide file tree
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 @@ -177,7 +177,7 @@ void getCellComponent_columnByKey_canClickAButton() {
Assertions.assertInstanceOf(Button.class, cellComponent);
var button = (Button) cellComponent;
test(button).click();
var notification = $(Notification.class).last();
var notification = find(Notification.class).last();
Assertions.assertEquals("Clicked!", test(notification).getText());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ void init() {
@Test
void login_generatesLoginEvent() {
test(view.login).login("user", "pwd");
Assertions.assertEquals(1, $(Span.class).from(view).all().size());
Span message = $(Span.class).from(view).withId("m1").first();
Assertions.assertEquals(1, find(Span.class).from(view).all().size());
Span message = find(Span.class).from(view).withId("m1").first();
Assertions.assertEquals(view.generateLoginMessage("user", "pwd"),
message.getText());
}
Expand All @@ -54,8 +54,8 @@ void login_disablesLoginComponent() {
void forgotPassword_generatesEvent() {
test(view.login).forgotPassword();

Assertions.assertEquals(1, $(Span.class).from(view).all().size());
Span message = $(Span.class).from(view).withId("m1").first();
Assertions.assertEquals(1, find(Span.class).from(view).all().size());
Span message = find(Span.class).from(view).withId("m1").first();
Assertions.assertEquals("forgot", message.getText());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ void login_generatesLoginEvent() {
login_.openOverlay();

login_.login("user", "pwd");
Assertions.assertEquals(1, $(Span.class).from(view).all().size());
Span message = $(Span.class).from(view).withId("m1").first();
Assertions.assertEquals(1, find(Span.class).from(view).all().size());
Span message = find(Span.class).from(view).withId("m1").first();
Assertions.assertEquals(view.generateLoginMessage("user", "pwd"),
message.getText());
}
Expand All @@ -66,8 +66,8 @@ void forgotPassword_generatesEvent() {
login_.openOverlay();
login_.forgotPassword();

Assertions.assertEquals(1, $(Span.class).from(view).all().size());
Span message = $(Span.class).from(view).withId("m1").first();
Assertions.assertEquals(1, find(Span.class).from(view).all().size());
Span message = find(Span.class).from(view).withId("m1").first();
Assertions.assertEquals("forgot", message.getText());
}

Expand Down
Loading
Loading