fix(backend-github): improve workflow migration edge cases/messaging (#3319)
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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();
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user