Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-36389

Acceptance test for Freestyle Job flow

    XMLWordPrintable

    Details

    • Similar Issues:
    • Sprint:
      1.0-m12, 1.0-pre-beta-1

      Description

      Create a v1 acceptance test for testing the the Freestyle job flow:

      Minimum

      1. Create the Freestyle job.
      2. Create relevant Nightwatch page-objects.
      3. Inspect structure of the Activity tab. Should have the empty state on it.
      4. Press the "Run Now" button via the page-object.
      5. Tests that the empty state disappears.
      6. Tests that the "Started" Toast appears.
      7. Tests that the Activity table appears and has the job in it.
      8. Click on the job and go to the run details page
      9. Check that it has the expected logs etc
      10. Go back to Activity tab and check that there's a "Run" button above the activity table.
      11. Run another job by clicking on the "Run" button.
      12. Verify that a second job appears and that the toast appears etc

      Bonus Points

      1. Have tests on the job and test that the "Tests" tab is rendered as expected. TODO... add some detail here.

        Attachments

          Activity

          Show
          michaelneale Michael Neale added a comment - Tom FENNELLY isn't this covered by https://github.com/jenkinsci/blueocean-acceptance-test/tree/master/src/test/js/log-karaoke ?
          Hide
          tfennelly Tom FENNELLY added a comment -

          I don't think so.

          Show
          tfennelly Tom FENNELLY added a comment - I don't think so.
          Hide
          michaelneale Michael Neale added a comment -

          But it does create and run a freestyle job? doesn't cover enough of the listed steps?

          Show
          michaelneale Michael Neale added a comment - But it does create and run a freestyle job? doesn't cover enough of the listed steps?
          Hide
          tfennelly Tom FENNELLY added a comment -

          I'm Sorry, you are correct there ... brain fart ... I was thinking of the noStages.js test and forgot about the freestyle one. Yeah, let's close this.

          Show
          tfennelly Tom FENNELLY added a comment - I'm Sorry, you are correct there ... brain fart ... I was thinking of the noStages.js test and forgot about the freestyle one. Yeah, let's close this.

            People

            Assignee:
            tscherler Thorsten Scherler
            Reporter:
            tfennelly Tom FENNELLY
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: