 
         // Check that the tab has changed
         waitUntilPageLoad()
-        waitForValueContains(app.textFields["url"], value: "rust")
-        XCTAssertTrue(app.staticTexts["Rust language"].exists)
+        waitForValueContains(app.textFields["url"], value: toastUrl["urlLabel"]!)
+        XCTAssertTrue(app.staticTexts[toastUrl["link"]!].exists)
         let numTab = app.buttons["Show Tabs"].value as? String
         XCTAssertEqual("2", numTab)
 
 
         // Go to Private mode and do the same
         navigator.toggleOn(userState.isPrivate, withAction: Action.TogglePrivateMode)
-        navigator.openURL(url)
-        waitUntilPageLoad()
-        app.webViews.links["Rust"].press(forDuration: 1)
+        navigator.openURL(toastUrl["url"]!)
+        waitUntilPageLoad()
+        app.webViews.links[toastUrl["link"]!].press(forDuration: 1)
         waitforExistence(app.sheets.buttons["Open in New Private Tab"])
         app.sheets.buttons["Open in New Private Tab"].press(forDuration: 1)
         waitforExistence(app.buttons["Switch"])


    // This test is disabled for iPad because the toast menu is not shown there
    func testSwitchBetweenTabsToastButton() {
        navigator.openURL(url)
        waitUntilPageLoad()
        app.webViews.links["Rust"].press(forDuration: 1)
        waitforExistence(app.sheets.buttons["Open in New Tab"])
        app.sheets.buttons["Open in New Tab"].press(forDuration: 1)
        waitforExistence(app.buttons["Switch"])

let urlExample = "example.com"
let urlLabelExample = "Example Domain"
let urlValueExample = "example"

let toastUrl = ["url": "twitter.com", "link": "About", "urlLabel": "about"]

class TopTabsTest: BaseTestCase {
    func testAddTabFromSettings() {
