Ejemplo n.º 1
0
        public void LoginAsFreeUser()
        {
            TestCaseId = 231;

            _loginActions.LoginWithFreeUser();
            _mainWindowResults.VerifyUserIsLoggedIn();
            TestRailClient.MarkTestsByStatus();

            //In CI side, fresh installation is performed
            TestCaseId = 197;
        }
Ejemplo n.º 2
0
        public async Task ConnectUsingQuickConnectFreeUser()
        {
            TestCaseId = 225;

            _loginWindow.LoginWithFreeUser();
            _mainWindow.QuickConnect();
            _mainWindowResults.CheckIfConnected();
            TestRailClient.MarkTestsByStatus();

            TestCaseId = 229;
            await _mainWindowResults.CheckIfCorrectIPAddressIsShownAsync();

            await _mainWindowResults.CheckIfCorrectCountryIsShownAsync();
        }
Ejemplo n.º 3
0
        public async Task QuickConnectWhileSecureCoreIsEnabled()
        {
            TestCaseId = 255;

            _loginWindow.LoginWithPlusUser();
            _mainWindow.EnableSecureCore();
            _mainWindow.QuickConnect();
            _mainWindowResults.CheckIfConnected();
            await _mainWindowResults.CheckIfCorrectIPAddressIsShownAsync();

            TestRailClient.MarkTestsByStatus();

            TestCaseId = 256;
            _mainWindow.DisconnectUsingSidebarButton();
            _mainWindowResults.CheckIfDisconnected();
        }
Ejemplo n.º 4
0
        public async Task ConnectAndDisconnectViaMapSecureCore()
        {
            TestCaseId = 253;

            _loginWindow.LoginWithPlusUser();
            _mainWindow.EnableSecureCore();
            _mainWindow.ConnectToCountryViaPinSecureCore("US");
            _mainWindow.WaitUntilConnected();
            await _mainWindowResults.CheckIfCorrectIPAddressIsShownAsync();

            TestRailClient.MarkTestsByStatus();

            TestCaseId = 254;

            _mainWindow.DisconnectFromCountryViaPinSecureCore("US");
            _mainWindowResults.CheckIfDisconnected();
        }
Ejemplo n.º 5
0
        public async Task ConnectUsingQuickConnectBasicUser()
        {
            TestCaseId = 221;

            _loginWindow.LoginWithBasicUser();
            _mainWindow.QuickConnect();
            _mainWindowResults.CheckIfConnected();
            await _mainWindowResults.CheckIfCorrectIPAddressIsShownAsync();

            await _mainWindowResults.CheckIfCorrectCountryIsShownAsync();

            TestRailClient.MarkTestsByStatus();

            TestCaseId = 222;
            _mainWindow.DisconnectUsingSidebarButton();
            _mainWindowResults.CheckIfDisconnected();
        }
Ejemplo n.º 6
0
        public async Task SelectConnectionByCountryVisionaryUser()
        {
            TestCaseId = 223;

            _loginWindow.LoginWithVisionaryUser();
            _mainWindow.ConnectByCountryName("Ukraine");
            _mainWindowResults.CheckIfConnected();
            await _mainWindowResults.CheckIfCorrectCountryIsShownAsync();

            await _mainWindowResults.CheckIfCorrectIPAddressIsShownAsync();

            TestRailClient.MarkTestsByStatus();

            TestCaseId = 224;

            _mainWindow.DisconnectByCountryName("Ukraine");
            _mainWindowResults.CheckIfDisconnected();
        }
Ejemplo n.º 7
0
        public async Task ConnectToFastestViaProfilePlusUser()
        {
            TestCaseId = 225;

            _loginWindow.LoginWithPlusUser();
            _mainWindow.ClickProfilesButton();
            _mainWindow.ConnectToAProfileByName("Fastest");
            _mainWindow.WaitUntilConnected();
            _mainWindowResults.CheckIfConnected();
            TestRailClient.MarkTestsByStatus();

            TestCaseId = 229;
            await _mainWindowResults.CheckIfCorrectIPAddressIsShownAsync();

            await _mainWindowResults.CheckIfCorrectCountryIsShownAsync();

            _mainWindow.DisconnectUsingSidebarButton();
            _mainWindowResults.CheckIfDisconnected();
        }
Ejemplo n.º 8
0
        public void CheckIfOpenAndCloseSavesSession()
        {
            TestCaseId = 204;

            _loginWindow.LoginWithPlusUser();
            _mainWindow.ClickHamburgerMenu()
            .HamburgerMenu.ClickSettings();
            _settingsWindow.ClickConnectionTab();
            _settingsWindow.EnableAutoConnectToFastestServer();
            KillProtonVPNProcessAndReopenIt();
            _mainWindow.WaitUntilConnected();
            _mainWindow.DisconnectUsingSidebarButton();
            TestRailClient.MarkTestsByStatus();

            TestCaseId = 205;
            _mainWindow.ClickHamburgerMenu()
            .HamburgerMenu.ClickSettings();
            _settingsWindow.ClickConnectionTab();
            _settingsWindow.DisableAutoConnect();
            KillProtonVPNProcessAndReopenIt();
            _mainWindowResults.CheckIfDisconnected();
        }
Ejemplo n.º 9
0
        public void CheckCustomDnsManipulation()
        {
            TestCaseId = 4578;

            _loginWindow.LoginWithPlusUser();
            _mainWindow.ClickHamburgerMenu()
            .HamburgerMenu.ClickSettings();
            _settingsWindow.ClickConnectionTab();
            _settingsWindow.EnableCustomDnsServers();
            _settingsWindow.DisableNetshieldForCustomDns();
            _settingsWindow.CloseSettings();
            _mainWindowResults.CheckIfNetshieldIsDisabled();
            TestRailClient.MarkTestsByStatus();

            TestCaseId = 4579;

            _mainWindow.ClickHamburgerMenu()
            .HamburgerMenu.ClickSettings();
            _settingsWindow.EnterCustomIpv4Address("8.8.8.8");
            _settingsWindow.CloseSettings();
            _mainWindow.QuickConnect();
            _settingsResult.CheckIfDnsAddressMatches("8.8.8.8");
            TestRailClient.MarkTestsByStatus();

            TestCaseId = 4581;

            _mainWindow.ClickHamburgerMenu()
            .HamburgerMenu.ClickSettings();
            _settingsWindow.RemoveDnsAddress();
            _settingsWindow.PressReconnect();
            _mainWindow.WaitUntilConnected();
            _settingsResult.CheckIfDnsAddressDoesNotMatch("8.8.8.8");

            _mainWindow.DisconnectUsingSidebarButton();
            _mainWindowResults.CheckIfDisconnected();
        }