-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70b7047
commit 7e47ceb
Showing
13 changed files
with
181 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+19.7 KB
...p-test-js-visual-testing-visual-test-take-and-screenshot-and-compare-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1173,6 +1173,18 @@ | |
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.3.tgz#bdfd69d61e464dcc81b25159c270d75a73c1a636" | ||
integrity sha512-Il2DtDVRGDcqjDtE+rF8iqg1CArehSK84HZJCT7AMITlyXRBpuPhqGLDQMowraqqu1coEaimg4ZOqggt6L6L+A== | ||
|
||
"@types/lodash.merge@~4.6.6": | ||
version "4.6.6" | ||
resolved "https://registry.yarnpkg.com/@types/lodash.merge/-/lodash.merge-4.6.6.tgz#b84b403c1d31bc42d51772d1cd5557fa008cd3d6" | ||
integrity sha512-IB90krzMf7YpfgP3u/EvZEdXVvm4e3gJbUvh5ieuI+o+XqiNEt6fCzqNRaiLlPVScLI59RxIGZMQ3+Ko/DJ8vQ== | ||
dependencies: | ||
"@types/lodash" "*" | ||
|
||
"@types/lodash@*": | ||
version "4.14.141" | ||
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.141.tgz#d81f4d0c562abe28713406b571ffb27692a82ae6" | ||
integrity sha512-v5NYIi9qEbFEUpCyikmnOYe4YlP8BMUdTcNCAquAKzu+FA7rZ1onj9x80mbnDdOW/K5bFf3Tv5kJplP33+gAbQ== | ||
|
||
"@types/q@^1.5.1": | ||
version "1.5.2" | ||
resolved "https://registry.yarnpkg.com/@types/q/-/q-1.5.2.tgz#690a1475b84f2a884fd07cd797c00f5f31356ea8" | ||
|
@@ -5256,9 +5268,11 @@ jest-each@^24.9.0: | |
version "1.0.0" | ||
dependencies: | ||
"@jest/types" "~24.9.0" | ||
"@types/lodash.merge" "~4.6.6" | ||
"@types/selenium-webdriver" "~4.0.3" | ||
browserstack-local "~1.4.2" | ||
jest-environment-node "~24.9.0" | ||
lodash.merge "~4.6.2" | ||
selenium-webdriver "~4.0.0-alpha.5" | ||
|
||
[email protected]: | ||
|
@@ -5923,6 +5937,11 @@ lodash.memoize@^4.1.2: | |
resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" | ||
integrity sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4= | ||
|
||
lodash.merge@~4.6.2: | ||
version "4.6.2" | ||
resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" | ||
integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== | ||
|
||
lodash.sortby@^4.7.0: | ||
version "4.7.0" | ||
resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { WebDriver, By } from 'selenium-webdriver'; | ||
|
||
describe('Github', () => { | ||
let driver: WebDriver; | ||
|
||
beforeAll(async () => { | ||
// eslint-disable-next-line | ||
// @ts-ignore | ||
driver = await global.__driver__({ | ||
'bstack:options': { | ||
sessionName: 'github', | ||
}, | ||
}); | ||
await driver.get('https://github.com/taktakpeops/jest-environment-browserstack'); | ||
}, 10000); | ||
|
||
afterAll(async () => { | ||
await driver.quit(); | ||
}); | ||
|
||
it('has an author', async () => { | ||
const authorSpan = await driver.findElement(By.css('.author')); | ||
const author = await authorSpan.getText(); | ||
expect(author).toBe('taktakpeops'); | ||
}); | ||
|
||
it('has a repository name', async () => { | ||
const repoSpan = await driver.findElement(By.css('h1.public strong')); | ||
const repo = await repoSpan.getText(); | ||
expect(repo).toBe('jest-environment-browserstack'); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { WebDriver, By } from 'selenium-webdriver'; | ||
|
||
describe('NPM', () => { | ||
let driver: WebDriver; | ||
|
||
beforeAll(async () => { | ||
// eslint-disable-next-line | ||
// @ts-ignore | ||
driver = await global.__driver__({ | ||
'bstack:options': { | ||
sessionName: 'npm', | ||
}, | ||
}); | ||
await driver.get('https://www.npmjs.com/package/jest-environment-browserstack'); | ||
}, 10000); | ||
|
||
afterAll(async () => { | ||
await driver.quit(); | ||
}); | ||
|
||
it('get title from NPM', async () => { | ||
const title = await driver.getTitle(); | ||
expect(title).toBe('jest-environment-browserstack - npm'); | ||
}); | ||
|
||
it('get name of the module', async () => { | ||
const titleBlock = await driver.findElement(By.css('.w-100.ph0-l.ph3.ph4-m span[title="jest-environment-browserstack"]')); | ||
const title = await titleBlock.getText(); | ||
expect(title).toBe('jest-environment-browserstack'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters