diff --git a/build/tasks/CypressReport.cs b/build/tasks/CypressReport.cs index bd3ff6e15..d339b4c3b 100644 --- a/build/tasks/CypressReport.cs +++ b/build/tasks/CypressReport.cs @@ -84,7 +84,8 @@ void ReportBs5() public override bool ShouldRun(BuildContext context) { - return !context.Arguments.HasArgument("notest"); + // Cypress not supported with Angular + return false; } } } \ No newline at end of file diff --git a/build/tasks/CypressRun.cs b/build/tasks/CypressRun.cs index d9b2ed1b3..8e65fbaa8 100644 --- a/build/tasks/CypressRun.cs +++ b/build/tasks/CypressRun.cs @@ -64,7 +64,8 @@ void TestBootstrap5() public override bool ShouldRun(BuildContext context) { - return !context.Arguments.HasArgument("notest"); + // Cypress not supported with Angular + return false; } } } \ No newline at end of file diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/coverage.webpack.ts b/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/coverage.webpack.ts deleted file mode 100644 index 748e69eca..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/coverage.webpack.ts +++ /dev/null @@ -1,18 +0,0 @@ -export default { - module: { - rules: [ - { - test: /\.(ts)$/, - use: { - loader: 'babel-loader', - options: { - plugins: ['babel-plugin-istanbul'], - }, - }, - enforce: 'post', - include: [require('path').join(__dirname, '..', 'src')], - exclude: [/node_modules/, /cypress/, /(ngfactory|ngstyle)\.js/], - }, - ], - }, -}; diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/support/bootstrapmarkup.ts b/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/support/bootstrapmarkup.ts deleted file mode 100644 index 26e45d26a..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/support/bootstrapmarkup.ts +++ /dev/null @@ -1,26 +0,0 @@ -declare namespace Cypress { - interface Chainable { - shouldNotHaveLabel(): Chainable; - shouldHaveLabel(label: string): Chainable; - shouldBeValid(tagName?: string): Chainable; - shouldBeInvalid(tagName?: string): Chainable; - } -} - -Cypress.Commands.add('shouldNotHaveLabel', () => { - cy.get('label').should('have.class', 'sr-only'); -}); - -Cypress.Commands.add('shouldHaveLabel', (label: string) => { - cy.get('label').contains(label); -}); - -Cypress.Commands.add('shouldBeValid', (tagName: string = 'input') => { - cy.get(tagName).focus().blur(); - cy.get(tagName).should('not.have.class', 'is-invalid'); -}); - -Cypress.Commands.add('shouldBeInvalid', (tagName: string = 'input') => { - cy.get(tagName).focus().blur(); - cy.get(tagName).should('have.class', 'is-invalid'); -}); diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/support/commands.ts b/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/support/commands.ts deleted file mode 100644 index 659670470..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/support/commands.ts +++ /dev/null @@ -1,48 +0,0 @@ -// *********************************************** -// This example namespace declaration will help -// with Intellisense and code completion in your -// IDE or Text Editor. -// *********************************************** -// declare namespace Cypress { -// interface Chainable { -// customCommand(param: any): typeof customCommand; -// } -// } -// -// function customCommand(param: any): void { -// console.warn(param); -// } -// -// NOTE: You can use it like so: -// Cypress.Commands.add('customCommand', customCommand); -// -// *********************************************** -// This example commands.js shows you how to -// create various custom commands and overwrite -// existing commands. -// -// For more comprehensive examples of custom -// commands please read more here: -// https://on.cypress.io/custom-commands -// *********************************************** -// -// -// -- This is a parent command -- -// Cypress.Commands.add("login", (email, password) => { ... }) -// -// -// -- This is a child command -- -// Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... }) -// -// -// -- This is a dual command -- -// Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... }) -// -// -// -- This will overwrite an existing command -- -// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... }) - -// Custom Commands -import './bootstrapmarkup'; -import './htmlattributes'; -import './modelchanged'; diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/support/component-index.html b/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/support/component-index.html deleted file mode 100644 index fd348c329..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/support/component-index.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Components App - - - -
- - - \ No newline at end of file diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/support/component.ts b/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/support/component.ts deleted file mode 100644 index d37280eb8..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/support/component.ts +++ /dev/null @@ -1,40 +0,0 @@ -// *********************************************************** -// This example support/component.ts is processed and -// loaded automatically before your test files. -// -// This is a great place to put global configuration and -// behavior that modifies Cypress. -// -// You can change the location of this file or turn off -// automatically serving support files with the -// 'supportFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/configuration -// *********************************************************** - -// Import commands.js using ES2015 syntax: -import './commands' - -// Alternatively you can use CommonJS syntax: -// require('./commands') - -import { mount } from 'cypress/angular' -import '@cypress/code-coverage/support' - -// Augment the Cypress namespace to include type definitions for -// your custom command. -// Alternatively, can be defined in cypress/support/component.d.ts -// with a at the top of your spec. -declare global { - namespace Cypress { - interface Chainable { - mount: typeof mount - } - } -} - -Cypress.Commands.add('mount', mount) - -// Example use: -// cy.mount(MyComponent) diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/support/e2e.ts b/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/support/e2e.ts deleted file mode 100644 index 55540ff7d..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/support/e2e.ts +++ /dev/null @@ -1,17 +0,0 @@ -// *********************************************************** -// This example support/e2e.ts is processed and -// loaded automatically before your test files. -// -// This is a great place to put global configuration and -// behavior that modifies Cypress. -// -// You can change the location of this file or turn off -// automatically serving support files with the -// 'supportFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/configuration -// *********************************************************** - -// When a command from ./commands is ready to use, import with `import './commands'` syntax -// import './commands'; diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/support/htmlattributes.ts b/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/support/htmlattributes.ts deleted file mode 100644 index e275ae792..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/support/htmlattributes.ts +++ /dev/null @@ -1,22 +0,0 @@ -declare namespace Cypress { - interface Chainable { - shouldBeReadonly(tagName?: string): Chainable; - shouldBeDisabled(tagName?: string): Chainable; - shouldHavePlaceholder(text: string, tagName?: string): Chainable; - } -} - -Cypress.Commands.add('shouldBeReadonly', (tagName: string = 'input') => { - cy.get(tagName).should('have.attr', 'readonly', 'readonly'); -}); - -Cypress.Commands.add('shouldBeDisabled', (tagName: string = 'input') => { - cy.get(tagName).should('have.attr', 'disabled'); -}); - -Cypress.Commands.add( - 'shouldHavePlaceholder', - (text: string, tagName: string = 'input') => { - cy.get(tagName).should('have.attr', 'placeholder', text); - } -); diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/support/modelchanged.ts b/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/support/modelchanged.ts deleted file mode 100644 index 595f29d93..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/support/modelchanged.ts +++ /dev/null @@ -1,11 +0,0 @@ -declare namespace Cypress { - interface Chainable { - validateValueChanged(requiredCount: number): Chainable; - } -} - -Cypress.Commands.add('validateValueChanged', (requiredCount: number) => { - cy.get('@valueSpy').should('have.been.called'); - cy.get('@valueSpy').its('callCount').should('equal', requiredCount); -}); - diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/tsconfig.json b/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/tsconfig.json deleted file mode 100644 index 92571d714..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "../tsconfig.json", - "include": [ - "**/*.ts", - ], - "compilerOptions": { - "sourceMap": false, - "types": [ - "cypress", - "node" - ] - } -} \ No newline at end of file diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/videos/checkbox.cy.ts.mp4 b/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/videos/checkbox.cy.ts.mp4 deleted file mode 100644 index 544b169ae..000000000 Binary files a/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/videos/checkbox.cy.ts.mp4 and /dev/null differ diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/videos/radiobutton.cy.ts.mp4 b/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/videos/radiobutton.cy.ts.mp4 deleted file mode 100644 index fb4af0a75..000000000 Binary files a/ch.jnetwork.sac-controls/projects/sac-bootstrap3/cypress/videos/radiobutton.cy.ts.mp4 and /dev/null differ diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/coverage.webpack.ts b/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/coverage.webpack.ts deleted file mode 100644 index 748e69eca..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/coverage.webpack.ts +++ /dev/null @@ -1,18 +0,0 @@ -export default { - module: { - rules: [ - { - test: /\.(ts)$/, - use: { - loader: 'babel-loader', - options: { - plugins: ['babel-plugin-istanbul'], - }, - }, - enforce: 'post', - include: [require('path').join(__dirname, '..', 'src')], - exclude: [/node_modules/, /cypress/, /(ngfactory|ngstyle)\.js/], - }, - ], - }, -}; diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/support/bootstrapmarkup.ts b/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/support/bootstrapmarkup.ts deleted file mode 100644 index 26e45d26a..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/support/bootstrapmarkup.ts +++ /dev/null @@ -1,26 +0,0 @@ -declare namespace Cypress { - interface Chainable { - shouldNotHaveLabel(): Chainable; - shouldHaveLabel(label: string): Chainable; - shouldBeValid(tagName?: string): Chainable; - shouldBeInvalid(tagName?: string): Chainable; - } -} - -Cypress.Commands.add('shouldNotHaveLabel', () => { - cy.get('label').should('have.class', 'sr-only'); -}); - -Cypress.Commands.add('shouldHaveLabel', (label: string) => { - cy.get('label').contains(label); -}); - -Cypress.Commands.add('shouldBeValid', (tagName: string = 'input') => { - cy.get(tagName).focus().blur(); - cy.get(tagName).should('not.have.class', 'is-invalid'); -}); - -Cypress.Commands.add('shouldBeInvalid', (tagName: string = 'input') => { - cy.get(tagName).focus().blur(); - cy.get(tagName).should('have.class', 'is-invalid'); -}); diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/support/commands.ts b/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/support/commands.ts deleted file mode 100644 index 659670470..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/support/commands.ts +++ /dev/null @@ -1,48 +0,0 @@ -// *********************************************** -// This example namespace declaration will help -// with Intellisense and code completion in your -// IDE or Text Editor. -// *********************************************** -// declare namespace Cypress { -// interface Chainable { -// customCommand(param: any): typeof customCommand; -// } -// } -// -// function customCommand(param: any): void { -// console.warn(param); -// } -// -// NOTE: You can use it like so: -// Cypress.Commands.add('customCommand', customCommand); -// -// *********************************************** -// This example commands.js shows you how to -// create various custom commands and overwrite -// existing commands. -// -// For more comprehensive examples of custom -// commands please read more here: -// https://on.cypress.io/custom-commands -// *********************************************** -// -// -// -- This is a parent command -- -// Cypress.Commands.add("login", (email, password) => { ... }) -// -// -// -- This is a child command -- -// Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... }) -// -// -// -- This is a dual command -- -// Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... }) -// -// -// -- This will overwrite an existing command -- -// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... }) - -// Custom Commands -import './bootstrapmarkup'; -import './htmlattributes'; -import './modelchanged'; diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/support/component-index.html b/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/support/component-index.html deleted file mode 100644 index fd348c329..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/support/component-index.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Components App - - - -
- - - \ No newline at end of file diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/support/component.ts b/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/support/component.ts deleted file mode 100644 index d37280eb8..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/support/component.ts +++ /dev/null @@ -1,40 +0,0 @@ -// *********************************************************** -// This example support/component.ts is processed and -// loaded automatically before your test files. -// -// This is a great place to put global configuration and -// behavior that modifies Cypress. -// -// You can change the location of this file or turn off -// automatically serving support files with the -// 'supportFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/configuration -// *********************************************************** - -// Import commands.js using ES2015 syntax: -import './commands' - -// Alternatively you can use CommonJS syntax: -// require('./commands') - -import { mount } from 'cypress/angular' -import '@cypress/code-coverage/support' - -// Augment the Cypress namespace to include type definitions for -// your custom command. -// Alternatively, can be defined in cypress/support/component.d.ts -// with a at the top of your spec. -declare global { - namespace Cypress { - interface Chainable { - mount: typeof mount - } - } -} - -Cypress.Commands.add('mount', mount) - -// Example use: -// cy.mount(MyComponent) diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/support/e2e.ts b/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/support/e2e.ts deleted file mode 100644 index 55540ff7d..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/support/e2e.ts +++ /dev/null @@ -1,17 +0,0 @@ -// *********************************************************** -// This example support/e2e.ts is processed and -// loaded automatically before your test files. -// -// This is a great place to put global configuration and -// behavior that modifies Cypress. -// -// You can change the location of this file or turn off -// automatically serving support files with the -// 'supportFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/configuration -// *********************************************************** - -// When a command from ./commands is ready to use, import with `import './commands'` syntax -// import './commands'; diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/support/htmlattributes.ts b/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/support/htmlattributes.ts deleted file mode 100644 index e275ae792..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/support/htmlattributes.ts +++ /dev/null @@ -1,22 +0,0 @@ -declare namespace Cypress { - interface Chainable { - shouldBeReadonly(tagName?: string): Chainable; - shouldBeDisabled(tagName?: string): Chainable; - shouldHavePlaceholder(text: string, tagName?: string): Chainable; - } -} - -Cypress.Commands.add('shouldBeReadonly', (tagName: string = 'input') => { - cy.get(tagName).should('have.attr', 'readonly', 'readonly'); -}); - -Cypress.Commands.add('shouldBeDisabled', (tagName: string = 'input') => { - cy.get(tagName).should('have.attr', 'disabled'); -}); - -Cypress.Commands.add( - 'shouldHavePlaceholder', - (text: string, tagName: string = 'input') => { - cy.get(tagName).should('have.attr', 'placeholder', text); - } -); diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/support/modelchanged.ts b/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/support/modelchanged.ts deleted file mode 100644 index 595f29d93..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/support/modelchanged.ts +++ /dev/null @@ -1,11 +0,0 @@ -declare namespace Cypress { - interface Chainable { - validateValueChanged(requiredCount: number): Chainable; - } -} - -Cypress.Commands.add('validateValueChanged', (requiredCount: number) => { - cy.get('@valueSpy').should('have.been.called'); - cy.get('@valueSpy').its('callCount').should('equal', requiredCount); -}); - diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/tsconfig.json b/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/tsconfig.json deleted file mode 100644 index 92571d714..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "../tsconfig.json", - "include": [ - "**/*.ts", - ], - "compilerOptions": { - "sourceMap": false, - "types": [ - "cypress", - "node" - ] - } -} \ No newline at end of file diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/buttons/button.cy.ts.mp4 b/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/buttons/button.cy.ts.mp4 deleted file mode 100644 index 5f86229fc..000000000 Binary files a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/buttons/button.cy.ts.mp4 and /dev/null differ diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/checkbox/checkbox.cy.ts.mp4 b/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/checkbox/checkbox.cy.ts.mp4 deleted file mode 100644 index 230cf16c4..000000000 Binary files a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/checkbox/checkbox.cy.ts.mp4 and /dev/null differ diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/checkbox/radiobutton.cy.ts.mp4 b/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/checkbox/radiobutton.cy.ts.mp4 deleted file mode 100644 index da9306efc..000000000 Binary files a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/checkbox/radiobutton.cy.ts.mp4 and /dev/null differ diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/input/input.cy.ts.mp4 b/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/input/input.cy.ts.mp4 deleted file mode 100644 index 86930e9e0..000000000 Binary files a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/input/input.cy.ts.mp4 and /dev/null differ diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/input/inputarea.cy.ts.mp4 b/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/input/inputarea.cy.ts.mp4 deleted file mode 100644 index 05057c7ed..000000000 Binary files a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/input/inputarea.cy.ts.mp4 and /dev/null differ diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/input/inputcurrency.cy.ts.mp4 b/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/input/inputcurrency.cy.ts.mp4 deleted file mode 100644 index 06c28015e..000000000 Binary files a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/input/inputcurrency.cy.ts.mp4 and /dev/null differ diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/input/inputdecimal.cy.ts.mp4 b/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/input/inputdecimal.cy.ts.mp4 deleted file mode 100644 index 7035b7fc1..000000000 Binary files a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/input/inputdecimal.cy.ts.mp4 and /dev/null differ diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/input/inputemail.cy.ts.mp4 b/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/input/inputemail.cy.ts.mp4 deleted file mode 100644 index f045734b1..000000000 Binary files a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/input/inputemail.cy.ts.mp4 and /dev/null differ diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/input/inputinteger.cy.ts.mp4 b/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/input/inputinteger.cy.ts.mp4 deleted file mode 100644 index 5c2f90584..000000000 Binary files a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/input/inputinteger.cy.ts.mp4 and /dev/null differ diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/input/inputpassword.cy.ts.mp4 b/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/input/inputpassword.cy.ts.mp4 deleted file mode 100644 index a1381e6a8..000000000 Binary files a/ch.jnetwork.sac-controls/projects/sac-bootstrap4/cypress/videos/input/inputpassword.cy.ts.mp4 and /dev/null differ diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress.config.ts b/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress.config.ts deleted file mode 100644 index ec69f9737..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress.config.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { defineConfig } from 'cypress'; -import coverageWebpack from 'projects/sac-bootstrap5/cypress/coverage.webpack'; - -export default defineConfig({ - viewportWidth: 1024, - viewportHeight: 768, - reporter: './node_modules/mochawesome/src/mochawesome.js', - reporterOptions: { - reportDir: 'reports/bs5', - overwrite: false, - html: false, - json: true, - }, - - component: { - supportFile: 'projects/sac-bootstrap5/cypress/support/component.ts', - supportFolder: 'projects/sac-bootstrap5/cypress/support', - indexHtmlFile: - 'projects/sac-bootstrap5/cypress/support/component-index.html', - devServer: { - framework: 'angular', - bundler: 'webpack', - webpackConfig: coverageWebpack, - options: { - projectConfig: { - root: 'projects/sac-bootstrap5', - sourceRoot: 'projects/sac-bootstrap5/src', - buildOptions: { - outputPath: 'dist/sac-bootstrap5', - main: 'src/entrypoint-cypress.ts', - tsConfig: 'projects/sac-bootstrap5/tsconfig.lib.json', - }, - }, - }, - }, - specPattern: 'projects/sac-bootstrap5/src/**/*.cy.ts', - setupNodeEvents(on, config) { - require('@cypress/code-coverage/task')(on, config); - return config; - }, - }, -}); diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/coverage.webpack.ts b/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/coverage.webpack.ts deleted file mode 100644 index 748e69eca..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/coverage.webpack.ts +++ /dev/null @@ -1,18 +0,0 @@ -export default { - module: { - rules: [ - { - test: /\.(ts)$/, - use: { - loader: 'babel-loader', - options: { - plugins: ['babel-plugin-istanbul'], - }, - }, - enforce: 'post', - include: [require('path').join(__dirname, '..', 'src')], - exclude: [/node_modules/, /cypress/, /(ngfactory|ngstyle)\.js/], - }, - ], - }, -}; diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/support/bootstrapmarkup.ts b/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/support/bootstrapmarkup.ts deleted file mode 100644 index 625b3775d..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/support/bootstrapmarkup.ts +++ /dev/null @@ -1,30 +0,0 @@ -declare namespace Cypress { - interface Chainable { - // #region Public Methods - - shouldBeInvalid(tagName?: string): Chainable; - shouldBeValid(tagName?: string): Chainable; - shouldHaveLabel(label: string): Chainable; - shouldNotHaveLabel(): Chainable; - - // #endregion Public Methods - } -} - -Cypress.Commands.add('shouldNotHaveLabel', () => { - cy.get('label').should('have.class', 'visually-hidden'); -}); - -Cypress.Commands.add('shouldHaveLabel', (label: string) => { - cy.get('label').contains(label); -}); - -Cypress.Commands.add('shouldBeValid', (tagName: string = 'input') => { - cy.get(tagName).focus().blur(); - cy.get(tagName).should('not.have.class', 'is-invalid'); -}); - -Cypress.Commands.add('shouldBeInvalid', (tagName: string = 'input') => { - cy.get(tagName).focus().blur(); - cy.get(tagName).should('have.class', 'is-invalid'); -}); diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/support/commands.ts b/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/support/commands.ts deleted file mode 100644 index 659670470..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/support/commands.ts +++ /dev/null @@ -1,48 +0,0 @@ -// *********************************************** -// This example namespace declaration will help -// with Intellisense and code completion in your -// IDE or Text Editor. -// *********************************************** -// declare namespace Cypress { -// interface Chainable { -// customCommand(param: any): typeof customCommand; -// } -// } -// -// function customCommand(param: any): void { -// console.warn(param); -// } -// -// NOTE: You can use it like so: -// Cypress.Commands.add('customCommand', customCommand); -// -// *********************************************** -// This example commands.js shows you how to -// create various custom commands and overwrite -// existing commands. -// -// For more comprehensive examples of custom -// commands please read more here: -// https://on.cypress.io/custom-commands -// *********************************************** -// -// -// -- This is a parent command -- -// Cypress.Commands.add("login", (email, password) => { ... }) -// -// -// -- This is a child command -- -// Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... }) -// -// -// -- This is a dual command -- -// Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... }) -// -// -// -- This will overwrite an existing command -- -// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... }) - -// Custom Commands -import './bootstrapmarkup'; -import './htmlattributes'; -import './modelchanged'; diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/support/component-index.html b/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/support/component-index.html deleted file mode 100644 index fd348c329..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/support/component-index.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - Components App - - - -
- - - \ No newline at end of file diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/support/component.ts b/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/support/component.ts deleted file mode 100644 index d37280eb8..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/support/component.ts +++ /dev/null @@ -1,40 +0,0 @@ -// *********************************************************** -// This example support/component.ts is processed and -// loaded automatically before your test files. -// -// This is a great place to put global configuration and -// behavior that modifies Cypress. -// -// You can change the location of this file or turn off -// automatically serving support files with the -// 'supportFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/configuration -// *********************************************************** - -// Import commands.js using ES2015 syntax: -import './commands' - -// Alternatively you can use CommonJS syntax: -// require('./commands') - -import { mount } from 'cypress/angular' -import '@cypress/code-coverage/support' - -// Augment the Cypress namespace to include type definitions for -// your custom command. -// Alternatively, can be defined in cypress/support/component.d.ts -// with a at the top of your spec. -declare global { - namespace Cypress { - interface Chainable { - mount: typeof mount - } - } -} - -Cypress.Commands.add('mount', mount) - -// Example use: -// cy.mount(MyComponent) diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/support/htmlattributes.ts b/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/support/htmlattributes.ts deleted file mode 100644 index e275ae792..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/support/htmlattributes.ts +++ /dev/null @@ -1,22 +0,0 @@ -declare namespace Cypress { - interface Chainable { - shouldBeReadonly(tagName?: string): Chainable; - shouldBeDisabled(tagName?: string): Chainable; - shouldHavePlaceholder(text: string, tagName?: string): Chainable; - } -} - -Cypress.Commands.add('shouldBeReadonly', (tagName: string = 'input') => { - cy.get(tagName).should('have.attr', 'readonly', 'readonly'); -}); - -Cypress.Commands.add('shouldBeDisabled', (tagName: string = 'input') => { - cy.get(tagName).should('have.attr', 'disabled'); -}); - -Cypress.Commands.add( - 'shouldHavePlaceholder', - (text: string, tagName: string = 'input') => { - cy.get(tagName).should('have.attr', 'placeholder', text); - } -); diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/support/modelchanged.ts b/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/support/modelchanged.ts deleted file mode 100644 index 595f29d93..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/support/modelchanged.ts +++ /dev/null @@ -1,11 +0,0 @@ -declare namespace Cypress { - interface Chainable { - validateValueChanged(requiredCount: number): Chainable; - } -} - -Cypress.Commands.add('validateValueChanged', (requiredCount: number) => { - cy.get('@valueSpy').should('have.been.called'); - cy.get('@valueSpy').its('callCount').should('equal', requiredCount); -}); - diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/tsconfig.json b/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/tsconfig.json deleted file mode 100644 index 92571d714..000000000 --- a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "../tsconfig.json", - "include": [ - "**/*.ts", - ], - "compilerOptions": { - "sourceMap": false, - "types": [ - "cypress", - "node" - ] - } -} \ No newline at end of file diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/buttons/button.cy.ts.mp4 b/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/buttons/button.cy.ts.mp4 deleted file mode 100644 index 7bacb7b57..000000000 Binary files a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/buttons/button.cy.ts.mp4 and /dev/null differ diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/checkbox/checkbox.cy.ts.mp4 b/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/checkbox/checkbox.cy.ts.mp4 deleted file mode 100644 index 8f7188bc7..000000000 Binary files a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/checkbox/checkbox.cy.ts.mp4 and /dev/null differ diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/checkbox/radiobutton.cy.ts.mp4 b/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/checkbox/radiobutton.cy.ts.mp4 deleted file mode 100644 index 5664339ce..000000000 Binary files a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/checkbox/radiobutton.cy.ts.mp4 and /dev/null differ diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/input/input.cy.ts.mp4 b/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/input/input.cy.ts.mp4 deleted file mode 100644 index 4d5e9d711..000000000 Binary files a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/input/input.cy.ts.mp4 and /dev/null differ diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/input/inputarea.cy.ts.mp4 b/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/input/inputarea.cy.ts.mp4 deleted file mode 100644 index 04ce8fcba..000000000 Binary files a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/input/inputarea.cy.ts.mp4 and /dev/null differ diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/input/inputcurrency.cy.ts.mp4 b/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/input/inputcurrency.cy.ts.mp4 deleted file mode 100644 index 1fa9aaedd..000000000 Binary files a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/input/inputcurrency.cy.ts.mp4 and /dev/null differ diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/input/inputdecimal.cy.ts.mp4 b/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/input/inputdecimal.cy.ts.mp4 deleted file mode 100644 index d0cf159e2..000000000 Binary files a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/input/inputdecimal.cy.ts.mp4 and /dev/null differ diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/input/inputemail.cy.ts.mp4 b/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/input/inputemail.cy.ts.mp4 deleted file mode 100644 index 831799673..000000000 Binary files a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/input/inputemail.cy.ts.mp4 and /dev/null differ diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/input/inputinteger.cy.ts.mp4 b/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/input/inputinteger.cy.ts.mp4 deleted file mode 100644 index e0d923c10..000000000 Binary files a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/input/inputinteger.cy.ts.mp4 and /dev/null differ diff --git a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/input/inputpassword.cy.ts.mp4 b/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/input/inputpassword.cy.ts.mp4 deleted file mode 100644 index 5beb25740..000000000 Binary files a/ch.jnetwork.sac-controls/projects/sac-bootstrap5/cypress/videos/input/inputpassword.cy.ts.mp4 and /dev/null differ