@@ -38,7 +38,7 @@ test.afterAll(async ({ runner }) => {
38
38
await runner . close ( ) ;
39
39
} ) ;
40
40
41
- test . describe . serial ( 'Registries handling verification' , ( ) => {
41
+ test . describe ( 'Registries handling verification' , ( ) => {
42
42
test ( 'Check Registries page components and presence of default registries' , async ( { navigationBar } ) => {
43
43
const settingsBar = await navigationBar . openSettings ( ) ;
44
44
const registryPage = await settingsBar . openTabPage ( RegistriesPage ) ;
@@ -52,39 +52,37 @@ test.describe.serial('Registries handling verification', () => {
52
52
}
53
53
} ) ;
54
54
55
- test . describe . serial ( 'Registry addition workflow verification' , ( ) => {
56
- test ( 'Cannot add invalid registry' , async ( { page, navigationBar } ) => {
57
- await navigationBar . openDashboard ( ) ;
58
- const settingsBar = await navigationBar . openSettings ( ) ;
59
- const registryPage = await settingsBar . openTabPage ( RegistriesPage ) ;
60
-
61
- await registryPage . createRegistry ( 'invalidUrl' , 'invalidName' , 'invalidPswd' ) ;
62
- const urlErrorMsg = page . getByText (
63
- / U n a b l e t o f i n d a u t h i n f o f o r h t t p s : \/ \/ i n v a l i d U r l \/ v 2 \/ \. E r r o r : R e q u e s t E r r o r : g e t a d d r i n f o [ A - Z _ ] + i n v a l i d u r l $ / ,
64
- ) ;
65
- await playExpect ( urlErrorMsg ) . toBeVisible ( { timeout : 50000 } ) ;
66
- await playExpect ( registryPage . cancelDialogButton ) . toBeEnabled ( ) ;
67
- await registryPage . cancelDialogButton . click ( ) ;
68
-
69
- await registryPage . createRegistry ( registryUrl , 'invalidName' , 'invalidPswd' ) ;
70
- const credsErrorMsg = page . getByText ( 'Wrong Username or Password.' ) ;
71
- await playExpect ( credsErrorMsg ) . toBeVisible ( ) ;
72
- await playExpect ( registryPage . cancelDialogButton ) . toBeEnabled ( ) ;
73
- await registryPage . cancelDialogButton . click ( ) ;
74
- } ) ;
55
+ test ( 'Cannot add invalid registry' , async ( { page, navigationBar } ) => {
56
+ await navigationBar . openDashboard ( ) ;
57
+ const settingsBar = await navigationBar . openSettings ( ) ;
58
+ const registryPage = await settingsBar . openTabPage ( RegistriesPage ) ;
59
+
60
+ await registryPage . createRegistry ( 'invalidUrl' , 'invalidName' , 'invalidPswd' ) ;
61
+ const urlErrorMsg = page . getByText (
62
+ / U n a b l e t o f i n d a u t h i n f o f o r h t t p s : \/ \/ i n v a l i d U r l \/ v 2 \/ \. E r r o r : R e q u e s t E r r o r : g e t a d d r i n f o [ A - Z _ ] + i n v a l i d u r l $ / ,
63
+ ) ;
64
+ await playExpect ( urlErrorMsg ) . toBeVisible ( { timeout : 50000 } ) ;
65
+ await playExpect ( registryPage . cancelDialogButton ) . toBeEnabled ( ) ;
66
+ await registryPage . cancelDialogButton . click ( ) ;
67
+
68
+ await registryPage . createRegistry ( registryUrl , 'invalidName' , 'invalidPswd' ) ;
69
+ const credsErrorMsg = page . getByText ( 'Wrong Username or Password.' ) ;
70
+ await playExpect ( credsErrorMsg ) . toBeVisible ( ) ;
71
+ await playExpect ( registryPage . cancelDialogButton ) . toBeEnabled ( ) ;
72
+ await registryPage . cancelDialogButton . click ( ) ;
73
+ } ) ;
75
74
76
- test . describe . serial ( ( ) => {
77
- test . skip ( ! canTestRegistry ( ) , 'Registry tests are disabled' ) ;
75
+ test . describe . serial ( 'Registry addition workflow verification' , ( ) => {
76
+ test . skip ( ! canTestRegistry ( ) , 'Registry tests are disabled' ) ;
78
77
79
- test ( 'Valid registry addition verification' , async ( { page } ) => {
80
- const registryPage = new RegistriesPage ( page ) ;
78
+ test ( 'Valid registry addition verification' , async ( { page } ) => {
79
+ const registryPage = new RegistriesPage ( page ) ;
81
80
82
- await registryPage . createRegistry ( registryUrl , registryUsername , registryPswdSecret ) ;
81
+ await registryPage . createRegistry ( registryUrl , registryUsername , registryPswdSecret ) ;
83
82
84
- const registryBox = registryPage . registriesTable . getByLabel ( registryName ) ;
85
- const username = registryBox . getByText ( registryUsername ) ;
86
- await playExpect ( username ) . toBeVisible ( { timeout : 50000 } ) ;
87
- } ) ;
83
+ const registryBox = registryPage . registriesTable . getByLabel ( registryName ) ;
84
+ const username = registryBox . getByText ( registryUsername ) ;
85
+ await playExpect ( username ) . toBeVisible ( { timeout : 50000 } ) ;
88
86
} ) ;
89
87
90
88
test ( 'Registry editing availability and invalid credentials verification' , async ( { page } ) => {
0 commit comments