-
-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from oslabs-beta/main
Spearmint Version 5.0.0
- Loading branch information
Showing
65 changed files
with
2,375 additions
and
560 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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
const Application = require('spectron').Application; | ||
const path = require('path'); | ||
const chai = require('chai'); | ||
const chaiAsPromised = require('chai-as-promised'); | ||
|
||
// specifies the path of the application to launch | ||
const electronPath = require('electron'); | ||
|
||
// tell spectron to look and use the main.js file + package.json located 2 levels above | ||
const appPath = path.join(__dirname, '../..'); | ||
|
||
|
||
// instantiates the spearmint application given the optional paramaters of the Application API | ||
const app = new Application({ | ||
path: electronPath, // string path to the Electron application executable to launch | ||
args: [appPath], // array of paths to find the executable files and package.json | ||
}); | ||
|
||
// define the use of chai and chai as promised packages | ||
global.before(function () { | ||
chai.should(); | ||
chai.use(chaiAsPromised); | ||
}); | ||
|
||
describe('Application Accessibility Audit', function () { | ||
this.timeout(10000); | ||
|
||
beforeEach(function () { | ||
return app.start(); | ||
}); | ||
|
||
afterEach(function () { | ||
if (app && app.isRunning()) { | ||
return app.stop(); | ||
} | ||
}); | ||
|
||
it('Audits Accessibility', function (done) { | ||
app.client.auditAccessibility().then(function (audit) { | ||
if (audit.failed) { | ||
console.error('Please address the following accessibility issues in your application: \n', audit.results) | ||
} | ||
else { | ||
console.log('No accessibility issues have been found.') | ||
} | ||
done() | ||
}) | ||
}); | ||
}); |
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,41 @@ | ||
const Application = require('spectron').Application; | ||
const path = require('path'); | ||
const assert = require('assert'); | ||
|
||
// specifies the path of the application to launch | ||
const electronPath = require('electron'); | ||
|
||
// tell spectron to look and use the main.js file + package.json located 2 levels above | ||
const appPath = path.join(__dirname, '../..'); | ||
|
||
// instantiates the spearmint application given the optional paramaters of the Application API | ||
const app = new Application({ | ||
path: electronPath, // string path to the Electron application executable to launch | ||
args: [appPath], // array of paths to find the executable files and package.json | ||
}); | ||
|
||
|
||
describe('Application Accessibility Audit', function () { | ||
this.timeout(10000); | ||
|
||
beforeEach(function () { | ||
return app.start(); | ||
}); | ||
|
||
afterEach(function () { | ||
if (app && app.isRunning()) { | ||
return app.stop(); | ||
} | ||
}); | ||
|
||
it('Audits Accessibility', function () { | ||
return app.client.auditAccessibility().then(function (audit) { | ||
if (audit.failed) { | ||
console.error('Please address the following accessibility issues in your application: \n', audit.results) | ||
} | ||
else { | ||
console.log('No accessibility issues have been found.') | ||
} | ||
}) | ||
}); | ||
}); |
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
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
13 changes: 13 additions & 0 deletions
13
src/components/AccTestComponent/AccTestTypes/AccTestTypes.module.scss
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,13 @@ | ||
#AccTestTypesComponent{ | ||
margin-right: 35px; | ||
} | ||
|
||
#AccTestTypesLabel { | ||
display: block; | ||
margin-bottom: 6px; | ||
} | ||
|
||
.AccTestTypesInput{ | ||
margin-top: 4px; | ||
min-height: 35px; | ||
} |
23 changes: 23 additions & 0 deletions
23
src/components/AccTestComponent/AccTestTypes/AccTestTypes.tsx
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,23 @@ | ||
import React from 'react'; | ||
import styles from './AccTestTypes.module.scss'; | ||
|
||
const AccTestTypes = ({ dispatch, action, currTypes }) => { | ||
const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => { | ||
dispatch(action(e.target.value)); | ||
}; | ||
|
||
return ( | ||
<div id={styles.AccTestTypesComponent}> | ||
<label id={styles.AccTestTypesLabel} for='accTestTypes'> | ||
Choose Type of Accessibility Test | ||
</label> | ||
<select value={currTypes} id='accTestTypes' className={styles.AccTestTypesInput} onChange={handleChange}> | ||
<option value='html'>HTML</option> | ||
<option value='react'>React</option> | ||
<option value='puppeteer'>Puppeteer</option> | ||
</select> | ||
</div> | ||
); | ||
}; | ||
|
||
export default AccTestTypes; |
15 changes: 15 additions & 0 deletions
15
src/components/AccTestComponent/CatTagFilter/CatTagFilter.module.scss
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,15 @@ | ||
@import '../../../assets/stylesheets/fonts.scss'; | ||
@import '../../../assets/stylesheets/colors.scss'; | ||
|
||
#CatTagFilter { | ||
font-weight: bold; | ||
font-size: 0.75rem; | ||
position: relative; | ||
margin-left: 5px; | ||
margin-top: 10px; | ||
z-index: 3; | ||
|
||
#accTestCatTypes:focus { | ||
border: 2px solid darkblue; | ||
} | ||
} |
Oops, something went wrong.