forked from gitbrent/bootstrap4-toggle
-
-
Notifications
You must be signed in to change notification settings - Fork 5
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 #41 from palcarazm:palcarazm/issue38
feat: Toggles focusable from the keyboard
- Loading branch information
Showing
12 changed files
with
110 additions
and
7 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,26 @@ | ||
/// <reference types="cypress" /> | ||
require('cypress-plugin-tab'); | ||
import PageModel from "../support/pagemodel"; | ||
|
||
describe("Layout feature", () => { | ||
context("Given ECMAS bootstrap toggle interface",()=>{ | ||
testCase("ecmas"); | ||
}); | ||
context("Given jQuery bootstrap toggle interface",()=>{ | ||
testCase("jquery"); | ||
}); | ||
}); | ||
|
||
function testCase(bstInterface) { | ||
context("When previous element is selected and tab is pressed", () => { | ||
const data_test = 'layout'; | ||
it("Then toggle is focused", () => { | ||
PageModel.load(bstInterface, data_test); | ||
PageModel.getTests().each(($test) => { | ||
cy.wrap($test) | ||
.find("input.form-control") | ||
.tab().should('have.class','toggle'); | ||
}); | ||
}); | ||
}); | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.