Browse Source

Add ids with interactable components

Makes it easier to perform automatic ui testing

contributes to CURA-8689
c.lamboo 2 years ago
parent
commit
c5788be6f7

+ 3 - 0
resources/qml/WelcomePages/AddUltimakerOrThirdPartyPrinter.qml

@@ -49,6 +49,7 @@ Control
 
             PrinterCard
             {
+                id: ultimakerPrinterCard
                 onClicked: goToUltimakerPrinter
                 text: catalog.i18nc("@button", "Ultimaker printer")
                 imageSource: UM.Theme.getImage("ultimaker_printer")
@@ -56,6 +57,7 @@ Control
 
             PrinterCard
             {
+                id: thrirdPartyPrinterCard
                 onClicked: goToThirdPartyPrinter
                 text: catalog.i18nc("@button", "Non Ultimaker printer")
                 imageSource: UM.Theme.getImage("third_party_printer")
@@ -64,6 +66,7 @@ Control
 
         Cura.TertiaryButton
         {
+            id: learnMoreButton
             Layout.alignment: Qt.AlignBottom
             text: catalog.i18nc("@button", "Learn more about adding printers to Cura")
             iconSource: UM.Theme.getIcon("LinkExternal")

+ 3 - 0
resources/qml/WelcomePages/AddUltimakerPrinter.qml

@@ -80,6 +80,7 @@ Control
 
                 Cura.TertiaryButton
                 {
+                    id: learnMoreButton
                     Layout.fillWidth: true
                     Layout.alignment: Qt.AlignTop
                     text: catalog.i18nc("@button", "Learn more")
@@ -101,6 +102,7 @@ Control
 
                 Cura.SecondaryButton
                 {
+                    id: addLocalPrinterButton
                     Layout.alignment: Qt.AlignLeft
                     text: catalog.i18nc("@button", "Add local printer")
                     onClicked: goToThirdPartyPrinter()
@@ -108,6 +110,7 @@ Control
 
                 Cura.PrimaryButton
                 {
+                    id: signInButton
                     Layout.alignment: Qt.AlignRight
                     text: catalog.i18nc("@button", "Sign in to Digital Factory")
                     onClicked: function()