Skip to content

Commit f3b768f

Browse files
Fix e2e tests
1 parent 8ae4985 commit f3b768f

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.github/workflows/single-node-test.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
source product.txt
101101
echo "METALK8S_VERSION=$VERSION" >> $GITHUB_ENV
102102
103-
## Spawn {{{
103+
## Spawn {{{
104104
- name: Export environment variables for accessing the cloud
105105
uses: ./.github/actions/export-cloud-env
106106
with:
@@ -240,6 +240,16 @@ jobs:
240240
uses: ./.github/actions/bastion-ui-tests
241241
# }}}
242242

243+
- name: Collect UI tests videos
244+
if: always()
245+
continue-on-error: true
246+
run: |
247+
export DEST_DIR="artifacts/ui-e2e-tests/${{ github.job }}"
248+
mkdir -p ${DEST_DIR}
249+
scp -F ssh_config \
250+
"bastion:/home/centos/metalk8s/ui/cypress/videos/e2e/*" \
251+
"${DEST_DIR}/"
252+
243253
- name: Generate and Collect sosreport
244254
if: always()
245255
uses: ./.github/actions/sosreport-logs

ui/cypress/integration/e2e/common/login.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Given('I am logged in', () => {
66
cy.route('GET', '/oidc/.well-known/openid-configuration').as(
77
'getOidcConfiguration',
88
);
9-
cy.wait('@getOidcConfiguration');
109

1110
//Check if we are redirected to the DEX login page
1211
cy.location('pathname').should('eq', '/oidc/auth');
@@ -33,18 +32,15 @@ Given('I am logged in', () => {
3332
};
3433
cy.wait('@saltAuthentication', timeOut);
3534

36-
cy.findByRole('navigation').should(
37-
'contain',
38-
userName,
39-
);
35+
cy.findByRole('navigation').should('contain', userName);
4036
});
4137

4238
Then('I log out', () => {
4339
const userName = Cypress.env('username');
4440
cy.findByRole('navigation').within(() => {
4541
cy.findByText(userName).click();
4642
cy.findByText(/log out/i).click();
47-
})
43+
});
4844
//Check if we are redirected to the DEX login page
4945
cy.location('pathname').should('eq', '/oidc/auth');
5046
});

0 commit comments

Comments
 (0)