-
Notifications
You must be signed in to change notification settings - Fork 28
test: UI tests for Login and Sign Up screens #99
base: develop
Are you sure you want to change the base?
Conversation
Conflicts: mentorship ios.xcodeproj/project.pbxproj
Conflicts: mentorship ios.xcodeproj/project.pbxproj
@@ -882,7 +890,7 @@ | |||
"$(inherited)", | |||
"@executable_path/Frameworks", | |||
); | |||
PRODUCT_BUNDLE_IDENTIFIER = "yugantar.mentorship-ios"; | |||
PRODUCT_BUNDLE_IDENTIFIER = "yugantarjain.mentorship-ios"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
org.anitab.mentorship
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
} | ||
|
||
override func tearDownWithError() throws { | ||
// Put teardown code here. This method is called after the invocation of each test method in the class. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
XCUIApplication should be terminated here in teardown.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also in the other.. one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay
Conflicts: mentorship ios.xcodeproj/project.pbxproj
…lts and make sure we're on login screen.
@ApheleiaS Done. |
Approved the changes here @yugantarjain. You will need to resolve conflicts :) |
func testSignUpButtonWithFilledFields() { | ||
// MARK: - Filled fields. But tnc unchecked. | ||
// Text fields should be hittable. Check Name field for this purpose. | ||
XCTAssert(app.scrollViews.otherElements.textFields["Name"].isHittable) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another inconsistency found.
Commenting out line 64 (XCTAssert(app.scrollViews.otherElements.textFields["Name"].isHittable) fails the test. Ideally, it shouldn't.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it on popup screen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is on sign up screen (modal screen). However, unlike the dismiss x button test, this involves a single screen only.
@anitab-org/mentorship-ios-maintainers should we close this PR? |
Don't think to write tests in page object design pattern? separate and store ui elements in separate pages/screen, and in tests itself there are just test steps and assertions. If you are interested I can open pull request with these ui tests in structured way to make tests maintainable, reusable and readable |
Hi @ZhanatM, sure! Just create a new issue and I'll assign it to you. Thanks! |
Description
This PR includes UI tests for login and sign up screen.
Fixes #10
Type of Change:
Code/Quality Assurance Only
How Has This Been Tested?
Tested on Xcode using XCTest.
Checklist:
Code/Quality Assurance Only