From 72029684f20653e4ca81bf2adc881d2eefe6c9fe Mon Sep 17 00:00:00 2001 From: Bogdan Cochior <bogdan.cochior@thinslices.com> Date: Wed, 14 Mar 2018 17:04:33 +0200 Subject: [PATCH] chore(automation): add to .gitignore temptests --- automation/.classpath | 1 + automation/.project | 18 +++++++++++++ .../Libs/TempTestCase1521038318313.groovy | 25 ------------------- .../Script1520433593112.groovy | 7 +++--- .../component-wizard/src/components/Wizard.js | 3 ++- 5 files changed, 25 insertions(+), 29 deletions(-) delete mode 100644 automation/Libs/TempTestCase1521038318313.groovy diff --git a/automation/.classpath b/automation/.classpath index 3a7fee78b..af5997033 100644 --- a/automation/.classpath +++ b/automation/.classpath @@ -70,5 +70,6 @@ <classpathentry kind="lib" path="/Applications/Katalon Studio.app/Contents/Eclipse/plugins/com.google.oauth-client.google-oauth-client_1.22.0.jar"/> <classpathentry kind="lib" path="/Applications/Katalon Studio.app/Contents/Eclipse/plugins/com.google.http-client.google-http-client_1.22.0.jar"/> <classpathentry exported="true" kind="con" path="GROOVY_SUPPORT"/> + <classpathentry exported="true" kind="con" path="GROOVY_DSL_SUPPORT"/> <classpathentry kind="output" path="bin"/> </classpath> diff --git a/automation/.project b/automation/.project index ccdb16fbf..85f358f9d 100644 --- a/automation/.project +++ b/automation/.project @@ -34,5 +34,23 @@ <arguments>(.*\.svn-base$)|(.*\.png$)|(.*\.log$)|(.*\.xlsx$)|(.*\.xls$)|(.*\.csv$)|(.*\.txt$)</arguments> </matcher> </filter> + <filter> + <id>1521038966594</id> + <name></name> + <type>10</type> + <matcher> + <id>org.eclipse.core.resources.regexFilterMatcher</id> + <arguments>.*\.svn$</arguments> + </matcher> + </filter> + <filter> + <id>1521038966604</id> + <name></name> + <type>6</type> + <matcher> + <id>org.eclipse.core.resources.regexFilterMatcher</id> + <arguments>(.*\.svn-base$)|(.*\.png$)|(.*\.log$)|(.*\.xlsx$)|(.*\.xls$)|(.*\.csv$)|(.*\.txt$)</arguments> + </matcher> + </filter> </filteredResources> </projectDescription> diff --git a/automation/Libs/TempTestCase1521038318313.groovy b/automation/Libs/TempTestCase1521038318313.groovy deleted file mode 100644 index 72da09a02..000000000 --- a/automation/Libs/TempTestCase1521038318313.groovy +++ /dev/null @@ -1,25 +0,0 @@ -import com.kms.katalon.core.main.TestCaseMain -import com.kms.katalon.core.logging.KeywordLogger -import groovy.lang.MissingPropertyException -import com.kms.katalon.core.testcase.TestCaseBinding -import com.kms.katalon.core.driver.internal.DriverCleanerCollector -import com.kms.katalon.core.model.FailureHandling -import com.kms.katalon.core.configuration.RunConfiguration -import com.kms.katalon.core.webui.contribution.WebUiDriverCleaner -import com.kms.katalon.core.mobile.contribution.MobileDriverCleaner - - -DriverCleanerCollector.getInstance().addDriverCleaner(new com.kms.katalon.core.webui.contribution.WebUiDriverCleaner()) -DriverCleanerCollector.getInstance().addDriverCleaner(new com.kms.katalon.core.mobile.contribution.MobileDriverCleaner()) - - -RunConfiguration.setExecutionSettingFile('/var/folders/3h/5jvs258x4lng1yz2s32ryr4r0000gn/T/Katalon/Test Cases/Add new manuscript/Add a new manuscript/20180314_163838/execution.properties') - -TestCaseMain.beforeStart() -try { - - TestCaseMain.runTestCase('Test Cases/Add new manuscript/Add a new manuscript', new TestCaseBinding('Test Cases/Add new manuscript/Add a new manuscript', [:]), FailureHandling.STOP_ON_FAILURE ) - -} catch (Exception e) { - TestCaseMain.logError(e, 'Test Cases/Add new manuscript/Add a new manuscript') -} diff --git a/automation/Scripts/Add new manuscript/Add a new manuscript/Script1520433593112.groovy b/automation/Scripts/Add new manuscript/Add a new manuscript/Script1520433593112.groovy index f40227d1c..f48875d6f 100644 --- a/automation/Scripts/Add new manuscript/Add a new manuscript/Script1520433593112.groovy +++ b/automation/Scripts/Add new manuscript/Add a new manuscript/Script1520433593112.groovy @@ -21,7 +21,6 @@ import internal.GlobalVariable as GlobalVariable import org.junit.After as After import org.openqa.selenium.Keys as Keys - WebUI.openBrowser(null) WebUI.navigateToUrl('http://localhost:3000') @@ -30,13 +29,13 @@ username = findTestObject('SignIn/usernameField') WebUI.click(username) -WebUI.setText(username, 'vlad') +WebUI.setText(username, 'admin') password = findTestObject('SignIn/passwordField') WebUI.click(password) -WebUI.setText(password, '123123123') +WebUI.setText(password, 'admin123') loginButton = findTestObject('SignIn/LoginButton') @@ -57,6 +56,7 @@ hindawiFaraday = findTestObject('NewManuscript/journalfFieldSelection/HindawiFar WebUI.waitForElementVisible(newButton, 2) WebUI.click(hindawiFaraday) + WebUI.click(hindawiFaraday) issue = findTestObject('NewManuscript/journalfFieldSelection/Issue') @@ -160,6 +160,7 @@ NextButton = findTestObject('NewManuscript/manuscriptAuthorsDetails/Next') WebUI.click(NextButton) attachFile = findTestObject('NewManuscript/manuscriptFilesUpload/attachFile') + WebUI.uploadFile(attachFile, '/Users/vladstegaru/Documents/Hindawi/attachements/document.pdf') submitManuscript = findTestObject('NewManuscript/manuscriptFilesUpload/submitManuscript') diff --git a/packages/component-wizard/src/components/Wizard.js b/packages/component-wizard/src/components/Wizard.js index 97edfa95a..3ef3ff583 100644 --- a/packages/component-wizard/src/components/Wizard.js +++ b/packages/component-wizard/src/components/Wizard.js @@ -11,8 +11,9 @@ export default ({ nextStep, prevStep, step, + project, }) => ( - <Root> + <Root data-test={`submission-${project.customId}`}> {showProgress && ( <Steps currentStep={step} margin="0 20px 60px 0"> {getSteps().map((step, index) => ( -- GitLab