-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
...rg/modelcatalogue/core/rolevisibility/CuratorCannotCreateClassInFinalizedModelSpec.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package org.modelcatalogue.core.rolevisibility | ||
|
||
import geb.spock.GebSpec | ||
import spock.lang.Issue | ||
import spock.lang.Narrative | ||
import spock.lang.Specification | ||
import spock.lang.Title | ||
|
||
@Issue('https://metadata.atlassian.net/browse/MET-1628') | ||
@Title('Check that a Curator is not able to create a data class in finalised model') | ||
@Narrative($/ | ||
- Login to Metadata Exchange As Curator | Login successful. | ||
- Click on the 'Create Data Model' button (plus sign) in the top right menu | Redirected to 'Create Data Model' page | ||
- Fill form with Name, Catalogue ID, Description and click the Save button. | New Data Model is created. Redirected to new Data Models main page in display panel. | ||
- Using tree-navigation panel, select Data Classes tag. | Redirected in display panel to Active Data Classes page. Title should be 'Active Data Classes'. | ||
- Click on the Create New (green plus sign) button in the display panel under the 'Active Data Classes' title. | Create new Data Class Wizard pop-up appears. Title is 'Data Class Wizard'. | ||
- Fill Data Class Wizard form with Name, Catalogue ID , description. and click the green save button ( green tick) in the top right hand of the Data Class Wizard. | Data Class is created. Data Class Wizard gives options to Create Another or Close. | ||
- Select to close Data Class Wizard. | Data Class Wizard is closed. New Data Class is present in list under 'Active Data Classes' . | ||
- Using tree panel navigate to the Data Model name and select to go back to the Data Model main page. | Display panel redirects to Data Model main page. | ||
- Navigate to top left hand menu. Select the 'Data Model' menu button | Data Model menu drop-down appears | ||
- From Data Model menu drop-down, select option to 'Finalize' model. | Finalise model dialogue pop-up appears. | ||
- Fill in 'Finalise Data Model' pop-up with Semantic Version number and revision notes. Click on 'Finalize' button. | 'Finalizing' process dialogue box appears | ||
- Wait until text in messages panel ends with 'COMPLETED SUCCESSFULLY'. Click 'Hide' on the 'Finalizing' process box | Data Model is finalized. Redirected to main page of Finalized data model in both display and tree navigation panel | ||
- Using tree navigation panel, select the Data Classes tag. | Redirected in display panel to Active Data Classes page. Title should be 'Active Data Classes'. | ||
- Verify that (In Active Data Classes) under the list of Data Classes, there is no 'Create new' green plus button . | No option to create new data class. | ||
- Verify that there is no left hand menu and no 'Data Class' menu button | No Data Class menu button present in Finalized version of the Data Model/$) | ||
|
||
class CuratorCannotCreateClassInFinalizedModelSpec extends GebSpec { | ||
} |