Skip to content

Commit fd984b1

Browse files
authored
adjustments to gitlab runner token collection process (#44)
1 parent d0240f6 commit fd984b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gitops/terraform/cypress/cypress/integration/gitlab-init.spec.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ context('Window', () => {
2929

3030
it('gets the runner registration token', () => {
3131
cy.visit('/admin/runners')
32+
cy.get('#__BVID__21__BV_toggle_ > [data-testid=chevron-down-icon]').click()
3233
cy.get('[data-testid=eye-icon] > use').click()
33-
cy.get('[data-testid=registration-token] > span').then(elem => {
34+
cy.get('[data-testid=token-value] > .gl-button-text').then(elem => {
3435
// elem is the underlying Javascript object targeted by the .get() command.
3536
const token = Cypress.$(elem).text();
3637
cy.writeFile('../.gitlab-runner-registration-token', token.trim())

0 commit comments

Comments
 (0)