cn.aozhi.songify.functional.gui.ProfileFT.java Source code

Java tutorial

Introduction

Here is the source code for cn.aozhi.songify.functional.gui.ProfileFT.java

Source

/*******************************************************************************
 * Copyright (c) 2005, 2014 springside.github.io
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *******************************************************************************/
package cn.aozhi.songify.functional.gui;

import static org.assertj.core.api.Assertions.*;

import org.junit.Test;
import org.openqa.selenium.By;
import cn.aozhi.songify.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();
    }
}