Skip to content

Commit

Permalink
Just use / for root url
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Reynolds <[email protected]>
  • Loading branch information
gsreynolds committed Dec 5, 2023
1 parent e2d274b commit 17aac1d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cypress/e2e/app.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe('PagerDuty Live', { failFast: { enabled: true } }, () => {
cy.intercept('https://api.pagerduty.com/abilities*', {
abilities: ['teams', 'read_only_users', 'service_support_hours', 'urgencies'],
}).as('getAbilities');
cy.visit('http://localhost:3000/pd-live-react');
cy.visit('/');
acceptDisclaimer();
cy.wait('@getAbilities', { timeout: 30000 });

Expand All @@ -75,7 +75,7 @@ describe('PagerDuty Live', { failFast: { enabled: true } }, () => {
});

it('Application indicates when polling is disabled through url parameter disable-polling', () => {
cy.visit('http://localhost:3000/pd-live-react/?disable-polling=true');
cy.visit('/?disable-polling=true');

// cy.get('.modal-title', { timeout: 30000 }).contains('Disclaimer & License');
// cy.get('#disclaimer-agree-checkbox').click({ force: true });
Expand All @@ -101,9 +101,7 @@ describe('PagerDuty Live', { failFast: { enabled: true } }, () => {
].join(''),
).as('getUrl');

cy.visit(
`http://localhost:3000/pd-live-react/?disable-polling=true&since=${since}&until=${until}`,
);
cy.visit(`/?disable-polling=true&since=${since}&until=${until}`);

// eslint-disable-next-line cypress/no-unnecessary-waiting
cy.wait(5000);
Expand Down

0 comments on commit 17aac1d

Please sign in to comment.