Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
9f7fa72e
Commit
9f7fa72e
authored
Jul 09, 2021
by
BryceLTaylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check rate limit for studio creation integration test
parent
8a495ee8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
test/integration/my-stuff.test.js
test/integration/my-stuff.test.js
+3
-0
No files found.
test/integration/my-stuff.test.js
View file @
9f7fa72e
...
@@ -10,8 +10,10 @@ const {
...
@@ -10,8 +10,10 @@ const {
let
username
=
process
.
env
.
SMOKE_USERNAME
+
'
1
'
;
let
username
=
process
.
env
.
SMOKE_USERNAME
+
'
1
'
;
let
password
=
process
.
env
.
SMOKE_PASSWORD
;
let
password
=
process
.
env
.
SMOKE_PASSWORD
;
let
remote
=
process
.
env
.
SMOKE_REMOTE
||
false
;
let
remote
=
process
.
env
.
SMOKE_REMOTE
||
false
;
let
rootUrl
=
process
.
env
.
ROOT_URL
||
'
https://scratch.ly
'
;
let
rootUrl
=
process
.
env
.
ROOT_URL
||
'
https://scratch.ly
'
;
let
myStuffURL
=
rootUrl
+
'
/mystuff
'
;
let
myStuffURL
=
rootUrl
+
'
/mystuff
'
;
let
rateLimitCheck
=
process
.
env
.
RATE_LIMIT_CHECK
||
rootUrl
;
if
(
remote
){
if
(
remote
){
jest
.
setTimeout
(
60000
);
jest
.
setTimeout
(
60000
);
...
@@ -88,6 +90,7 @@ describe('www-integration my_stuff', () => {
...
@@ -88,6 +90,7 @@ describe('www-integration my_stuff', () => {
});
});
test
(
'
+ New Studio button should take you to the studio page
'
,
async
()
=>
{
test
(
'
+ New Studio button should take you to the studio page
'
,
async
()
=>
{
await
driver
.
get
(
rateLimitCheck
);
await
driver
.
get
(
myStuffURL
);
await
driver
.
get
(
myStuffURL
);
await
clickXpath
(
'
//form[@id="new_studio"]/button[@type="submit"]
'
);
await
clickXpath
(
'
//form[@id="new_studio"]/button[@type="submit"]
'
);
await
driver
.
sleep
(
500
);
await
driver
.
sleep
(
500
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment