-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
692 additions
and
127 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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { clickCheckbox } from '../common.js' | ||
import { checkCheckbox } from '../common.js' | ||
|
||
const outliersCheckboxEl = 'option-outliers-enabled-checkbox' | ||
|
||
export const clickOutliersCheckbox = () => clickCheckbox(outliersCheckboxEl) | ||
export const checkOutliersCheckbox = () => checkCheckbox(outliersCheckboxEl) |
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,100 @@ | ||
export const colTotalsOptionEl = 'option-col-totals' | ||
const colSubTotalsOptionEl = 'option-col-subtotals' | ||
const rowTotalsOptionEl = 'option-row-totals' | ||
const rowSubTotalsOptionEl = 'option-row-subtotals' | ||
|
||
export const expectColumnsTotalsToBeDisabled = () => | ||
cy | ||
.getBySel(colTotalsOptionEl) | ||
.find('[type="checkbox"]') | ||
.should('be.disabled') | ||
|
||
export const expectColumnsTotalsToBeEnabled = () => | ||
cy | ||
.getBySel(colTotalsOptionEl) | ||
.find('[type="checkbox"]') | ||
.should('not.be.disabled') | ||
|
||
export const expectColumnsTotalsToBeChecked = () => | ||
cy | ||
.getBySel(colTotalsOptionEl) | ||
.find('[type="checkbox"]') | ||
.should('be.checked') | ||
|
||
export const expectColumnsTotalsToBeUnchecked = () => | ||
cy | ||
.getBySel(colTotalsOptionEl) | ||
.find('[type="checkbox"]') | ||
.should('not.be.checked') | ||
|
||
export const expectColumnsSubTotalsToBeDisabled = () => | ||
cy | ||
.getBySel(colSubTotalsOptionEl) | ||
.find('[type="checkbox"]') | ||
.should('be.disabled') | ||
|
||
export const expectColumnsSubTotalsToBeEnabled = () => | ||
cy | ||
.getBySel(colSubTotalsOptionEl) | ||
.find('[type="checkbox"]') | ||
.should('be.enabled') | ||
|
||
export const expectColumnsSubTotalsToBeChecked = () => | ||
cy | ||
.getBySel(colSubTotalsOptionEl) | ||
.find('[type="checkbox"]') | ||
.should('be.checked') | ||
|
||
export const expectColumnsSubTotalsToBeUnchecked = () => | ||
cy | ||
.getBySel(colSubTotalsOptionEl) | ||
.find('[type="checkbox"]') | ||
.should('not.be.checked') | ||
|
||
export const expectRowsTotalsToBeDisabled = () => | ||
cy | ||
.getBySel(rowTotalsOptionEl) | ||
.find('[type="checkbox"]') | ||
.should('be.disabled') | ||
|
||
export const expectRowsTotalsToBeEnabled = () => | ||
cy | ||
.getBySel(rowTotalsOptionEl) | ||
.find('[type="checkbox"]') | ||
.should('be.enabled') | ||
|
||
export const expectRowsTotalsToBeChecked = () => | ||
cy | ||
.getBySel(rowTotalsOptionEl) | ||
.find('[type="checkbox"]') | ||
.should('be.checked') | ||
|
||
export const expectRowsTotalsToBeUnchecked = () => | ||
cy | ||
.getBySel(rowTotalsOptionEl) | ||
.find('[type="checkbox"]') | ||
.should('not.be.checked') | ||
|
||
export const expectRowsSubTotalsToBeDisabled = () => | ||
cy | ||
.getBySel(rowSubTotalsOptionEl) | ||
.find('[type="checkbox"]') | ||
.should('be.disabled') | ||
|
||
export const expectRowsSubTotalsToBeEnabled = () => | ||
cy | ||
.getBySel(rowSubTotalsOptionEl) | ||
.find('[type="checkbox"]') | ||
.should('be.enabled') | ||
|
||
export const expectRowsSubTotalsToBeChecked = () => | ||
cy | ||
.getBySel(rowSubTotalsOptionEl) | ||
.find('[type="checkbox"]') | ||
.should('be.checked') | ||
|
||
export const expectRowsSubTotalsToBeUnchecked = () => | ||
cy | ||
.getBySel(rowSubTotalsOptionEl) | ||
.find('[type="checkbox"]') | ||
.should('not.be.checked') |
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 |
---|---|---|
@@ -1,7 +1,14 @@ | ||
const valueCellEl = 'visualization-value-cell' | ||
const headerCellEl = 'visualization-column-header' | ||
|
||
export const clickTableValueCell = (index) => | ||
cy.getBySel(valueCellEl).eq(index).click() | ||
|
||
export const expectTableValueCellsToHaveLength = (length) => | ||
cy.getBySel(valueCellEl).should('have.length', length) | ||
|
||
export const expectTableValueCellToContainValue = (index, value) => | ||
cy.getBySel(valueCellEl).eq(index).contains(value) | ||
|
||
export const clickTableHeaderCell = (name) => | ||
cy.getBySel(headerCellEl).contains(name).click() |
Oops, something went wrong.