forked from data-integrations/google-cloud
-
Notifications
You must be signed in to change notification settings - Fork 2
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
13 changed files
with
119 additions
and
61 deletions.
There are no files selected for viewing
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
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
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
37 changes: 37 additions & 0 deletions
37
src/e2e-test/java/io/cdap/plugin/datastore/stepsdesign/Actions/DataStoreActions.java
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,37 @@ | ||
/* | ||
* Copyright © 2024 Cask Data, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
* use this file except in compliance with the License. You may obtain a copy of | ||
* the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations under | ||
* the License. | ||
*/ | ||
|
||
package io.cdap.plugin.datastore.stepsdesign.Actions; | ||
|
||
import io.cdap.e2e.utils.ElementHelper; | ||
import io.cdap.e2e.utils.SeleniumHelper; | ||
import io.cdap.plugin.datastore.stepsdesign.Locators.DataStoreLocators; | ||
import io.cdap.plugin.utils.DataStoreClient; | ||
|
||
public class DataStoreActions { | ||
static { | ||
|
||
SeleniumHelper.getPropertiesLocators(DataStoreLocators.class); | ||
} | ||
public static void enterKind(String kindName) { | ||
ElementHelper.sendKeys(DataStoreLocators.kind, kindName); | ||
} | ||
|
||
public static void enterAncestor() | ||
{ | ||
ElementHelper.sendKeys(DataStoreLocators.ancestor, DataStoreClient.getKeyLiteral()); | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
src/e2e-test/java/io/cdap/plugin/datastore/stepsdesign/Actions/package-info.java
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,4 @@ | ||
/** | ||
* Package contains the actions for the DataStore features. | ||
*/ | ||
package io.cdap.plugin.datastore.stepsdesign.Actions; |
20 changes: 0 additions & 20 deletions
20
src/e2e-test/java/io/cdap/plugin/datastore/stepsdesign/DataStoreActions.java
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
src/e2e-test/java/io/cdap/plugin/datastore/stepsdesign/DataStoreLocators.java
This file was deleted.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
src/e2e-test/java/io/cdap/plugin/datastore/stepsdesign/Locators/DataStoreLocators.java
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 @@ | ||
/* | ||
* Copyright © 2024 Cask Data, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
* use this file except in compliance with the License. You may obtain a copy of | ||
* the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations under | ||
* the License. | ||
*/ | ||
|
||
package io.cdap.plugin.datastore.stepsdesign.Locators; | ||
|
||
import org.openqa.selenium.WebElement; | ||
import org.openqa.selenium.support.FindBy; | ||
import org.openqa.selenium.support.How; | ||
|
||
public class DataStoreLocators { | ||
@FindBy(how = How.XPATH, using = "//input[@data-testid='kind']") | ||
public static WebElement kind; | ||
|
||
@FindBy(how = How.XPATH, using = "//input[@data-testid='ancestor']") | ||
public static WebElement ancestor; | ||
} |
4 changes: 4 additions & 0 deletions
4
src/e2e-test/java/io/cdap/plugin/datastore/stepsdesign/Locators/package-info.java
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,4 @@ | ||
/** | ||
* Package contains the locators for the DataStore features. | ||
*/ | ||
package io.cdap.plugin.datastore.stepsdesign.Locators; |
17 changes: 0 additions & 17 deletions
17
src/e2e-test/java/io/cdap/plugin/datastore/stepsdesign/StepDesigns.java
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
src/e2e-test/java/io/cdap/plugin/datastore/stepsdesign/Stepdesigns/StepDesigns.java
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,34 @@ | ||
/* | ||
* Copyright © 2024 Cask Data, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
* use this file except in compliance with the License. You may obtain a copy of | ||
* the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations under | ||
* the License. | ||
*/ | ||
|
||
package io.cdap.plugin.datastore.stepsdesign.Stepdesigns; | ||
import io.cdap.plugin.common.stepsdesign.TestSetupHooks; | ||
|
||
import io.cdap.plugin.datastore.stepsdesign.Actions.DataStoreActions; | ||
import io.cucumber.java.en.Then; | ||
|
||
public class StepDesigns { | ||
@Then("Enter kind for datastore plugin") | ||
public void enterKindForDatastorePlugin() { | ||
DataStoreActions.enterKind(TestSetupHooks.kindName); | ||
|
||
} | ||
|
||
@Then("Enter Ancestor for the datastore plugin") | ||
public void enterAncestorForTheDatastorePlugin() { | ||
DataStoreActions.enterAncestor(); | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
src/e2e-test/java/io/cdap/plugin/datastore/stepsdesign/Stepdesigns/package-info.java
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,4 @@ | ||
/** | ||
* Package contains the stepDesign for the DataStore features. | ||
*/ | ||
package io.cdap.plugin.datastore.stepsdesign.Stepdesigns; |
4 changes: 0 additions & 4 deletions
4
src/e2e-test/java/io/cdap/plugin/datastore/stepsdesign/package-info.java
This file was deleted.
Oops, something went wrong.