Skip to content

Commit

Permalink
[JS] Removing duplicate variable declaration of IE from capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
harsha509 committed Feb 16, 2021
1 parent 08c3874 commit dccf4dd
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 16 deletions.
1 change: 0 additions & 1 deletion javascript/node/selenium-webdriver/lib/capabilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ const Browser = {
CHROME: 'chrome',
EDGE: 'MicrosoftEdge',
FIREFOX: 'firefox',
IE: 'internet explorer',
INTERNET_EXPLORER: 'internet explorer',
SAFARI: 'safari',
OPERA: 'opera',
Expand Down
2 changes: 1 addition & 1 deletion javascript/node/selenium-webdriver/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions javascript/node/selenium-webdriver/test/cookie_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ suite(function (env) {
return assertHasCookies(cookie1, cookie2)
})

ignore(env.browsers(Browser.IE)).it(
ignore(env.browsers(Browser.INTERNET_EXPLORER)).it(
'only returns cookies visible to the current page',
async function () {
const cookie1 = createCookieSpec()
Expand Down Expand Up @@ -166,7 +166,7 @@ suite(function (env) {
await assertHasCookies()
})

ignore(env.browsers(Browser.FIREFOX, Browser.IE)).it(
ignore(env.browsers(Browser.FIREFOX, Browser.INTERNET_EXPLORER)).it(
'should retain cookie expiry',
async function () {
let expirationDelay = 5 * 1000
Expand All @@ -189,7 +189,7 @@ suite(function (env) {
}
)

ignore(env.browsers(Browser.FIREFOX, Browser.IE, Browser.SAFARI)).it(
ignore(env.browsers(Browser.FIREFOX, Browser.INTERNET_EXPLORER, Browser.SAFARI)).it(
'can add same site cookie property to `Strict`',
async function () {
let cookie = createSameSiteCookieSpec('Strict')
Expand All @@ -201,7 +201,7 @@ suite(function (env) {
}
)

ignore(env.browsers(Browser.FIREFOX, Browser.IE, Browser.SAFARI)).it(
ignore(env.browsers(Browser.FIREFOX, Browser.INTERNET_EXPLORER, Browser.SAFARI)).it(
'can add same site cookie property to `Lax`',
async function () {
let cookie = createSameSiteCookieSpec('Lax')
Expand All @@ -213,7 +213,7 @@ suite(function (env) {
}
)

ignore(env.browsers(Browser.IE, Browser.SAFARI)).it(
ignore(env.browsers(Browser.INTERNET_EXPLORER, Browser.SAFARI)).it(
'can add same site cookie property to `None` when cookie is Secure',
async function () {
let cookie = createSameSiteCookieSpec('None', {
Expand All @@ -228,7 +228,7 @@ suite(function (env) {
}
)

ignore(env.browsers(Browser.IE, Browser.SAFARI)).it(
ignore(env.browsers(Browser.INTERNET_EXPLORER, Browser.SAFARI)).it(
'throws an error if same site is set to `None` and the cookie is not Secure',
async function () {
let cookie = createSameSiteCookieSpec('None')
Expand All @@ -244,7 +244,7 @@ suite(function (env) {
}
)

ignore(env.browsers(Browser.IE, Browser.SAFARI)).it(
ignore(env.browsers(Browser.INTERNET_EXPLORER, Browser.SAFARI)).it(
'throws an error if same site cookie property is invalid',
async function () {
let cookie = createSameSiteCookieSpec('Foo')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ suite(function (env) {
})

// IE only supports short version option[selected].
ignore(browsers(Browser.IE)).it(
ignore(browsers(Browser.INTERNET_EXPLORER)).it(
'should be able to find element by boolean attribute',
async function () {
await driver.get(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ suite(function (env) {
return execute('return [[1, 2, [3]]]').then(verifyJson([[1, 2, [3]]]))
})

ignore(env.browsers(Browser.IE)).it(
ignore(env.browsers(Browser.INTERNET_EXPLORER)).it(
'can return empty object literal',
function () {
return execute('return {}').then(verifyJson({}))
Expand Down
2 changes: 1 addition & 1 deletion javascript/node/selenium-webdriver/test/logging_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ test.suite(function (env) {
// Logging API not supported in Marionette.
// Logging API not supported in Safari.
test
.ignore(env.browsers(Browser.IE, Browser.SAFARI, Browser.FIREFOX))
.ignore(env.browsers(Browser.INTERNET_EXPLORER, Browser.SAFARI, Browser.FIREFOX))
.describe('logging', function () {
var driver

Expand Down
4 changes: 2 additions & 2 deletions javascript/node/selenium-webdriver/test/proxy_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ test.suite(function (env) {
// Proxy support not implemented.
test
.ignore(
env.browsers(Browser.CHROME, Browser.IE, Browser.SAFARI, Browser.FIREFOX)
env.browsers(Browser.CHROME, Browser.INTERNET_EXPLORER, Browser.SAFARI, Browser.FIREFOX)
)
.describe('manual proxy settings', function () {
it('can configure HTTP proxy host', async function () {
Expand Down Expand Up @@ -175,7 +175,7 @@ test.suite(function (env) {
// Safari does not support proxies.
test
.ignore(
env.browsers(Browser.IE, Browser.SAFARI, Browser.CHROME, Browser.FIREFOX)
env.browsers(Browser.INTERNET_EXPLORER, Browser.SAFARI, Browser.CHROME, Browser.FIREFOX)
)
.describe('pac proxy settings', function () {
it('can configure proxy through PAC file', async function () {
Expand Down
4 changes: 2 additions & 2 deletions javascript/node/selenium-webdriver/testing/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function getBrowsersToTestFromEnv() {
const parts = spec.split(/:/, 3)
let name = parts[0]
if (name === 'ie') {
name = Browser.IE
name = Browser.INTERNET_EXPLORER
} else if (name === 'edge') {
name = Browser.EDGE
}
Expand All @@ -126,7 +126,7 @@ function getAvailableBrowsers() {
{ 'ms:edgeChromium': true },
],
[firefox.locateSynchronously, Browser.FIREFOX],
[ie.locateSynchronously, Browser.IE],
[ie.locateSynchronously, Browser.INTERNET_EXPLORER],
[safari.locateSynchronously, Browser.SAFARI],
[opera.locateSynchronously, Browser.OPERA],
]
Expand Down

0 comments on commit dccf4dd

Please sign in to comment.