<commit_before>require File.join(File.dirname(__FILE__), "../../toolbox/webrobot/lib/webrobot_core")

describe "Local Admin - Remove User", :local => true do

	it "should login to Local Admin" do
		@selenium.login('admin', 'password', '<PASSWORD>')
		expect { @selenium.title.should eql("ADTRAN Neo") }.to_not raise_error
	end

	it "should remove the specified user" do
		@selenium.login('admin', 'password', '<PASSWORD>')
		expect { @selenium.title.should eql("ADTRAN Neo") }.to_not raise_error
		sleep 3
		@selenium.click(:xpath, '//*[@id="removeUser_wiz"]')
		@selenium.click_text_from_combobox(:id, 'removeUserWiz_comboBox-inputEl', "Automated User")	
		sleep 5
		@selenium.click(:xpath, '//*[@id="removeUserWizard_next_btn"]')
		@selenium.click(:xpath, '//*[@id="removeUserWizard_save_btn"]')
		sleep 5

		@selenium.click(:xpath, '//*[@id="removeUser_wiz"]')
		@selenium.click_text_from_combobox(:id, 'removeUserWiz_comboBox-inputEl', "Reassign Test")	
		sleep 5
		@selenium.click(:xpath, '//*[@id="removeUserWizard_next_btn"]')
		@selenium.click(:xpath, '//*[@id="removeUserWizard_save_btn"]')<commit_msg>Modify remove user with new ID and hope it works<commit_after>require File.join(File.dirname(__FILE__), "../../toolbox/webrobot/lib/webrobot_core")

describe "Local Admin - Remove User", :local => true do

	it "should login to Local Admin" do
		@selenium.login('admin', 'password', '<PASSWORD>')
		expect { @selenium.title.should eql("ADTRAN Neo") }.to_not raise_error
	end

	it "should remove the specified user" do
		@selenium.login('admin', 'password', '<PASSWORD>')
		expect { @selenium.title.should eql("ADTRAN Neo") }.to_not raise_error
		sleep 3
		@selenium.click(:xpath, '//*[@id="removeUser_wiz"]')
		@selenium.click_text_from_combobox(:name, 'removeUserWizard_window_removeUser_wizard_user_combobox-inputEl', "Automated User")	
		sleep 5
		@selenium.click(:xpath, '//*[@id="removeUserWizard_next_btn"]')
		@selenium.click(:xpath, '//*[@id="removeUserWizard_save_btn"]')
		sleep 5

		@selenium.click(:xpath, '//*[@id="removeUser_wiz"]')
		@selenium.click_text_from_combobox(:name, 'removeUserWizard_window_removeUser_wizard_user_combobox-inputEl', "Reassign Test")	
		sleep 5
		@selenium.click(:xpath, '//*[@id="removeUserWizard_next_btn"]')
		@selenium.click(:xpath, '//*[@id="removeUserWizard_save_btn"]')
{'fraction_non_alphanumeric': 0.17705199828104856, 'fraction_numerical': 0.0034379028792436614, 'mean_word_length': 6.141104294478527, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '5821267', 'n_tokens_mistral': 927, 'n_tokens_neox': 844, 'n_words': 152}