mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-24 09:27:31 +09:00
Dactyloidae iOS initial commit
This commit is contained in:
parent
daa6179d22
commit
7154a0497e
2123 changed files with 197052 additions and 0 deletions
48
mobile/ios/XCUITests/CopiedLinksTests.swift
Normal file
48
mobile/ios/XCUITests/CopiedLinksTests.swift
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
import XCTest
|
||||
|
||||
class CopiedLinksTests: BaseTestCase {
|
||||
var navigator: Navigator!
|
||||
var app: XCUIApplication!
|
||||
|
||||
override func setUp() {
|
||||
super.setUp()
|
||||
app = XCUIApplication()
|
||||
navigator = createScreenGraph(app).navigator(self)
|
||||
}
|
||||
|
||||
override func tearDown() {
|
||||
navigator = nil
|
||||
app = nil
|
||||
super.tearDown()
|
||||
}
|
||||
|
||||
// This test is enable Offer to open copied links, when opening firefox
|
||||
func testCopiedLinks() {
|
||||
navigator.goto(SettingsScreen)
|
||||
|
||||
//Check Offer to open copied links, when opening firefox is off
|
||||
let value = app.tables.cells.switches["Offer to Open Copied Links, When Opening Firefox"].value
|
||||
XCTAssertEqual(value as? String, "0")
|
||||
|
||||
//Switch on, Offer to open copied links, when opening firefox
|
||||
app.tables.cells.switches["Offer to Open Copied Links, When Opening Firefox"].tap()
|
||||
|
||||
//Check Offer to open copied links, when opening firefox is on
|
||||
let value2 = app.tables.cells.switches["Offer to Open Copied Links, When Opening Firefox"].value
|
||||
XCTAssertEqual(value2 as? String, "1")
|
||||
|
||||
app.navigationBars["Settings"]/*@START_MENU_TOKEN@*/.buttons["Done"]/*[[".buttons[\"Done\"]",".buttons[\"AppSettingsTableViewController.navigationItem.leftBarButtonItem\"]"],[[[-1,1],[-1,0]]],[1]]@END_MENU_TOKEN@*/.tap()
|
||||
|
||||
app/*@START_MENU_TOKEN@*/.buttons["TabToolbar.menuButton"]/*[[".buttons[\"Menu\"]",".buttons[\"TabToolbar.menuButton\"]"],[[[-1,1],[-1,0]]],[0]]@END_MENU_TOKEN@*/.tap()
|
||||
let settingsmenuitemCell = app.tables.cells["Settings"]
|
||||
settingsmenuitemCell.tap()
|
||||
|
||||
//Check Offer to open copied links, when opening firefox is on
|
||||
let value3 = app.tables.cells.switches["Offer to Open Copied Links, When Opening Firefox"].value
|
||||
XCTAssertEqual(value3 as? String, "1")
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue