Adds Cypress Axe and addition e2e tests#582
Open
Oliver-ctrlo wants to merge 3 commits intoctrlo:devfrom
Open
Conversation
Contributor
Oliver-ctrlo
commented
Oct 14, 2025
- Cleaned / modified original tests to use commands for consistency.
- Commented out some of the failing tests/issues to stop cypress erroring on know issues.
- Added cypress axe for WCAG accessibility testing within test 15
- Removed the duplicate test 8 file called data-table as these tests are located elsewhere.
- Added new test sets for the following areas: table permissions, table actions, curvals, Views, data tables, WCAG and adding/editing a record.
…inal e2e test set
Post peer review minor corrections and improvements.
pawelwlod
reviewed
Jan 13, 2026
| }); | ||
|
|
||
| context("Basic Add/Delete tests", () => { | ||
| // Skipped test: known issue where error not appearing for invalid shorname. |
There was a problem hiding this comment.
Minor spelling mistake in comment: "shorname".
|
|
||
| //commented out the following because they require records in the table to appear | ||
| //cy.contains("a", "Download records").should("be.visible"); | ||
| //cy.contains("a", "Field Data Purge").should("be.visible"); |
There was a problem hiding this comment.
Are these commented out lines above needed if not used?
| `/bulk/clone/`, | ||
| `/bulk/update/`, | ||
| `/import/`, | ||
| // `/view/0`, |
There was a problem hiding this comment.
Is this commented code needed?
If there is an issue, maybe it could be stated why for clarity.
| //No way to check upload progress so wait 5s | ||
| cy.wait(5000); | ||
|
|
||
| // Check upload finished without errs |
| permissionObject[permissionName] = true; | ||
| }); | ||
| cy.setTablePermissionsByShortName(table_shortname, permissionObject); | ||
| // cy.addUserToDefaultGroup('test@example.com'); |
| expect(firstFive).to.deep.equal(sortedDesc); | ||
| }); | ||
| cy.get('span.dt-column-title[role="button"]').contains('Number Field').click(); | ||
| //cy.contains('span.dt-column-title[role="button"]', 'Number Field').click(); |
| import { ICurvalLayoutBuilder } from "../../support/builders/layout/interfaces"; | ||
| import { goodPassword, goodUser } from "../../support/constants"; | ||
|
|
||
| describe("Ceate/edit curvals", () => { |
| }); | ||
|
|
||
| // Update all Date Fields | ||
| const dateStr = '2222-01-30'; |
| //cy.get("button.btn-xs[data-delete='rule']") | ||
| //.eq(1) | ||
| //.click(); | ||
| //Someone owes me a drink! |
There was a problem hiding this comment.
Does the commented code have errors?
And is the last comment needed?
| bulkImportRecords(csvFilePath?: string): Chainable; | ||
| logout(): Chainable; | ||
| deleteCurrentView(): Chainable; | ||
| deleteAllViewsForTable(tableName: string): Chainable; |
There was a problem hiding this comment.
Any way this could potentially be better formatted?
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.