-
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.
* chore(): sync repositories * chore(): fix imports * chore(): format * chore(): add invisible mixin * chore(): add missing style * chore(): format * chore(): fix import * update nav * add test-ui executor * update nav visual * update base images --------- Co-authored-by: Mladen Planinicic <mladen.planinicic@baloise.ch> Co-authored-by: Gery Hirschfeld <gerhard.hirschfeld@baloise.ch> Co-authored-by: hirsch88 <hirsch88@users.noreply.github.com>
- Loading branch information
1 parent
fa635d1
commit 707ab3c
Showing
60 changed files
with
880 additions
and
340 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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
'@baloise/ds-core': patch | ||
--- | ||
|
||
**devkit**: update | ||
**devkit**: update |
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
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('bal-card', () => { | ||
context('a11y', () => { | ||
beforeEach(() => cy.platform('desktop').pageA11y('/components/bal-card/test/bal-card.a11y.html')) | ||
|
||
describe('have the AA standard', () => { | ||
it('basic', () => { | ||
cy.getByTestId('basic').testA11y() | ||
}) | ||
}) | ||
}) | ||
}) |
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('bal-content', () => { | ||
context('a11y', () => { | ||
beforeEach(() => cy.pageA11y('/components/bal-content/test/bal-content.a11y.html')) | ||
|
||
describe('have the AA standard', () => { | ||
it('basic', () => { | ||
cy.getByTestId('basic').testA11y() | ||
}) | ||
}) | ||
}) | ||
}) |
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,20 @@ | ||
describe('bal-field', () => { | ||
context('a11y', () => { | ||
beforeEach(() => cy.platform('desktop').pageA11y('/components/bal-field/test/bal-field.a11y.html')) | ||
|
||
describe('have the AA standard', () => { | ||
it('basic', () => { | ||
cy.getByTestId('basic').testA11y() | ||
}) | ||
|
||
it('states', () => { | ||
cy.getByTestId('disabled').testA11y() | ||
cy.getByTestId('invalid').testA11y() | ||
}) | ||
|
||
it('horizontal', () => { | ||
cy.getByTestId('horizontal').testA11y() | ||
}) | ||
}) | ||
}) | ||
}) |
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,19 @@ | ||
describe('bal-pagination', () => { | ||
context('a11y', () => { | ||
beforeEach(() => cy.platform('desktop').pageA11y('/components/bal-pagination/test/bal-pagination.a11y.html')) | ||
|
||
describe('have the AA standard', () => { | ||
it('pagination basic', () => { | ||
cy.getByTestId('basic').testA11y() | ||
}) | ||
|
||
it('pagination small', () => { | ||
cy.getByTestId('small').testA11y() | ||
}) | ||
|
||
it('pagination small with dots', () => { | ||
cy.getByTestId('small-with-dots').testA11y() | ||
}) | ||
}) | ||
}) | ||
}) |
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('bal-progress-bar', () => { | ||
context('a11y', () => { | ||
beforeEach(() => cy.platform('desktop').pageA11y('/components/bal-progress-bar/test/bal-progress-bar.a11y.html')) | ||
|
||
describe('have the AA standard', () => { | ||
it('basic', () => { | ||
cy.getByTestId('basic').testA11y() | ||
}) | ||
}) | ||
}) | ||
}) |
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,20 @@ | ||
describe('bal-radio', () => { | ||
context('a11y', () => { | ||
beforeEach(() => cy.platform('desktop').pageA11y('/components/bal-radio/test/bal-radio.a11y.html')) | ||
|
||
describe('have the AA standard', () => { | ||
it('radio basic', () => { | ||
cy.getByTestId('radio-basic').testA11y() | ||
cy.getByTestId('basic-label-hidden').testA11y() | ||
cy.getByTestId('disabled').testA11y() | ||
cy.getByTestId('invalid').testA11y() | ||
}) | ||
|
||
it('select button', () => { | ||
cy.getByTestId('select-button-basic').testA11y() | ||
cy.getByTestId('select-button-invalid').testA11y() | ||
cy.getByTestId('select-button-disabled').testA11y() | ||
}) | ||
}) | ||
}) | ||
}) |
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('bal-spinner', () => { | ||
context('a11y', () => { | ||
beforeEach(() => cy.pageA11y('/components/bal-spinner/test/bal-spinner.a11y.html')) | ||
|
||
describe('have the AA standard', () => { | ||
it('basic', () => { | ||
cy.getByTestId('basic').testA11y() | ||
}) | ||
}) | ||
}) | ||
}) |
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('bal-steps', () => { | ||
context('a11y', () => { | ||
beforeEach(() => cy.platform('desktop').pageA11y('/components/bal-steps/test/bal-steps.a11y.html')) | ||
|
||
describe('have the AA standard', () => { | ||
it('steps basic', () => { | ||
cy.getByTestId('basic').testA11y() | ||
}) | ||
}) | ||
}) | ||
}) |
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,15 @@ | ||
describe('bal-tabs', () => { | ||
context('a11y', () => { | ||
beforeEach(() => cy.platform('desktop').pageA11y('/components/bal-tabs/test/bal-tabs.a11y.html')) | ||
|
||
describe('have the AA standard', () => { | ||
it('tabs basic', () => { | ||
cy.getByTestId('basic').testA11y() | ||
}) | ||
|
||
it('tabs vertical', () => { | ||
cy.getByTestId('vertical').testA11y() | ||
}) | ||
}) | ||
}) | ||
}) |
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
Binary file modified
BIN
+3.56 KB
(100%)
...hots/base/visual/bal-nav-part-2.visual.cy.ts/nav-touch-mobile-closed-bottom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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,9 @@ | ||
{ | ||
"executors": { | ||
"test-ui": { | ||
"implementation": "./lib/nx/src/executors/test-ui/executor", | ||
"schema": "./lib/nx/src/executors/test-ui/schema.json", | ||
"description": "test-ui executor" | ||
} | ||
} | ||
} |
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
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
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 @@ | ||
import { join } from 'path' | ||
import { runCommand } from '../utils' | ||
import { TestUiExecutorSchema } from './schema' | ||
|
||
export default async function runExecutor(options: TestUiExecutorSchema) { | ||
try { | ||
await runCommand('npx vitest --ui', join(process.cwd(), options.projectRoot)) | ||
} catch (error) { | ||
console.error(error) | ||
return { success: false } | ||
} | ||
|
||
return { success: true } | ||
} |
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,3 @@ | ||
export interface TestUiExecutorSchema { | ||
projectRoot: string | ||
} // eslint-disable-line |
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,9 @@ | ||
{ | ||
"$schema": "https://json-schema.org/schema", | ||
"version": 2, | ||
"title": "TestUi executor", | ||
"description": "", | ||
"type": "object", | ||
"properties": {}, | ||
"required": [] | ||
} |
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
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
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
Oops, something went wrong.