<commit_before>/*
 * Copyright (C) 2013 salesforce.com, inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.auraframework.components.ui.modalOverlay;

import java.net.MalformedURLException;
import java.net.URISyntaxException;
import java.util.List;

import org.auraframework.test.WebDriverTestCase;
import org.auraframework.test.WebDriverTestCase.ExcludeBrowsers;
import org.auraframework.test.WebDriverUtil.BrowserType;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
@ExcludeBrowsers({ BrowserType.ANDROID_PHONE, BrowserType.ANDROID_TABLET, BrowserType.IPHONE, BrowserType.IPAD})
public class PanelModalOverlayUITest extends WebDriverTestCase {

    private static final String APP = "/uitest/panelTest.cmp";
    private final String MODAL_OVERLAY_BUTTON = ".panelDialogModalButton";
    private final String NONMODAL_OVERLAY_BUTTON = ".panelDialogNonModalButton";
    private final String PANEL_OVERLAY_BUTTON = ".panelOverlayButton";
    private final String MODAL_OVERLAY_CMP = ".uiPanelDialog";
    private final String PANEL_OVERLAY_CMP = ".uiPanelOverlay";
    private final String ACTIVE_ELEMENT = "return $A.test.getActiveElement()";
    private final String ACTIVE_ELEMENT_TEXT = "return $A.test.getActiveElementText()";
    private final String ESC_BUTTON = ".closeBtn";	
    private final String NEWOVERLAY_BUTTON = ".pressOverlay";	
	
    public PanelModalOverlayUITest(String name) {
        super(name);
    }

    /**
     * [Accessibility] modal overlay dialog closing on Esc key.
     * Test case for W-2396326
     * @throws MalformedURLException
     * @throws URISyntaxException
     * @throws InterruptedException 
     */
    public void testPressEscKeyOnModalOverlayDialog() throws MalformedURLException, URISyntaxException, InterruptedException{
    	verifyPressEscKeyOnModalAndNonModalOverlay(MODAL_OVERLAY_BUTTON, MODAL_OVERLAY_CMP);
    }<commit_msg>Disabling test from IE7 and IE8<commit_after>/*
 * Copyright (C) 2013 salesforce.com, inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.auraframework.components.ui.modalOverlay;

import java.net.MalformedURLException;
import java.net.URISyntaxException;
import java.util.List;

import org.auraframework.test.WebDriverTestCase;
import org.auraframework.test.WebDriverTestCase.ExcludeBrowsers;
import org.auraframework.test.WebDriverUtil.BrowserType;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
@ExcludeBrowsers({ BrowserType.ANDROID_PHONE, BrowserType.ANDROID_TABLET, BrowserType.IPHONE, BrowserType.IPAD, BrowserType.IE7, BrowserType.IE8})
public class PanelModalOverlayUITest extends WebDriverTestCase {

    private static final String APP = "/uitest/panelTest.cmp";
    private final String MODAL_OVERLAY_BUTTON = ".panelDialogModalButton";
    private final String NONMODAL_OVERLAY_BUTTON = ".panelDialogNonModalButton";
    private final String PANEL_OVERLAY_BUTTON = ".panelOverlayButton";
    private final String MODAL_OVERLAY_CMP = ".uiPanelDialog";
    private final String PANEL_OVERLAY_CMP = ".uiPanelOverlay";
    private final String ACTIVE_ELEMENT = "return $A.test.getActiveElement()";
    private final String ACTIVE_ELEMENT_TEXT = "return $A.test.getActiveElementText()";
    private final String ESC_BUTTON = ".closeBtn";	
    private final String NEWOVERLAY_BUTTON = ".pressOverlay";	
	
    public PanelModalOverlayUITest(String name) {
        super(name);
    }

    /**
     * [Accessibility] modal overlay dialog closing on Esc key.
     * Test case for W-2396326
     * @throws MalformedURLException
     * @throws URISyntaxException
     * @throws InterruptedException 
     */
    public void testPressEscKeyOnModalOverlayDialog() throws MalformedURLException, URISyntaxException, InterruptedException{
    	verifyPressEscKeyOnModalAndNonModalOverlay(MODAL_OVERLAY_BUTTON, MODAL_OVERLAY_CMP);
    }
{'fraction_non_alphanumeric': 0.07987346777382365, 'fraction_numerical': 0.006722024515618822, 'mean_word_length': 4.697072072072072, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5400733', 'n_tokens_mistral': 1497, 'n_tokens_neox': 1429, 'n_words': 407}