Skip to content

Commit

Permalink
test: change cypress to ts
Browse files Browse the repository at this point in the history
remove protractor
  • Loading branch information
alo committed Mar 22, 2020
1 parent 9f1aee6 commit 77b9ef2
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 105 deletions.
3 changes: 2 additions & 1 deletion cypress.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"baseUrl": "http://localhost:4200"
"baseUrl": "http://localhost:4200",
"supportFile": "cypress/support/index.ts"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/// <reference types="Cypress" />

describe('Testing alo.dev page', () => {
describe('Testing alo.dev homepage', () => {
beforeEach(() => {
cy.visit('/');
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference types="Cypress" />

describe('Testing alo.dev page', () => {
beforeEach(() => {
cy.visit('/projects');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
// Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... })
//
//
// -- This is will overwrite an existing command --
// -- This will overwrite an existing command --
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })
7 changes: 2 additions & 5 deletions cypress/support/index.js → cypress/support/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,5 @@
// https://on.cypress.io/configuration
// ***********************************************************

// Import commands.js using ES2015 syntax:
import './commands'

// Alternatively you can use CommonJS syntax:
// require('./commands')
// When a command from ./commands is ready to use, import with `import * as commands from './commands'` syntax
// import * as commands from './commands';
8 changes: 8 additions & 0 deletions cypress/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "../tsconfig.json",
"include": ["integration/*.ts", "support/*.ts", "../node_modules/cypress"],
"compilerOptions": {
"types": ["cypress", "node"],
"target": "es6"
}
}
28 changes: 0 additions & 28 deletions e2e/protractor.conf.js

This file was deleted.

14 changes: 0 additions & 14 deletions e2e/src/app.e2e-spec.ts

This file was deleted.

11 changes: 0 additions & 11 deletions e2e/src/app.po.ts

This file was deleted.

13 changes: 0 additions & 13 deletions e2e/tsconfig.e2e.json

This file was deleted.

26 changes: 0 additions & 26 deletions scully.ssrtest.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/assets/scully-routes.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"route":"/"},{"route":"/projects"},{"route":"/projects/coderty"},{"route":"/projects/runnerty"},{"route":"/projects/ngspain"},{"route":"/projects/almeriajs"}]
[{"route":"/"},{"route":"/projects"},{"route":"/projects/:projectId"}]

0 comments on commit 77b9ef2

Please sign in to comment.