Deployed the page to Github Pages.

This commit is contained in:
Batuhan Berk Başoğlu 2024-11-03 21:30:09 -05:00
parent 1d79754e93
commit 2c89899458
Signed by: batuhan-basoglu
SSH key fingerprint: SHA256:kEsnuHX+qbwhxSAXPUQ4ox535wFHu/hIRaa53FzxRpo
62797 changed files with 6551425 additions and 15279 deletions

View file

@ -0,0 +1,41 @@
Use jasmine-spec-reporter with Protractor
=========================================
The `jasmine-spec-reporter` can be used to enhance your [Protractor](https://github.com/angular/protractor) tests execution report.
## Protractor configuration
In your Protractor configuration file:
```javascript
let SpecReporter = require('jasmine-spec-reporter').SpecReporter;
exports.config = {
// your config here ...
onPrepare: function () {
jasmine.getEnv().addReporter(new SpecReporter({
spec: {
displayStacktrace: true
}
}));
}
}
```
## Remove protractor dot reporter
In your protractor configuration file, add the print function in the `jasmineNodeOpts` section:
```javascript
jasmineNodeOpts: {
...
print: function() {}
}
```
## Example
You can find an example in this directory:
```bash
npm install
npm test
```

View file

@ -0,0 +1,18 @@
{
"name": "protractor-example",
"version": "1.0.0",
"description": "a protractor example",
"scripts": {
"postinstall": "webdriver-manager update --gecko false --versions.chrome=83.0.4103.39",
"test": "protractor protractor.conf.js"
},
"author": "Bastien Caudan",
"license": "Apache-2.0",
"dependencies": {
"jasmine-spec-reporter": "file:../../"
},
"devDependencies": {
"protractor": "^5.4.2",
"webdriver-manager": "^12.1.5"
}
}

View file

@ -0,0 +1,32 @@
let SpecReporter = require('jasmine-spec-reporter').SpecReporter;
exports.config = {
framework: 'jasmine2',
jasmineNodeOpts: {
showColors: true,
silent: true,
defaultTimeoutInterval: 360000,
print: function () {
}
},
specs: [
'./spec/protractor-spec.js'
],
capabilities: {
browserName: 'chrome',
'chromeOptions': {
args: ['--test-type']
}
},
logLevel: 'WARN',
onPrepare: function () {
jasmine.getEnv().addReporter(new SpecReporter({
spec: {
displayStacktrace: true
},
summary: {
displayDuration: false
}
}));
}
};

View file

@ -0,0 +1,11 @@
describe('angularjs homepage', () => {
it('should greet the named user', () => {
browser.get('http://www.angularjs.org');
element(by.model('yourName')).sendKeys('Julie');
const greeting = element(by.binding('yourName'));
expect(greeting.getText()).toEqual('Hello Julie!');
})
});