Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
PUBLIC
/
surfer-okd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 33ee47f3
authored
Jan 06, 2020
by
Johannes Zellner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup some more tests
1 parent
a0ce51e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
test/test.js
test/test.js
View file @
33ee47f
...
...
@@ -40,10 +40,17 @@ describe('Application life cycle test', function () {
browser
.
quit
();
});
function
getAppInfo
()
{
function
getAppInfo
(
location
,
done
)
{
if
(
!
done
)
{
done
=
location
;
location
=
LOCATION
;
}
var
inspect
=
JSON
.
parse
(
execSync
(
'cloudron inspect'
));
app
=
inspect
.
apps
.
filter
(
function
(
a
)
{
return
a
.
location
===
LOCATION
;
})[
0
];
app
=
inspect
.
apps
.
filter
(
function
(
a
)
{
return
a
.
location
===
location
;
})[
0
];
expect
(
app
).
to
.
be
.
an
(
'object'
);
done
();
}
function
waitForElement
(
elem
)
{
...
...
@@ -135,7 +142,6 @@ describe('Application life cycle test', function () {
xit
(
'build app'
,
function
()
{
execSync
(
'cloudron build'
,
EXEC_ARGS
);
});
it
(
'install app'
,
function
()
{
execSync
(
`cloudron install --location
${
LOCATION
}
`
,
EXEC_ARGS
);
});
it
(
'can get app information'
,
getAppInfo
);
it
(
'can login'
,
login
);
...
...
@@ -168,10 +174,7 @@ describe('Application life cycle test', function () {
// ensure we don't hit NXDOMAIN in the mean time
browser
.
get
(
'about:blank'
).
then
(
function
()
{
execSync
(
`cloudron configure --location
${
LOCATION
}
2 --app
${
app
.
id
}
`
,
EXEC_ARGS
);
getAppInfo
();
done
();
getAppInfo
(
`
${
LOCATION
}
2`
,
done
);
});
});
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment