Skip to content

Commit

Permalink
Merge pull request #15 from hammzj/dev/revert-back-to-ts
Browse files Browse the repository at this point in the history
chg:quick revert back to typescript only
  • Loading branch information
hammzj authored Apr 18, 2024
2 parents 168926a + 8efc2fc commit 75d5e3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hammzj/cypress-page-object",
"version": "2.0.4",
"version": "2.1.1",
"description": "A set of template classes and guides to help with developing component and page objects in Cypress.",
"author": "Zachary Hamm <[email protected]>",
"license": "MIT",
Expand Down Expand Up @@ -38,13 +38,13 @@
"test:cypress:run:e2e": "cypress run --e2e --browser electron"
},
"dependencies": {
"@types/node": "^20.12.7",
"lodash": "^4.17.21"
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@babel/plugin-transform-private-property-in-object": "^7.23.3",
"@types/lodash": "^4.17.0",
"@types/node": "^20.12.7",
"@typescript-eslint/eslint-plugin": "^6.18.1",
"@typescript-eslint/parser": "^6.18.1",
"cypress": "latest",
Expand Down
4 changes: 4 additions & 0 deletions tests/cypress/e2e/examples.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ describe("Element collections", function () {
context("Getters", function () {
specify("element selectors in `this.elements`", function () {
class ExamplePageObject extends PageObject {
public elements;

constructor() {
super();
//Just trying another way of doing this,
Expand Down Expand Up @@ -101,6 +103,8 @@ describe("Element collections", function () {
describe("Component objects", function () {
specify("component objects are located using a base container function", function () {
class ProPricingCardObject extends ComponentObject {
public elements;

constructor() {
super(() => cy.contains(".MuiCard-root", "Pro"));
}
Expand Down

0 comments on commit 75d5e3f

Please sign in to comment.