use of sample.pages.HomePage.Attribute in project spring-session by spring-projects.
the class HttpRedisJsonTest method createAttribute.
@Test
public void createAttribute() {
LoginPage login = HomePage.go(this.driver, LoginPage.class);
HomePage home = login.form().login(HomePage.class);
// @formatter:off
home = home.form().attributeName("Demo Key").attributeValue("Demo Value").submit(HomePage.class);
// @formatter:on
List<Attribute> attributes = home.attributes();
assertThat(attributes).extracting("attributeName").contains("Demo Key");
assertThat(attributes).extracting("attributeValue").contains("Demo Value");
}
use of sample.pages.HomePage.Attribute in project spring-session by spring-projects.
the class AttributeTests method createAttribute.
@Test
public void createAttribute() {
HomePage home = HomePage.go(this.driver, HomePage.class);
// @formatter:off
home = home.form().attributeName("a").attributeValue("b").submit(HomePage.class);
// @formatter:on
List<Attribute> attributes = home.attributes();
assertThat(attributes).hasSize(1);
Attribute row = attributes.get(0);
assertThat(row.getAttributeName()).isEqualTo("a");
assertThat(row.getAttributeValue()).isEqualTo("b");
}
Aggregations