@@ -62,8 +62,66 @@ context('Basic Operations', () => {
6262 } )
6363
6464 // TODO(DP): documents properties test could go here
65-
66- // TODO(DP): only allow unique file creation test should go here
65+ // it('Document properties', function () {
66+ // cy.waitForLoading();
67+ // cy.getTreeNode(mkApiPathUrl('admin', '/db/test_col/text_file.txt')).rightclick()
68+ // .getMenuCommand('fusion.properties').should('be.visible').click()
69+ // cy.get(dialogTitle).should('contain.text', 'Properties');
70+ // cy.get(dialogBody).should('be.visible').then(body => {
71+ // cy.wrap(body).find('td.label').contains('Name')
72+ // .find('+ td.value input.theia-input[type=text]').should('contain.value', 'text_file.txt');
73+ // cy.wrap(body).find('td.label').contains('Collection')
74+ // .find('+ td.value').should('contain.text', '/db/test_col');
75+ // cy.wrap(body).find('td.label').contains('Created')
76+ // .find('+ td.value').should('contain.text', Cypress.formatDate());
77+ // cy.wrap(body).find('td.label').contains('Modified')
78+ // .find('+ td.value').should('contain.text', Cypress.formatDate());
79+ // cy.wrap(body).find('td.label').contains('Media Type')
80+ // .find('+ td.value').should('contain.text', 'text/plain');
81+ // cy.wrap(body).find('td.label').contains('Binary')
82+ // .find('+ td.value').should('contain.text', 'Yes')
83+ // .find('button.theia-button').should('contain.text', 'Convert to non-binary');
84+ // cy.wrap(body).find('td.label').contains('Size')
85+ // .find('+ td.value').should('contain.text', '24 B');
86+ // cy.wrap(body).find('td.label').contains('Owner')
87+ // .find('+ td.value input.theia-input[type=text]').should('contain.value', 'admin');
88+ // cy.wrap(body).find('td.label').contains('Group')
89+ // .find('+ td.value input.theia-input[type=text]').should('contain.value', 'dba');
90+ // cy.wrap(body).find('table.permissions-editor tr').then(trs => {
91+ // cy.wrap(trs).eq(0).find('td').then(tds => {
92+ // cy.wrap(tds).eq(0).should('contain.text', 'user');
93+ // cy.wrap(tds).eq(1).findCheckbox().should('contain.text', 'read').checked();
94+ // cy.wrap(tds).eq(2).findCheckbox().should('contain.text', 'write').checked();
95+ // cy.wrap(tds).eq(3).findCheckbox().should('contain.text', 'execute').notChecked();
96+ // cy.wrap(tds).eq(4).findCheckbox().should('contain.text', 'setUID').notChecked();
97+ // });
98+ // cy.wrap(trs).eq(1).find('td').then(tds => {
99+ // cy.wrap(tds).eq(0).should('contain.text', 'group');
100+ // cy.wrap(tds).eq(1).findCheckbox().should('contain.text', 'read').checked();
101+ // cy.wrap(tds).eq(2).findCheckbox().should('contain.text', 'write').notChecked();
102+ // cy.wrap(tds).eq(3).findCheckbox().should('contain.text', 'execute').notChecked();
103+ // cy.wrap(tds).eq(4).findCheckbox().should('contain.text', 'setGID').notChecked();
104+ // });
105+ // cy.wrap(trs).eq(2).find('td').then(tds => {
106+ // cy.wrap(tds).eq(0).should('contain.text', 'other');
107+ // cy.wrap(tds).eq(1).findCheckbox().should('contain.text', 'read').checked();
108+ // cy.wrap(tds).eq(2).findCheckbox().should('contain.text', 'write').notChecked();
109+ // cy.wrap(tds).eq(3).findCheckbox().should('contain.text', 'execute').notChecked();
110+ // cy.wrap(tds).eq(4).findCheckbox().should('contain.text', 'sticky').notChecked();
111+ // });
112+ // });
113+ // });
114+ // cy.get(dialogSecondaryButton).should('be.visible').click();
115+ // cy.get(dialog).should('not.exist');
116+ // cy.getTreeNode(mkApiPathUrl('admin', '/db/test_col/xml_file.xml')).rightclick()
117+ // .getMenuCommand('fusion.properties').should('be.visible').click()
118+ // cy.get(dialogBody).should('be.visible').find('td.label').contains('Binary')
119+ // .find('+ td.value').should('contain.text', 'No')
120+ // .find('button.theia-button').should('contain.text', 'Convert to binary');
121+ // cy.get(dialogSecondaryButton).should('be.visible').click();
122+ // cy.get(dialog).should('not.exist');
123+ // })
124+ // TODO(DP): only allow unique document creation test should go here
67125
68126 it ( 'should let users delete documents' , ( ) => {
69127 cy . get ( '[node-id$=test\\.txt]' )
0 commit comments