Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
So long and thanks for all the fish, protractor!
- Loading branch information
1 parent
ea123fd
commit 0394ab7
Showing
10 changed files
with
4,937 additions
and
5,380 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { defineConfig } from 'cypress'; | ||
import Browser = Cypress.Browser; | ||
|
||
const puppeteer = require('puppeteer'); | ||
|
||
const findPuppeteer: () => Promise<Browser> = async () => { | ||
const browserPath = puppeteer.executablePath(); | ||
const browser = await puppeteer.launch(); | ||
const version = await browser.version(); | ||
const majorVersion = parseInt(version.split('/')[1]); | ||
|
||
return { | ||
name: 'chromium', | ||
family: 'chromium', | ||
displayName: `Puppeteer - ${version}`, | ||
version: version, | ||
majorVersion: majorVersion, | ||
path: browserPath, | ||
channel: 'stable', | ||
isHeaded: false, | ||
isHeadless: true, | ||
}; | ||
}; | ||
|
||
export default defineConfig({ | ||
e2e: { | ||
'baseUrl': 'http://localhost:4200', | ||
supportFile: false, | ||
video: false, | ||
setupNodeEvents: (on, config) => { | ||
return findPuppeteer().then((browser) => { | ||
config.browsers.push(browser); | ||
return config; | ||
}); | ||
}, | ||
}, | ||
}); |
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,6 @@ | ||
describe('My First Test', () => { | ||
it('should display message saying hello world', () => { | ||
cy.visit('/'); | ||
cy.contains('Hello World!'); | ||
}); | ||
}); |
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,8 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"include": ["**/*.ts"], | ||
"compilerOptions": { | ||
"sourceMap": false, | ||
"types": ["cypress"] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.