moved json import out of tests folder (#926)
This commit is contained in:
parent
bc1e83e63a
commit
cf5ec940c6
4 changed files with 9 additions and 9 deletions
|
@ -7,16 +7,16 @@ export default class GroupModal {
|
|||
}
|
||||
|
||||
typeResourceFile = (filename: string) => {
|
||||
cy.readFile(
|
||||
"cypress/integration/partial-import-test-data/" + filename
|
||||
).then((myJSON) => {
|
||||
const text = JSON.stringify(myJSON);
|
||||
cy.readFile("cypress/fixtures/partial-import-test-data/" + filename).then(
|
||||
(myJSON) => {
|
||||
const text = JSON.stringify(myJSON);
|
||||
|
||||
cy.get("#partial-import-file").type(text, {
|
||||
parseSpecialCharSequences: false,
|
||||
delay: 0
|
||||
});
|
||||
});
|
||||
cy.get("#partial-import-file").type(text, {
|
||||
parseSpecialCharSequences: false,
|
||||
delay: 0,
|
||||
});
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
importButton() {
|
||||
|
|
Loading…
Reference in a new issue