Fix failing checks: e2e tests, welcome action#383
Conversation
…no need for reload); remove check for Loading text (brief state)
…or results post request to complete
…or message when rank/score is 0 (valid)
🦋 Changeset detectedLatest commit: 15ad62a The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
add changesets for templates file changes
|
@cherriechang do you mind reviewing this? All of the fixes were in test files or GH action config, so it shouldn't conflict with anything that you're working on. The only exception is this change to the |
cherriechang
left a comment
There was a problem hiding this comment.
This looks good, thank you!! Everything makes sense and was easy to follow from the PR conversation.
This PR fixes some bugs in the e2e tests and results page:
e2e/experiment.test.js**/api/${expInfo.shortName}/getPercentileRankinstead of**/api/results).resDataobject.e2e/results.test.jsbeforeEach, usepage.waitForResponseto make sure that the API post request has finished before checking results. Previously this was just using the DOM content to check that the results are ready, but the POST request and database update could still have been pending, which was causing intermittent errors.templates/experiments/[EXP]/src/web page/src/results.jsdata.percentileRankanddata.summary_stat, so when those values were 0 (valid), it produced the error message. Now it checks fornull/undefined. (I didn't change the falsy!data.totalRowscheck. A value of 0 is valid, but that case is handled earlier - it produces a "Results aren't available" message). This issue was causing one of the e2e tests to fail.This also fixes some bugs in the failing 'welcome' Github Workflow:
.github/workflows/welcome.yml