-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(theme): add light theme * simplify svg and more theming * add outlines * revert fade * merge cleanup * fix some icons * further tweaks * remove linecap * readd shorter transition; disable hover for btn state * start to break up style
- Loading branch information
Showing
15 changed files
with
2,164 additions
and
1,855 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
const A11Y_OPTS = { | ||
runOnly: { | ||
type: "tag", | ||
values: ["section508", "best-practice", "wcag21aa", "wcag2aa"] | ||
} | ||
}; | ||
|
||
context("Accessibility (a11y)", () => { | ||
context("Logged out", () => { | ||
it.skip("overview", () => { | ||
cy.clearSession(); | ||
cy.setTheme("theme-light"); | ||
cy.visit("/account/login"); | ||
cy.injectAxe(); | ||
cy.wait(500); | ||
cy.checkA11y(A11Y_OPTS); | ||
}); | ||
}); | ||
|
||
context("Logged in", () => { | ||
beforeEach(() => { | ||
cy.clearSession(); | ||
cy.setTheme("theme-light"); | ||
cy.server(); | ||
// overview page | ||
cy.route("GET", "*api/v1/repos*", "fixture:overview_page.json"); | ||
// add repos page | ||
cy.route( | ||
"GET", | ||
"*api/v1/user/source/repos*", | ||
"fixture:add_repositories.json" | ||
); | ||
// settings page | ||
cy.route("GET", "*api/v1/repos/*/octocat", "fixture:repository.json"); | ||
// repo and build page | ||
cy.stubBuilds(); | ||
cy.stubBuild(); | ||
cy.stubStepsWithLogs(); | ||
// hooks page | ||
cy.route("GET", "*api/v1/hooks/github/octocat*", "fixture:hooks_5.json"); | ||
cy.route( | ||
"GET", | ||
"*api/v1/repos/*/octocat/builds/1*", | ||
"fixture:build_success.json" | ||
); | ||
cy.route( | ||
"GET", | ||
"*api/v1/repos/*/octocat/builds/2*", | ||
"fixture:build_failure.json" | ||
); | ||
cy.route( | ||
"GET", | ||
"*api/v1/repos/*/octocat/builds/3*", | ||
"fixture:build_running.json" | ||
); | ||
}); | ||
after(() => { | ||
cy.visit("/"); | ||
cy.server({ enable: false }); | ||
}); | ||
|
||
it.skip("overview", () => { | ||
cy.checkA11yForPage("/", A11Y_OPTS); | ||
}); | ||
|
||
it.skip("add repos", () => { | ||
cy.checkA11yForPage("/account/add-repos", A11Y_OPTS); | ||
}); | ||
|
||
it.skip("settings", () => { | ||
cy.checkA11yForPage("/github/octocat/settings", A11Y_OPTS); | ||
}); | ||
|
||
it.skip("repo page", () => { | ||
cy.checkA11yForPage("/someorg/somerepo", A11Y_OPTS); | ||
}); | ||
|
||
it.skip("hooks page", () => { | ||
cy.login("/github/octocat/hooks"); | ||
cy.injectAxe(); | ||
cy.wait(500); | ||
cy.get("[data-test=hook]").click({ multiple: true }); | ||
cy.checkA11y(A11Y_OPTS); | ||
}); | ||
|
||
it.skip("build page", () => { | ||
cy.login("/someorg/somerepo/1"); | ||
cy.injectAxe(); | ||
cy.wait(500); | ||
cy.get("[data-test=step-header]").click({ multiple: true }); | ||
cy.checkA11y(A11Y_OPTS); | ||
}); | ||
}); | ||
}); |
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
Oops, something went wrong.