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,10 +44,25 @@ export class ConsolePage {
4444
4545 await this . #page. getByTestId ( testIds . launchpad . launch ) . click ( ) ;
4646
47- await expect ( this . #page. getByTestId ( testIds . createSatellite . create ) ) . toBeVisible ( ) ;
47+ // Initial step
48+ await expect ( this . #page. getByTestId ( testIds . createSatellite . continueToMetadata ) ) . toBeVisible ( ) ;
49+
50+ await this . #page. getByTestId ( testIds . createSatellite . continueToMetadata ) . click ( ) ;
51+
52+ // Metadata step
53+ await expect ( this . #page. getByTestId ( testIds . createSatellite . continueToOptions ) ) . toBeVisible ( ) ;
4854
4955 await this . #page. getByTestId ( testIds . createSatellite . input ) . fill ( 'Test' ) ;
56+ await this . #page. getByTestId ( testIds . createSatellite . continueToOptions ) . click ( ) ;
57+
58+ // Options step
59+ await expect ( this . #page. getByTestId ( testIds . createSatellite . continueToReview ) ) . toBeVisible ( ) ;
60+
5061 await this . #page. getByTestId ( testIds . createSatellite [ kind ] ) . click ( ) ;
62+ await this . #page. getByTestId ( testIds . createSatellite . continueToReview ) . click ( ) ;
63+
64+ // Review step
65+ await expect ( this . #page. getByTestId ( testIds . createSatellite . create ) ) . toBeVisible ( ) ;
5166
5267 await this . #page. getByTestId ( testIds . createSatellite . create ) . click ( ) ;
5368
Original file line number Diff line number Diff line change 2222 import type { FactoryCreateProgress } from ' $lib/types/progress-factory-create' ;
2323 import type { SatelliteId } from ' $lib/types/satellite' ;
2424 import { navigateToSatellite } from ' $lib/utils/nav.utils' ;
25+ import { testId } from ' $lib/utils/test.utils' ;
2526
2627 interface Props {
2728 detail: JunoModalDetail ;
171172 {/ snippet }
172173
173174 <button onclick ={onclose }>{$i18n .core .cancel }</button >
174- <button onclick ={oncontinue }
175+ <button onclick ={oncontinue } {... testId ( testIds . createSatellite . continueToMetadata )}
175176 >{nonNullish (withFee ) ? $i18n .core .continue : $i18n .core .lets_go }</button
176177 >
177178 </FactoryCredits >
Original file line number Diff line number Diff line change 4646 <div class =" toolbar" >
4747 <button onclick ={onback } type ="button" >{$i18n .core .back }</button >
4848
49- <button {...testId (testIds .createSatellite .create )} {disabled } type =" submit" >
49+ <button {...testId (testIds .createSatellite .continueToOptions )} {disabled } type =" submit" >
5050 {$i18n .core .continue }
5151 </button >
5252 </div >
Original file line number Diff line number Diff line change 8484 <div class =" toolbar" >
8585 <button onclick ={onback } type ="button" >{$i18n .core .back }</button >
8686
87- <button {...testId (testIds .createSatellite .create )} {disabled } type =" submit" >
87+ <button {...testId (testIds .createSatellite .continueToReview )} {disabled } type =" submit" >
8888 {$i18n .core .review }
8989 </button >
9090 </div >
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ export const testIds = {
1313 actions : 'btn-open-actions'
1414 } ,
1515 createSatellite : {
16+ continueToMetadata : 'btn-continue-metadata' ,
17+ continueToOptions : 'btn-continue-options' ,
18+ continueToReview : 'btn-continue-review' ,
1619 create : 'btn-create-satellite' ,
1720 input : 'input-satellite-name' ,
1821 website : 'input-radio-satellite-website' ,
You can’t perform that action at this time.
0 commit comments