From eb00b45ef45b18b1e7d783af77ceb62874483565 Mon Sep 17 00:00:00 2001 From: John Cowen Date: Fri, 24 Sep 2021 13:04:41 +0100 Subject: [PATCH] ui: Use last-child for selecting the desired nspace instead of nth-child (#11127) --- .../consul-ui/tests/acceptance/dc/intentions/create.feature | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/packages/consul-ui/tests/acceptance/dc/intentions/create.feature b/ui/packages/consul-ui/tests/acceptance/dc/intentions/create.feature index 38627f187d..26fb967449 100644 --- a/ui/packages/consul-ui/tests/acceptance/dc/intentions/create.feature +++ b/ui/packages/consul-ui/tests/acceptance/dc/intentions/create.feature @@ -37,11 +37,11 @@ Feature: dc / intentions / create: Intention Create Then I see the text "db" in "[data-test-destination-element] .ember-power-select-selected-item" # Set source nspace And I click "[data-test-source-nspace] .ember-power-select-trigger" - And I click ".ember-power-select-option:nth-child(2)" + And I click ".ember-power-select-option:last-child" Then I see the text "nspace-0" in "[data-test-source-nspace] .ember-power-select-selected-item" # Set destination nspace And I click "[data-test-destination-nspace] .ember-power-select-trigger" - And I click ".ember-power-select-option:nth-child(2)" + And I click ".ember-power-select-option:last-child" Then I see the text "nspace-0" in "[data-test-destination-nspace] .ember-power-select-selected-item" # Specifically set deny And I click ".value-deny"