Projekt

Obecné

Profil

« Předchozí | Další » 

Revize b11af9b1

Přidáno uživatelem Jakub Schenk před asi 2 roky(ů)

Testing cleanup + readme

cleaning testing, adding new comments to user creation frontend, adding readme

Zobrazit rozdíly:

Backend/FrontendTesting/LinksTesting.cs
21 21
        public By usernameField = By.Id("login_username");
22 22
        public By passwordField = By.Id("login_password");
23 23
        public By loginButton = By.XPath("/html/body/div[1]/div/div/div[2]/main/form/div[3]/div/div/div/button");
24
        public string[] usernames = { "admin", "annotator1"};
25
        public string[] passwords = { "admin", "password"};
24
        public string[] usernames = { "admin", "annotator1" };
25
        public string[] passwords = { "admin", "password" };
26 26
        public By shouldBeEmpty = By.Id("__next");
27 27
        //urls 0-4 are for admin only, url 5 is for annotator only
28 28
        public string[] urls = { "http://localhost:3000/documents/admin", "http://localhost:3000/users", "http://localhost:3000/tags", "http://localhost:3000/classes", "http://localhost:3000/export", "http://localhost:3000/documents/annotator" };
......
39 39
        public void Login_User(string username, string password, bool driverChrome)
40 40
        {
41 41
            IWebDriver driver;
42
            if(driverChrome) driver= Drivers.cDriver;
42
            if (driverChrome) driver = Drivers.cDriver;
43 43
            else driver = Drivers.fDriver;
44 44
            driver.Navigate().GoToUrl(url);
45 45
            Thread.Sleep(1000);

Také k dispozici: Unified diff