Skip to content

Commit

Permalink
Fix bluetooth & signup Cypress issues (#1562)
Browse files Browse the repository at this point in the history
  • Loading branch information
atrovato committed Jul 11, 2022
1 parent 6f2a3d5 commit 0743165
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"ready": false,
"scanning": false
}
4 changes: 2 additions & 2 deletions front/cypress/integration/routes/0-signup/SignUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ describe('Sign-up', () => {
});

// Store access token
const serverUrl = Cypress.env('users');
const serverUrl = Cypress.env('serverUrl');
cy.intercept(
{
method: 'POST',
Expand Down Expand Up @@ -161,7 +161,7 @@ describe('Sign-up', () => {
// Add room
cy.contains('button', 'signup.configureHouse.addRoomButton').click();

const serverUrl = Cypress.env('users');
const serverUrl = Cypress.env('serverUrl');
cy.intercept(
{
method: 'POST',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@ describe('Bluetooth scanner - state change', () => {
before(() => {
cy.login();

const serverUrl = Cypress.env('serverUrl');
cy.intercept(
{
method: 'GET',
url: `${serverUrl}/api/v1/service/bluetooth/status`
},
{
fixture: 'integration/routes/integration/bluetooth/status_not_ready.json'
}
);

cy.visit('/dashboard/integration/device/bluetooth/config');
});

Expand Down

0 comments on commit 0743165

Please sign in to comment.