<commit_before>package mobilestests_ios;

import java.io.FileNotFoundException;

import org.testng.Assert;
import org.testng.annotations.BeforeGroups;
import org.testng.annotations.Listeners;
import org.testng.annotations.Test;

import com.esotericsoftware.yamlbeans.YamlException;

import io.appium.java_client.SwipeElementDirection;
import pom_ios.main_tabs.RiotHomePageTabObjects;
import pom_ios.main_tabs.RiotRoomsTabPageObjects;
import utility.Constant;
import utility.RiotParentTest;
import utility.ScreenshotUtility;

/**
 * Tests on public rooms, on the rooms tab.
 * @author jeangb
 */
@Listeners({ ScreenshotUtility.class })
public class RiotPublicRoomsTests extends RiotParentTest{

private String riotUserADisplayName="riotuser1";
	
	/**
	 * Force using matrix.org and not custom one. </br>
	 * 1. Hit ROOMS tab. </br>
	 * 2. Hit ROOM DIRECTORY section to focus on the public rooms.  </br>
	 * Check that list of public rooms isn't empty. </br>
	 * 3. Scroll several times o the public rooms.  </br>
	 * After each scroll, check that the last room isn't the same that the previous.
	 * @throws InterruptedException 
	 */
	@Test(groups={"1driver_ios","11checkuser"}, priority=0)
	public void checkPublicRoomsList() throws InterruptedException{<commit_msg>Correction on last commit: changed name of a testng group.<commit_after>package mobilestests_ios;

import java.io.FileNotFoundException;

import org.testng.Assert;
import org.testng.annotations.BeforeGroups;
import org.testng.annotations.Listeners;
import org.testng.annotations.Test;

import com.esotericsoftware.yamlbeans.YamlException;

import io.appium.java_client.SwipeElementDirection;
import pom_ios.main_tabs.RiotHomePageTabObjects;
import pom_ios.main_tabs.RiotRoomsTabPageObjects;
import utility.Constant;
import utility.RiotParentTest;
import utility.ScreenshotUtility;

/**
 * Tests on public rooms, on the rooms tab.
 * @author jeangb
 */
@Listeners({ ScreenshotUtility.class })
public class RiotPublicRoomsTests extends RiotParentTest{

private String riotUserADisplayName="riotuser1";
	
	/**
	 * Force using matrix.org and not custom one. </br>
	 * 1. Hit ROOMS tab. </br>
	 * 2. Hit ROOM DIRECTORY section to focus on the public rooms.  </br>
	 * Check that list of public rooms isn't empty. </br>
	 * 3. Scroll several times o the public rooms.  </br>
	 * After each scroll, check that the last room isn't the same that the previous.
	 * @throws InterruptedException 
	 */
	@Test(groups={"1driver_ios","1checkuser"}, priority=0)
	public void checkPublicRoomsList() throws InterruptedException{
{'fraction_non_alphanumeric': 0.09394409937888198, 'fraction_numerical': 0.005822981366459627, 'mean_word_length': 5.121140142517815, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4742554', 'n_tokens_mistral': 808, 'n_tokens_neox': 770, 'n_words': 232}