Skip to content

Commit bc7dee7

Browse files
committed
Fine tune
1 parent da23a4b commit bc7dee7

File tree

6 files changed

+10
-48
lines changed

6 files changed

+10
-48
lines changed

cypress/support/commands.js

Lines changed: 0 additions & 25 deletions
This file was deleted.

cypress/support/index.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

tests/apps/backoffice_frontend/features/courses/create_course.cypress.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('Courses', () => {
66
});
77

88
it('can create courses', () => {
9-
cy.visit('http://localhost:8032/courses');
9+
cy.visit('courses');
1010

1111
cy.contains('Actualmente CodelyTV Pro cuenta con 0 cursos.');
1212

tests/utils/cypress/tsconfig.json renamed to tests/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../../../tsconfig.json",
2+
"extends": "../tsconfig.json",
33
"compilerOptions": {
44
"lib": ["es2015", "dom"],
55
"types": ["cypress"]

tests/utils/cypress/open.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import cypress from 'cypress';
22
import { startBackofficeFrontend } from './startBackofficeFrontend';
3+
import app from '../../../src/apps/backoffice/frontend/app';
34

45
async function open() {
56
const server = await startBackofficeFrontend();
@@ -10,7 +11,12 @@ async function open() {
1011
}
1112

1213
async function openCypress() {
13-
return cypress.open();
14+
return cypress.open({
15+
config: {
16+
supportFile: false,
17+
baseUrl: `http://localhost:${app.get('port')}`
18+
}
19+
});
1420
}
1521

1622
open();

tests/utils/cypress/run.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ async function runCypress() {
1818
headless: true,
1919
config: {
2020
...cypressConfig,
21+
supportFile: false,
2122
baseUrl: `http://localhost:${app.get('port')}`
2223
}
2324
});

0 commit comments

Comments
 (0)