File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ const ADD_TEMPLATE_ITEM_PAGE = '/collections/' . concat ( Cypress . env ( 'DSPACE_TEST_COLLECTION' ) ) . concat ( '/itemtemplate' ) ;
2+
3+ describe ( 'Item Template' , ( ) => {
4+ beforeEach ( ( ) => {
5+ cy . visit ( ADD_TEMPLATE_ITEM_PAGE ) ;
6+ cy . loginViaForm ( Cypress . env ( 'DSPACE_TEST_ADMIN_USER' ) , Cypress . env ( 'DSPACE_TEST_ADMIN_PASSWORD' ) ) ;
7+ } ) ;
8+
9+ it ( 'It should display the elements with specific texts' , ( ) => {
10+ cy . contains ( '.ds-header-row .lbl-cell' , 'Field' , { timeout : 10000 } ) . should ( 'exist' ) . should ( 'be.visible' ) ;
11+ cy . contains ( '.ds-header-row b' , 'Value' , { timeout : 10000 } ) . should ( 'exist' ) . should ( 'be.visible' ) ;
12+ cy . contains ( '.ds-header-row b' , 'Lang' , { timeout : 10000 } ) . should ( 'exist' ) . should ( 'be.visible' ) ;
13+ cy . contains ( '.ds-header-row b' , 'Edit' , { timeout : 10000 } ) . should ( 'exist' ) . should ( 'be.visible' ) ;
14+ } ) ;
15+ } ) ;
You can’t perform that action at this time.
0 commit comments