Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AYS-190 | Test application registrations page details #38

Merged
merged 9 commits into from
Apr 16, 2024
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# These owner(s) will be the default owners for everything in the repo.

* @agitrubard @yvzcnr @Nbhtozcn @cagla88
* @agitrubard @yvzcnr @Nbhtozcn @cagla88 @TekinMerve
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# AYS UI Test Automation Repository
# AYS | Afet Yönetim Sistemi UI Test Automation [![Application Status](https://github.com/afet-yonetim-sistemi/ays-fe-ui-automation/actions/workflows/application-health-checker.yml/badge.svg)](https://github.com/afet-yonetim-sistemi/ays-fe-ui-automation/actions/workflows/application-health-checker.yml)

This repository contains automated UI tests using the Selenium-Cucumber-TestNG framework. The tests are organized into packages for ease of use and maintainability.

Expand Down
8 changes: 8 additions & 0 deletions src/test/java/org/ays/browser/AysPageActions.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,12 @@ public void clickElementWithJavaScript(WebElement element) {
executor.executeScript("arguments[0].click();", element);
}

public void waitFor(int seconds) {
try {
Thread.sleep(seconds * 1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
@Regression
Feature: Test Registration Applications Page Details

Background:
Given Open the institution login page
When Enter the super admin username and password
And Click the Login button

@Smoke
Scenario: Verify column headers on registration application list page
When Click on the registration-application
Then I should see the following column headers
| Organization |
| Creation Reason |
| Status |
| Created User |
| Created At |
| Actions |

Scenario: Verify action button is not available when application status is WAITING
When Click on the registration-application
When Click filter icon
And Click status bar
And Select waiting option from the status menu
And Click status bar
When Click filter button
Then The review button should not be available


66 changes: 0 additions & 66 deletions src/test/java/org/ays/feature/Assignments.feature

This file was deleted.

16 changes: 0 additions & 16 deletions src/test/java/org/ays/feature/AssignmentsDelete.feature

This file was deleted.

16 changes: 0 additions & 16 deletions src/test/java/org/ays/feature/AssignmentsEdit.feature

This file was deleted.

19 changes: 0 additions & 19 deletions src/test/java/org/ays/feature/AssignmentsFilter.feature

This file was deleted.

28 changes: 0 additions & 28 deletions src/test/java/org/ays/feature/AssignmentsLocation.feature

This file was deleted.

12 changes: 0 additions & 12 deletions src/test/java/org/ays/feature/AssignmentsShow.feature

This file was deleted.

4 changes: 4 additions & 0 deletions src/test/java/org/ays/feature/UsersCreate.feature
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ Feature: Testing Users Section
And Fill out the users form
Then Click on the save button
And "Successful" success message is displayed
And "New User Created" title is displayed
And Username and Password information is displayed
Then Click on the Copy and Close button
And "Username and password copied to clipboard" message is displayed

Scenario: Create an Users with an Invalid First Name
When Click on the users tab
Expand Down
7 changes: 6 additions & 1 deletion src/test/java/org/ays/feature/UsersDelete.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Ignored
@Smoke @Regression
Feature: Testing Users

Background:
Expand All @@ -8,6 +8,11 @@ Feature: Testing Users

Scenario: Delete the Existing Users
When Click on the users tab
And Click on the create button
And Fill out the users form using "Test" firstName
Then Click on the save button
And Click on the pop up close button
And Click on the pop up close Ok button
And Sort Created At column in descending order
And Click on the trash bin icon for the top users
And Click on the delete button for the top users
Expand Down
3 changes: 1 addition & 2 deletions src/test/java/org/ays/feature/UsersEdit.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Ignored
@Ignore
Feature: Testing Users

Background:
Expand All @@ -8,7 +8,6 @@ Feature: Testing Users

Scenario: Editing Users
When Click on the users tab
And Sort Created At column in descending order
And Click on the pencil icon
And Edit the status section in the user form
Then Click on the save edit button
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/ays/feature/UsersShow.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Ignored
@Regression
Feature: Testing Users

Background:
Expand Down
130 changes: 0 additions & 130 deletions src/test/java/org/ays/pages/AssignmentsPOM.java

This file was deleted.

Loading
Loading