/*******************************************************************************
* Copyright (c) 2005, 2014 springside.github.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
*******************************************************************************/
package org.springside.examples.quickstart.functional.gui;
import static org.assertj.core.api.Assertions.*;
import org.junit.Test;
import org.openqa.selenium.By;
import org.springside.examples.quickstart.functional.BaseSeleniumTestCase;
public class ProfileFT extends BaseSeleniumTestCase {
/**
* 修改用户资料.
*/
@Test
public void editProfile() {
s.open("/profile");
s.type(By.id("name"), "Kevin");
s.click(By.id("submit_btn"));
assertThat(s.isTextPresent("Kevin")).as("没有成功消息").isTrue();
}
}