Skip to content

Commit 477868c

Browse files
committed
fix tests
1 parent 9ce9435 commit 477868c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

decidim-elections/spec/shared/full_election_process_shared_context.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def access_trustee_zone(trustee_index, upload_keys = true) # rubocop:disable Sty
6363
relogin_as trustee.user, scope: :user
6464
visit decidim.decidim_elections_trustee_zone_path
6565
expect(page).to have_content("Participant settings")
66-
expect(page).to have_css("#user-settings-tabs li a[aria-current='page']", text: "Trustee zone")
66+
expect(page).to have_css("[aria-current='page']", text: "Trustee zone")
6767

6868
if upload_keys
6969
expect(page).to have_content("Upload your identification keys")
@@ -83,18 +83,18 @@ def perform_key_ceremony_action
8383

8484
click_link "Perform action"
8585

86-
expect(page).to have_content("Create election keys")
86+
expect(page).to have_content("Create election keys for #{translated(election.title, locale: :en)}")
8787
expect(page).to have_css("#create_election", text: "Pending")
8888
expect(page).to have_css("#key_ceremony-step_1", text: "Pending")
8989
expect(page).to have_css("#key_ceremony-joint_election_key", text: "Pending")
9090

91-
expect(page).to have_selector("button.start:not(disabled)")
91+
expect(page).to have_selector("#start:not(disabled)")
9292

9393
sleep(1)
9494

9595
click_button "Start"
9696

97-
expect(page).to have_button(class: "start", disabled: true)
97+
expect(page).to have_button(id: "start", disabled: true)
9898
end
9999

100100
def complete_key_ceremony(trustee_index)
@@ -111,7 +111,7 @@ def complete_key_ceremony(trustee_index)
111111
expect(page).to have_css("#create_election", text: "Completed")
112112
expect(page).to have_css("#key_ceremony-step_1", text: "Completed")
113113
expect(page).to have_css("#key_ceremony-joint_election_key", text: "Completed")
114-
expect(page).not_to have_button(class: "start")
114+
expect(page).not_to have_button(id: "start")
115115
expect(page).to have_link("Back")
116116

117117
expect(page).to have_content("The election status is: key_ceremony_ended")

0 commit comments

Comments
 (0)