Skip to content

added fixes for check attachment spec#1217

Merged
tomholub merged 1 commit intomasterfrom
tests/issue-1204
Dec 13, 2021
Merged

added fixes for check attachment spec#1217
tomholub merged 1 commit intomasterfrom
tests/issue-1204

Conversation

@fcvakintos
Copy link
Contributor

@fcvakintos fcvakintos commented Dec 13, 2021

This PR contains changes for check email with attachment spec, added new methods, updated selectors
close #1204


Tests

  • Tests added or updated

To be filled by reviewers

I have reviewed that this PR... (tick whichever items you personally focused on during this review):

  • addresses the issue it closes (if any)
  • code is readable and understandable
  • is accompanied with tests, or tests are not needed
  • is free of vulnerabilities
  • is documented clearly and usefully, or doesn't need documentation

Comment on lines 4 to 8
const SELECTORS = {
BACK_BTN: '~arrow left c'
BACK_BTN: '~arrow left c',
SAVE_BTN: '-ios class chain:**/XCUIElementTypeButton[`label == "Save"`]',
CANCEL_BTN: '~Cancel',
};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll file issue to add accessibility ids to these three, aid-back-icon, aid-save-attachment-to-device and aid-cancel-saving-attachment

checkDownloadPopUp = async (name: string) => {
await (await this.backButton).waitForDisplayed();
await (await this.cancelButton).waitForDisplayed();
const attachment = `-ios class chain:**/XCUIElementTypeNavigationBar[\`name == "com_apple_DocumentManager_Service.DOCServiceTargetSelectionBrowserView"\`]/XCUIElementTypeButton/XCUIElementTypeStaticText`;//it works only with this selector
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need accessibility id aid-attachment-name-container


checkAttachment = async (name: string) => {
await (await this.backButton).waitForDisplayed();
const attachmentHeader = `-ios class chain:**/XCUIElementTypeNavigationBar[\`name == "${name}"\`]`;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aid-attachment-header-name

WRONG_PASS_PHRASE_MESSAGE: '-ios class chain:**/XCUIElementTypeStaticText[`label == "Wrong pass phrase, please try again"`]',
ATTACHMENT_CELL: '~attachmentCell0',
ATTACHMENT_TITLE: 'attachmentTitleLabel0',
ATTACHMENT_TITLE: '~attachmentTitleLabel0',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aid-attachment-title-label-0

Comment on lines 12 to 13
REPLY_BUTTON: '~replyButton',
RECIPIENTS_BUTTON: '~messageRecipientButton',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aid-reply-icon and aid-message-recipients-tappable-area

@tomholub
Copy link
Collaborator

Very good. I'll file a separate issue to add / update more accessibility ids.

@tomholub tomholub merged commit d55732d into master Dec 13, 2021
@tomholub tomholub deleted the tests/issue-1204 branch December 13, 2021 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

update tests to check new view attachment screen

3 participants