Skip to content

Commit 86784f0

Browse files
committed
test: fix failing test (login required to view pushes)
1 parent 714d068 commit 86784f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cypress/e2e/autoApproved.cy.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import moment from 'moment';
22

33
describe('Auto-Approved Push Test', () => {
44
beforeEach(() => {
5+
cy.login('admin', 'admin');
6+
57
cy.intercept('GET', '/api/v1/push/123', {
68
statusCode: 200,
79
body: {
@@ -45,7 +47,7 @@ describe('Auto-Approved Push Test', () => {
4547
});
4648

4749
it('should display auto-approved message and verify tooltip contains the expected timestamp', () => {
48-
cy.visit('/admin/push/123');
50+
cy.visit('/dashboard/push/123');
4951

5052
cy.wait('@getPush');
5153

0 commit comments

Comments
 (0)