moved json import out of tests folder (#926)

This commit is contained in:
Erik Jan de Wit 2021-07-29 16:48:53 +02:00 committed by GitHub
parent bc1e83e63a
commit cf5ec940c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 9 deletions

View file

@ -7,16 +7,16 @@ export default class GroupModal {
} }
typeResourceFile = (filename: string) => { typeResourceFile = (filename: string) => {
cy.readFile( cy.readFile("cypress/fixtures/partial-import-test-data/" + filename).then(
"cypress/integration/partial-import-test-data/" + filename (myJSON) => {
).then((myJSON) => {
const text = JSON.stringify(myJSON); const text = JSON.stringify(myJSON);
cy.get("#partial-import-file").type(text, { cy.get("#partial-import-file").type(text, {
parseSpecialCharSequences: false, parseSpecialCharSequences: false,
delay: 0 delay: 0,
});
}); });
}
);
}; };
importButton() { importButton() {