Skip to content

Commit

Permalink
Revert "test: FORMS-1527 Cypress test scripts for both export and pri…
Browse files Browse the repository at this point in the history
…nt temp…"
  • Loading branch information
abhilash-aot authored Oct 29, 2024
1 parent 4076e73 commit 4052899
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 261 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ dist
**/src/formio
**/cypress/**/videos
screenshots
downloads
node_modules

# Ignore only top-level package-lock.json
Expand Down
21 changes: 19 additions & 2 deletions tests/functional/cypress/e2e/form-design-advanceddata.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,22 @@ it('Checks the Container component', () => {
"key": "dataGrid",
"type": "datagrid",
"input": true,

"components": [
{
"label": "Children",
"key": "children",
"type": "datagrid",
"input": true,


"components": [
{
"label": "First Name",
"key": "firstName",
"type": "textfield",
"input": true,
"tableView": true
},
{
"label": "Gender",
"key": "gender",
Expand All @@ -109,7 +123,10 @@ it('Checks the Container component', () => {

}
]
})
}
]

})

cy.get('div.ace_content').type(pretty,{ parseSpecialCharSequences: false });
cy.get('button').contains('Save').click();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ it('Verify draft submission', () => {
cy.contains('h1', 'Your form has been submitted successfully');
cy.get('.mt-6 > :nth-child(1) > .v-btn > .v-btn__content > span').click();
//cy.get('div > .bg-primary').click();
cy.get('.v-data-table__tr > :nth-child(4)').contains('SUBMITTED').should('not.exist');
cy.get('.v-data-table__tr > :nth-child(4)').contains('SUBMITTED');
//Delete form after test run
cy.visit(`/${depEnv}/form/manage?f=${arrayValues[0]}`);
cy.waitForLoad();
Expand Down
251 changes: 0 additions & 251 deletions tests/functional/cypress/e2e/form-submission-export.cy.js

This file was deleted.

6 changes: 0 additions & 6 deletions tests/functional/cypress/support/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ export function formsettings(){
cy.get('#user').type(username);
cy.get('#password').type(password);
cy.get('.btn').click();
cy.get('[data-cy="help"]')
.should("have.attr", "href", "https://developer.gov.bc.ca/docs/default/component/chefs-techdocs")
.should("have.text", "Help");
cy.get('[data-cy="feedback"]')
.should("have.attr", "href", "https://chefs-fider.apps.silver.devops.gov.bc.ca/")
.should("have.text", "Feedback");
cy.get('[data-cy="createNewForm"]').click();
cy.get('.v-row > :nth-child(1) > .v-card > .v-card-title > span').contains('Form Title');

Expand Down

0 comments on commit 4052899

Please sign in to comment.