Skip to content

Commit

Permalink
Bugfix MTE-3529 DownloadsTests and iOS 16 (#22154)
Browse files Browse the repository at this point in the history
* "Add Tags" don't have label in iOS 16 only

* 🈳 Empty commit 🈳
  • Loading branch information
clarmso authored Sep 25, 2024
1 parent 6ab53fd commit 7e56882
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,12 @@ class DownloadsTests: BaseTestCase {
shareButton.tap(force: true)
mozWaitForElementToExist(app.tables["DownloadsTable"])
mozWaitForElementToExist(app.tables["DownloadsTable"].staticTexts[testFileNameDownloadPanel])
if #available(iOS 16, *) {
if #available(iOS 17, *) {
mozWaitForElementToExist(app.collectionViews.cells["Copy"])
mozWaitForElementToExist(app.collectionViews.cells["Add Tags"])
mozWaitForElementToExist(app.collectionViews.cells["Save to Files"])
} else if #available(iOS 16, *) {
mozWaitForElementToExist(app.collectionViews.cells["Copy"])
} else {
mozWaitForElementToExist(app.collectionViews.buttons["Copy"])
}
Expand All @@ -148,10 +150,12 @@ class DownloadsTests: BaseTestCase {
app.tables.cells.staticTexts[testFileNameDownloadPanel].press(forDuration: 2)
mozWaitForElementToExist(app.otherElements["ActivityListView"])
mozWaitForElementToExist(app.tables["DownloadsTable"].staticTexts[testFileNameDownloadPanel])
if #available(iOS 16, *) {
if #available(iOS 17, *) {
mozWaitForElementToExist(app.collectionViews.cells["Copy"])
mozWaitForElementToExist(app.collectionViews.cells["Add Tags"])
mozWaitForElementToExist(app.collectionViews.cells["Save to Files"])
} else if #available(iOS 16, *) {
mozWaitForElementToExist(app.collectionViews.cells["Copy"])
} else {
mozWaitForElementToExist(app.collectionViews.buttons["Copy"])
}
Expand Down

0 comments on commit 7e56882

Please sign in to comment.