-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added cypress example (still with error)
- Loading branch information
1 parent
c147458
commit 46e36b4
Showing
10 changed files
with
1,395 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ node_modules | |
*/fullTestSuite.json | ||
upload.marker.json | ||
.currents | ||
.env | ||
.env | ||
cypress/ |
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,14 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<testsuites> | ||
<testsuite name="First Test Suite" timestamp="2024-11-20T05:26:28" tests="2" failures="1" time="3.238" file="cy-example/e2e/first.cy.js"> | ||
<testcase name="First Test Suite visits google" time="0" classname="visits google" failure="true" error="true" success="false"> | ||
<failure message="Timed out retrying after 4000ms: expected 'Google' to include 'Amazon'" type="AssertionError">AssertionError: Timed out retrying after 4000ms: expected 'Google' to include 'Amazon' | ||
at Context.eval (webpack:///./e2e/first.cy.js:4:15)</failure> | ||
</testcase> | ||
<testcase name="First Test Suite can search" time="3.238" classname="can search" failure="false" error="false" success="true"/> | ||
</testsuite> | ||
<testsuite name="Second Test Suite" timestamp="2024-11-20T05:26:40" tests="2" failures="0" time="4.33" file="cy-example/e2e/second.cy.js"> | ||
<testcase name="Second Test Suite visits google" time="1.174" classname="visits google" failure="false" error="false" success="true"/> | ||
<testcase name="Second Test Suite can search" time="3.156" classname="can search" failure="false" error="false" success="true"/> | ||
</testsuite> | ||
</testsuites> |
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,12 @@ | ||
{ | ||
"framework": "junit", | ||
"frameworkVersion": "13.16.0", | ||
"cliArgs": { | ||
"options": { "jUnitFile": "cy-example/combined-results.xml" }, | ||
"args": [] | ||
}, | ||
"frameworkConfig": { | ||
"originFramework": "cypress", | ||
"originFrameworkVersion": "13.16.0" | ||
} | ||
} |
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,16 @@ | ||
const { defineConfig } = require("cypress"); | ||
|
||
module.exports = defineConfig({ | ||
e2e: { | ||
supportFile: false, | ||
specPattern: "cy-example/e2e/*.cy.js", | ||
reporter: "cypress-junit-reporter", | ||
reporterOptions: { | ||
mochaFile: "cy-example/results-[hash].xml", | ||
toConsole: true, | ||
}, | ||
setupNodeEvents(on, config) { | ||
// implement node event listeners here | ||
}, | ||
}, | ||
}); |
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,11 @@ | ||
describe("First Test Suite", () => { | ||
it("visits google", () => { | ||
cy.visit("https://www.google.com"); | ||
cy.title().should("include", "Amazon"); | ||
}); | ||
|
||
it("can search", () => { | ||
cy.visit("https://www.google.com"); | ||
cy.get('[name="q"]').type("Cypress testing{enter}"); | ||
}); | ||
}); |
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,11 @@ | ||
describe("Second Test Suite", () => { | ||
it("visits google", () => { | ||
cy.visit("https://www.google.com"); | ||
cy.title().should("include", "Google"); | ||
}); | ||
|
||
it("can search", () => { | ||
cy.visit("https://www.google.com"); | ||
cy.get('[name="q"]').type("Cypress testing{enter}"); | ||
}); | ||
}); |
Oops, something went wrong.