예제 #1
0
        public void FunctionsPage_NoInvocations()
        {
            FunctionsPage page = Dashboard.GoToFunctionsPage();

            InvocationsSection section = page.InvocationsSection;

            Assert.True(section.IsUserAccesible);

            Assert.Equal("Invocation Log Recently executed functions", section.Title.Text);

            InvocationsTable table = section.Table;

            table.WaitForDataToLoad();

            table = section.Table;

            IEnumerable <TableRow> rows = table.BodyRows;

            Assert.Equal(1, rows.Count());

            TableRow singleRow            = rows.Single();
            IEnumerable <TableCell> cells = singleRow.Cells;

            Assert.Equal(1, cells.Count());

            TableCell singleCell = cells.Single();

            Assert.Equal(table.HeaderRows.First().Cells.Count(), singleCell.ColSpan);
            Assert.Equal("No functions have run recently.", singleCell.RawElement.Text);
        }
예제 #2
0
        public void FunctionsPage_Invocations()
        {
            FunctionsPage page = Dashboard.GoToFunctionsPage();

            InvocationsSection section = page.InvocationsSection;

            ValidateEmptyInvocationsTable(() => section.Table);
        }