File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 unit-test :
55 runs-on : ubuntu-latest
66 steps :
7- - uses : actions/checkout@v1
7+ - uses : actions/checkout@v3
88 - name : Use Node.js
9- uses : actions/setup-node@v1
9+ uses : actions/setup-node@v2
1010 with :
1111 node-version : ' 10.x'
1212 - name : Cache node modules
@@ -34,13 +34,13 @@ jobs:
3434 cypress :
3535 runs-on : ubuntu-latest
3636 steps :
37- - uses : actions/checkout@v1
37+ - uses : actions/checkout@v3
3838 - name : Use Node.js
39- uses : actions/setup-node@v1
39+ uses : actions/setup-node@v2
4040 with :
4141 node-version : ' 10.x'
4242 - name : Cache node modules
43- uses : actions/cache@v2
43+ uses : actions/cache@v3
4444 env :
4545 cache-name : cache-node-modules
4646 with :
Original file line number Diff line number Diff line change @@ -7,19 +7,13 @@ context('template listado', () => {
77 } ) ;
88
99 it ( 'test accordion' , ( ) => {
10- cy . eyesCheckWindow ( 'main' ) ;
11-
12- // SE SACO PORQUE PISARON TODA UNA COMPONENTE
13- // cy.get('plex-title').plexButtonIcon('chevron-down').click();
14- // cy.eyesCheckWindow('modal');
15-
16- // cy.plexButton('CANCELAR').click();
10+ cy . eyesCheckWindow ( 'main' ) ; ;
1711
1812 cy . get ( 'plex-list plex-item' ) . eq ( 0 ) . plexButtonIcon ( 'eye' ) . click ( ) ;
1913
2014 cy . eyesCheckWindow ( 'item list selected' ) ;
2115
22- cy . get ( 'plex-options button ' ) . eq ( 0 ) . click ( ) ;
16+ cy . get ( 'plex-options' ) . plexButton ( 'opcion 1 ') . eq ( 0 ) . click ( ) ;
2317
2418 cy . eyesCheckWindow ( 'plex-options' ) ;
2519
Original file line number Diff line number Diff line change 11plex-options {
2- .options-container {
3- display : flex ;
4- }
5-
6- .option-grow {
2+ plex-button {
73 flex-grow : 1 ;
4+
5+ & .active {
6+ button {
7+ color : #fff ;
8+ background-color : #0082ad ;
9+ background-image : none ;
10+ border-color : #007aa3 ;
11+ }
12+ }
13+
14+ button {
15+ width : 100% ;
16+ }
817 }
918}
Original file line number Diff line number Diff line change @@ -9,15 +9,13 @@ export interface IPlexOptionsItems {
99@Component ( {
1010 selector : 'plex-options' ,
1111 template : `
12- <div class="row">
13- <div class="d-flex col flex-wrap">
14- <ng-container *ngFor="let item of items">
15- <button class="btn btn-primary btn-sm option-grow m-0" (click)="onOptionsClick(item)" [class.active]="active === item.key">
16- {{ item.label }}
17- </button>
18- </ng-container>
12+ <div class="row">
13+ <div class="d-flex col flex-wrap">
14+ <ng-container *ngFor="let item of items">
15+ <plex-button type="info" size="sm" label="{{ item.label }}" (click)="onOptionsClick(item)" [class.active]="active === item.key"></plex-button>
16+ </ng-container>
17+ </div>
1918 </div>
20- </div>
2119 `
2220} )
2321export class PlexOptionsComponent implements OnInit , OnChanges {
You can’t perform that action at this time.
0 commit comments