Skip to content

Commit

Permalink
Add test for url overwrite demo
Browse files Browse the repository at this point in the history
  • Loading branch information
DrRataplan committed Oct 24, 2023
1 parent ecf7032 commit 36cafb3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { defineConfig } from "cypress";
export default defineConfig({
e2e: {
baseUrl: 'http://localhost:8090/demo/',
experimentalStudio: true,

setupNodeEvents(on, config) {
// implement node event listeners here
Expand Down
7 changes: 7 additions & 0 deletions cypress/e2e/submission-url-overwrite.cy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
describe('submission-url-overwrite demo', () => {
it('passes', () => {
cy.visit('localhost:8090/demo/submission-url-overwrite.html')
cy.get('.widget').type('some data{enter}');
cy.get('fx-output').shadow().find('#value').should('have.text', 'some data');
})
})
8 changes: 8 additions & 0 deletions cypress/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["es5", "dom"],
"types": ["cypress", "node"]
},
"include": ["**/*.ts"]
}

0 comments on commit 36cafb3

Please sign in to comment.