@@ -26,98 +26,98 @@ test.describe('Generic Test Suite - CWL and General access', () => {
2626 await expect ( page . locator ( '#block-olivero-content' ) ) . toContainText ( bodyMessage ) ;
2727 await expect ( page . locator ( '.field--name-field-visibility .field__item' ) ) . toContainText ( 'CWL' ) ;
2828
29- // Create CWL user
30- await page . goto ( '/admin/people' ) ;
31- const username = `testCWL-${ Date . now ( ) } ` ;
32- await page . goto ( '/admin/people/create' ) ;
29+ // // Create CWL user
30+ // await page.goto('/admin/people');
31+ // const username = `testCWL-${Date.now()}`;
32+ // await page.goto('/admin/people/create');
3333
34- // Type username
35- await page . fill ( '[data-drupal-selector="edit-name"]' , username ) ;
34+ // // Type username
35+ // await page.fill('[data-drupal-selector="edit-name"]', username);
3636
37- // Type password
38- await page . fill ( '[data-drupal-selector="edit-pass-pass1"]' , password ) ;
39- await page . fill ( '[data-drupal-selector="edit-pass-pass2"]' , password ) ;
37+ // // Type password
38+ // await page.fill('[data-drupal-selector="edit-pass-pass1"]', password);
39+ // await page.fill('[data-drupal-selector="edit-pass-pass2"]', password);
4040
41- // Check CWL Role
42- await page . check ( '[data-drupal-selector="edit-roles-cwl"][name="roles[cwl]"]' ) ;
41+ // // Check CWL Role
42+ // await page.check('[data-drupal-selector="edit-roles-cwl"][name="roles[cwl]"]');
4343
44- // Save changes
45- await page . locator ( ' [data-drupal-selector="edit-submit"]' ) . click ( ) ;
44+ // // Save changes
45+ // await page.locator(' [data-drupal-selector="edit-submit"]').click();
4646
47- // Verify the page content
48- const primaryContent = page . locator ( '#message-status-title' ) ;
49- await expect ( primaryContent ) . toContainText ( 'Status message' ) ;
47+ // // Verify the page content
48+ // const primaryContent = page.locator('#message-status-title');
49+ // await expect(primaryContent).toContainText('Status message');
5050
51- // Log out
52- await page . goto ( '/user/logout/confirm' ) ;
53- await page . locator ( '[data-drupal-selector="edit-submit"][value="Log out"]' ) . click ( ) ;
51+ // // Log out
52+ // await page.goto('/user/logout/confirm');
53+ // await page.locator('[data-drupal-selector="edit-submit"][value="Log out"]').click();
5454
55- // Log in
56- await page . goto ( '/user' ) ;
57- await page . fill ( '#edit-name' , username ) ;
58- await page . fill ( '#edit-pass' , password ) ;
59- await page . click ( 'input#edit-submit[value="Log in"]' ) ;
55+ // // Log in
56+ // await page.goto('/user');
57+ // await page.fill('#edit-name', username);
58+ // await page.fill('#edit-pass', password);
59+ // await page.click('input#edit-submit[value="Log in"]');
6060
61- // Check both cwl and general pages can be accessed
62- await page . goto ( cwlpageURL ) ;
63- await expect ( page . locator ( '#block-olivero-page-title' ) ) . toContainText ( titleMessage ) ;
64- await expect ( page . locator ( '#block-olivero-content' ) ) . toContainText ( bodyMessage ) ;
61+ // // Check both cwl and general pages can be accessed
62+ // await page.goto(cwlpageURL);
63+ // await expect(page.locator('#block-olivero-page-title')).toContainText(titleMessage);
64+ // await expect(page.locator('#block-olivero-content')).toContainText(bodyMessage);
6565
6666
67- await page . goto ( generalpageURL ) ;
68- await expect ( page . locator ( '#block-olivero-page-title' ) ) . toContainText ( titleMessage ) ;
69- await expect ( page . locator ( '#block-olivero-content' ) ) . toContainText ( bodyMessage ) ;
67+ // await page.goto(generalpageURL);
68+ // await expect(page.locator('#block-olivero-page-title')).toContainText(titleMessage);
69+ // await expect(page.locator('#block-olivero-content')).toContainText(bodyMessage);
7070 } ) ;
7171
72- test ( 'Create and test General user access' , async ( { page } ) => {
73- // Check basic pages are created
74- await page . goto ( generalpageURL ) ;
75- await expect ( page . locator ( '#block-olivero-page-title' ) ) . toContainText ( titleMessage ) ;
76- await expect ( page . locator ( '#block-olivero-content' ) ) . toContainText ( bodyMessage ) ;
77- await expect ( page . locator ( '.field--name-field-visibility .field__item' ) ) . toContainText ( 'General' ) ;
72+ // test('Create and test General user access', async ({ page }) => {
73+ // // Check basic pages are created
74+ // await page.goto(generalpageURL);
75+ // await expect(page.locator('#block-olivero-page-title')).toContainText(titleMessage);
76+ // await expect(page.locator('#block-olivero-content')).toContainText(bodyMessage);
77+ // await expect(page.locator('.field--name-field-visibility .field__item')).toContainText('General');
7878
79- await page . goto ( cwlpageURL ) ;
80- await expect ( page . locator ( '#block-olivero-page-title' ) ) . toContainText ( titleMessage ) ;
81- await expect ( page . locator ( '#block-olivero-content' ) ) . toContainText ( bodyMessage ) ;
82- await expect ( page . locator ( '.field--name-field-visibility .field__item' ) ) . toContainText ( 'CWL' ) ;
79+ // await page.goto(cwlpageURL);
80+ // await expect(page.locator('#block-olivero-page-title')).toContainText(titleMessage);
81+ // await expect(page.locator('#block-olivero-content')).toContainText(bodyMessage);
82+ // await expect(page.locator('.field--name-field-visibility .field__item')).toContainText('CWL');
8383
84- // Create General user
85- const username = `testGeneral-${ Date . now ( ) } ` ;
86- await page . goto ( '/admin/people/create' ) ;
84+ // // Create General user
85+ // const username = `testGeneral-${Date.now()}`;
86+ // await page.goto('/admin/people/create');
8787
88- // Type username
89- await page . fill ( '[data-drupal-selector="edit-name"]' , username ) ;
88+ // // Type username
89+ // await page.fill('[data-drupal-selector="edit-name"]', username);
9090
91- // Type password
92- await page . fill ( '[data-drupal-selector="edit-pass-pass1"]' , password ) ;
93- await page . fill ( '[data-drupal-selector="edit-pass-pass2"]' , password ) ;
91+ // // Type password
92+ // await page.fill('[data-drupal-selector="edit-pass-pass1"]', password);
93+ // await page.fill('[data-drupal-selector="edit-pass-pass2"]', password);
9494
95- // Save changes
96- await page . locator ( ' [data-drupal-selector="edit-submit"]' ) . click ( ) ;
95+ // // Save changes
96+ // await page.locator(' [data-drupal-selector="edit-submit"]').click();
9797
98- // Verify the page content
99- const primaryContent = page . locator ( '#message-status-title' ) ;
100- await expect ( primaryContent ) . toContainText ( 'Status message' ) ;
98+ // // Verify the page content
99+ // const primaryContent = page.locator('#message-status-title');
100+ // await expect(primaryContent).toContainText('Status message');
101101
102102
103- // Log out
104- await page . goto ( '/user/logout/confirm' ) ;
105- await page . locator ( '[data-drupal-selector="edit-submit"][value="Log out"]' ) . click ( ) ;
103+ // // Log out
104+ // await page.goto('/user/logout/confirm');
105+ // await page.locator('[data-drupal-selector="edit-submit"][value="Log out"]').click();
106106
107- // Log in
108- await page . goto ( '/user' ) ;
109- await page . fill ( '#edit-name' , username ) ;
110- await page . fill ( '#edit-pass' , password ) ;
111- await page . click ( 'input#edit-submit[value="Log in"]' ) ;
107+ // // Log in
108+ // await page.goto('/user');
109+ // await page.fill('#edit-name', username);
110+ // await page.fill('#edit-pass', password);
111+ // await page.click('input#edit-submit[value="Log in"]');
112112
113- // Check only general page can be accessed
114- await page . goto ( cwlpageURL ) ;
115- await expect ( page . locator ( '#block-olivero-page-title' ) ) . toContainText ( 'Page not found' ) ;
113+ // // Check only general page can be accessed
114+ // await page.goto(cwlpageURL);
115+ // await expect(page.locator('#block-olivero-page-title')).toContainText('Page not found');
116116
117117
118- await page . goto ( generalpageURL ) ;
119- await expect ( page . locator ( '#block-olivero-page-title' ) ) . toContainText ( titleMessage ) ;
120- await expect ( page . locator ( '#block-olivero-content' ) ) . toContainText ( bodyMessage ) ;
121- } ) ;
118+ // await page.goto(generalpageURL);
119+ // await expect(page.locator('#block-olivero-page-title')).toContainText(titleMessage);
120+ // await expect(page.locator('#block-olivero-content')).toContainText(bodyMessage);
121+ // });
122122
123123} ) ;
0 commit comments