fix(backend-github): improve workflow migration edge cases/messaging (#3319)

This commit is contained in:
Shawn Erquhart
2020-02-25 05:49:38 -05:00
committed by GitHub
parent 1d137a09e8
commit 684b79e43b
7 changed files with 2299 additions and 1968 deletions

View File

@ -41,8 +41,7 @@ export default function({ entries, getUser }) {
cy.reload();
// allow migration code to run for 5 minutes
Cypress.config('defaultCommandTimeout', 5 * 60 * 1000);
publishWorkflowEntry(entries[2]);
publishWorkflowEntry(entries[2], 5 * 60 * 1000);
publishWorkflowEntry(entries[1]);
publishWorkflowEntry(entries[0]);
goToCollections();

View File

@ -73,8 +73,8 @@ function updateWorkflowStatus({ title }, fromColumnHeading, toColumnHeading) {
assertNotification(notifications.updated);
}
function publishWorkflowEntry({ title }) {
cy.contains('h2', workflowStatus.ready)
function publishWorkflowEntry({ title }, timeout) {
cy.contains('h2', workflowStatus.ready, { timeout })
.parent()
.within(() => {
cy.contains('a', title)